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

[Xen-devel] Re: HYPERVISOR_iret()

To: Swapna Shingre <amuswaps@xxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] Re: HYPERVISOR_iret()
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Fri, 26 Dec 2008 15:43:38 +0000
Cc:
Delivery-date: Fri, 26 Dec 2008 07:44:12 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <a03eda480812260630k69372485rae7e55ea1083e835@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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AclncLghAPVVZeU/EUKzsRUTAm5PXg==
Thread-topic: HYPERVISOR_iret()
User-agent: Microsoft-Entourage/12.15.0.081119
On 26/12/2008 14:30, "Swapna Shingre" <amuswaps@xxxxxxxxx> wrote:

I am trying to add a hypercall to replace the iret instruction in xenolinux, so that everytime control comes to xen when guest OS executes 'iret'.
I found that there already exists a hypercall HYPERVISOR_iret in xen.
  What is the exact functionality of HYPERVISOR_iret? In which cases is it called by the guest OS?

It can be used anytime the guest kernel would natively execute the IRET instruction. It’s stack frame is a bit different from that taken by the machine instruction, but it’s documented in xen/include/public/arch-x86/xen-x86_{32,64}.h

 -- Keir
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>