[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] Re: Linux Stubdom Problem
On Mon, 29 Aug 2011, Tim Deegan wrote: > At 13:27 +0100 on 29 Aug (1314624464), Stefano Stabellini wrote: > > > So it is; I had misremembered the interface. GNTTABOP_map_grant_ref is > > > the hypercall to map granted pages into the p2m. > > > > Are you sure? I think that GNTTABOP_map_grant_ref maps foreign granted > > pages into our own domain, in fact it takes a domid and a grant table > > reference as input parameters to specify the source page, host_addr is > > the destination in our own domain. > > Oh, so it will. You'd need to arrange for that to be called from inside > the guest; or you could implement an add_to_physmap space for it; that > could be called from another domain. "From inside the guest" means hvmloader? The good thing about doing it in hvmloader is that we could use the traditional PV frontend/backend mechanism to share pages. On the other hand hvmloader doesn't know if we are using stubdoms at the moment and it would need to issue the grant table hypercall only in that case. Unless we decide to always grant the videoram to guests but it would change once again the domain to which the videoram is accounted for (dom0/stubdom rather than the guest, that is a bad thing). Also I don't like the idea of making hvmloader stubdom aware. Thus I would choose the other option: implement an add_to_physmap space for mapping grant references to another domain. Basically it would be like what you suggested before (XENMAPSPACE_grant_table) but actually mapping the granted pages rather than the pages constituting the grant table :-) However that means that with stubdoms the videoram is accounted to the stubdom while without stubdoms the videoram is accounted to the guest. I think we'll have to live with this inconsistency (the only other solution would be to reimplement xen-fbfront in qemu). _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |