[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel][RFC] Dynamic modes support for PV xenfb (included)

Pat Campbell wrote:
> Markus Armbruster wrote:
>> I can't see how using grants for the page directory is an improvement
>> over your previous iteration, which used pd[].  Can you explain?
> I will try, I am not the greatest communicator lately. 

The real question is why stop half-way with the grant tables conversion?
You should put grant references instead of mfns into the page list
pages, i.e. map the framebuffer itself using grants too.  That will kill
even more 32/64 bit differences btw.

> While I was working on this I "briefly" looked at the grant APIs to see
> how hard it would be to create a new API that allocates and claims a
> continuous block of references.

You don't need that.  xc_gnttab_map_grant_refs() takes a list of grant
refs and creates a linear mapping of those for you.

Only problem is that gntdev has a 128 grants limit, this needs fixing.



Xen-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.