[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] monitor access to pages with a specific p2m_type_t
On Sun, Jul 10, 2016 at 4:50 PM, sepanta s <sapanta992@xxxxxxxxx> wrote: Hi,
Is there any sample code which I can undestand how to capture the events on the gfns which have p2m_ram_shared enabled ? I couldn't find any ... . I would be grateful if any help , as there is not any documents through net to use :( Should I just set the ring_page as the pages which are shared and mark them read-only, then capture the write events? BTW, I added a function called mem_sharing_notify_unshare to mem_sharing.c and added it to __mem_sharing_unshare_page at this part:
mem_sharing_notify_unshare(d,gfn.0); } So by having a vm event channel listening to unsharing event, I can see the notification in xen-access . To do so, I have used vm_event_enable which uses HVM_PARAM_SHARING_RING_PFN . But, when I used memshrtool to share all the pages of two vms - my vm1 and its clone vm2 . About 900 MB of the ram is shared but there are a lot of unshared events happening. When I do the sharing one more time, there is not any pages unshared as the total number of shared pages stay the same. Seems no unsharing is done as the number of shared pages are the same. Does any page fault triggers when a write operation is done on a shared page among two vms ? _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |