From: Keir Fraser Subject: Re: HYPERVISOR_iret() Date: Fri, 26 Dec 2008 15:43:38 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0969235490==" Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Swapna Shingre , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org > This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --===============0969235490== Content-type: multipart/alternative; boundary="B_3313151021_8000772" > This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --B_3313151021_8000772 Content-type: text/plain; charset="ISO-8859-1" Content-transfer-encoding: quoted-printable On 26/12/2008 14:30, "Swapna Shingre" wrote: > I am trying to add a hypercall to replace the iret instruction in xenolin= ux, > 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 i= t > called by the guest OS? It can be used anytime the guest kernel would natively execute the IRET instruction. It=B9s stack frame is a bit different from that taken by the machine instruction, but it=B9s documented in xen/include/public/arch-x86/xen-x86_{32,64}.h -- Keir --B_3313151021_8000772 Content-type: text/html; charset="ISO-8859-1" Content-transfer-encoding: quoted-printable Re: HYPERVISOR_iret() On 26/12/2008 14:30, "Swapna Shingre" <amuswaps@gmail.com> wrote:

<= SPAN STYLE=3D'font-size:11pt'>I am trying to add a hypercall to replace the ir= et instruction in xenolinux, so that everytime control comes to xen when gue= st 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 ca= ses is it called by the guest OS?
=
It can be used anytime the guest kernel would natively execute the IRET ins= truction. It’s stack frame is a bit different from that taken by the m= achine instruction, but it’s documented in xen/include/public/arch-x86= /xen-x86_{32,64}.h

 -- Keir
--B_3313151021_8000772-- --===============0969235490== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0969235490==--