|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] Identifying pagetype in they hypervisor
Hi --
I'm working off of a bit older branch, 3.1.0, but hopefully the
question is still relevant.
In the suspend/restore code in 'tools/libxc/xc_domain_save.c', as part
of the saved record, a list of pfn_types are saved prior to the actual
pages themselves. These pfn_types are pfns with a type bits
associated with them that are accessed with the XEN_DOMCTL_PFINFO_XTAB
bitmask.
I'm doing some copy-on-write work, and when I intercept writes in the
hypervisor, I need to copy both the actual page, and the type
associated with the page (so that it could later be properly written
out to the save record). I've modified the shadow page table code to
handle write faults associated with CoW and am able to get the mfn of
the faulting page and perform the copy; I cannot seem to find where
given the mfn, I can find the page type associated with it. Could
anybody help point me to the right place or direction?
Much thanks,
Mike
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
|
|
|
|