veerasena reddy
2011-Jun-07 06:38 UTC
[Xen-devel] How to write protect a HVM guest page and handle the writes to the page in hypervisor
Hi, In one of requirements for my experiment, i need to 1. write protect a HVM guest page (the GPA of it is passed to hypervisor in a different hypercall) 2. write a function in XEN hypervisor and register this as handler for the page protected above. Could you please advice, how to achieve (2). Thanks & Regards, VSR. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Tim Deegan
2011-Jun-07 08:54 UTC
Re: [Xen-devel] How to write protect a HVM guest page and handle the writes to the page in hypervisor
Hi, Please read http://wiki.xensource.com/xenwiki/AskingXenDevelQuestions . At 12:08 +0530 on 07 Jun (1307448516), veerasena reddy wrote:> In one of requirements for my experiment, i need to > 1. write protect a HVM guest page (the GPA of it is passed to hypervisor in > a different hypercall) > 2. write a function in XEN hypervisor and register this as handler for the > page protected above. > > Could you please advice, how to achieve (2).Look at the mem_event code in current xen-unstable. It allows you to do this from a handler in dom0; I''m sure it would be easy to intercept and handle inside Xen if you really need to. . Tim. -- Tim Deegan <Tim.Deegan@citrix.com> Principal Software Engineer, Xen Platform Team Citrix Systems UK Ltd. (Company #02937203, SL9 0BG) _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel