[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
There was a function in mem-sharing.c which is intended to announce the failed unshared pages. It is "mem_sharing_notify_enomem" . I added "mem_sharing_notify_unshare" as a new function and call it in also XEN_DOMCTL_VM_EVENT_OP_UNSHARING and "HVM_PARAM_USHARING_RING_PFN". I also added the required codes in /xen/common/vm_event.c and /tools/libxc/xc_vm_event so as I have added a new event for the unsharing actions of a page. Then, I wrote a sample code line xen-access and create a ring for the pages of a domain and listen to unshared events of it.
You are right, xen-access should work but I couldn't change its code and couldn't get the mem-access events. I just added the above function to be sure that unsharing a page happens and works fine. Because I couldn't get the access requests on shared-pages of a vm. In xen-access, Instead of setting all the pages' default access to rx , I just call xc_set_mem_access for the pages with p2m_ram_shared and assign rx as the default access but there is no requests on this ring.
Yes it was crashed as I checked it. The scenario of sharing is I use: I pause the origin VM and then run memshrtool on origin VM and clone VM. After sharing all the pages between these two VMs,Clone VM seems to be inaccessible. The clone seems to work as the attached photo shows, its cpu time increases and it exceeds the dom0 cpu time but when I use gvncviewer to see the GUI of the Clone VM, the mouse or keyboard don't work. (origin VM is ubunut-64-1 and clone VM is ubuntu-64-clone-1). Is there anything I have missed in sharing between two VMs? _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |