WARNING - OLD ARCHIVES

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/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] How to modify GUEST_RIP in xen 4.0.1?

To: "K.C. Lee" <kcl.joseph@xxxxxxxxx>
Subject: Re: [Xen-devel] How to modify GUEST_RIP in xen 4.0.1?
From: Tim Deegan <Tim.Deegan@xxxxxxxxxx>
Date: Mon, 13 Dec 2010 17:03:25 +0000
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 13 Dec 2010 09:04:59 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <AANLkTimy=XV-cw67jS-XzOLT5aMnFZs9uz3BKdH7NiJD@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: <AANLkTimy=XV-cw67jS-XzOLT5aMnFZs9uz3BKdH7NiJD@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.20 (2009-06-14)
At 16:38 +0000 on 13 Dec (1292258301), K.C. Lee wrote:
> Hi,
> 
> I want to change the guest's RIP.
> 
> The story is that I change GUEST_SYSENTER_EIP in vmx_vmexit_handler() in 
> order to catch a page_fault and do something in sh_page_fault().
> But I need to change GUEST_RIP back after something is done.
> 
> I change GUEST_RIP in sh_page_fault(),
> but it doesn't work.
> 
> What should I do?

Look at the other paths in vmx_vmexit_handler that change the guest
RIP and copy one of them? 

Cheers,

Tim.

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

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

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