[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] Sharing Memory between userspace of dom0 and userspace of domU
Thanks Daniel, > The page type refcount drops to zero when the page isn't linked into the > page table structure anymore (see the page_info struct definition in the > Xen source tree for types and refcounts). So the guest just unlinks the > PT frame (via a hypercall). From there on, the guest may reuse the frame > under a writable mapping. Note that this is consistent with overall OS > behavior: First the PT usage is cleared, then the frame reused, > independent of whether the contents are swapped to disk, the process > died, etc. So it is possible for the guest OS to swap out a page table page from what you're saying? It seems like that would be a problem for the domain save/migration mechanism since in that process PT pages are canonicalized from virtual-to-machine mappings to virtual-to-pseudophysical mappings... if any PT pages are swapped to disk and not canonicalized, they would have incorrect mappings. Someone has suggested that Xen is aware of any swaps made by the guest OS (by way of hypercalls to update the PTEs) and canonicalizes the page table pages then. Are you aware if that's the case? I still have to go through that code to find out. Thanks, Mike _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |