This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


Re: [Xen-devel] How to write protect a HVM guest page and handle the wri

To: veerasena reddy <veeruyours@xxxxxxxxx>
Subject: Re: [Xen-devel] How to write protect a HVM guest page and handle the writes to the page in hypervisor
From: Tim Deegan <Tim.Deegan@xxxxxxxxxx>
Date: Tue, 7 Jun 2011 09:54:17 +0100
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 07 Jun 2011 01:54:58 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <BANLkTimNn1ZO3pK9rQi3zeBt6epnws_1kQ@xxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <BANLkTimNn1ZO3pK9rQi3zeBt6epnws_1kQ@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.21 (2010-09-15)

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 Deegan <Tim.Deegan@xxxxxxxxxx>
Principal Software Engineer, Xen Platform Team
Citrix Systems UK Ltd.  (Company #02937203, SL9 0BG)

Xen-devel mailing list

<Prev in Thread] Current Thread [Next in Thread>