Skip to contentSkip to conversation

HYPERVISOR_iret()

DISCUSSION Swapna Shingre 2 participants 2 messages Dec 26, 2008

lore
Share & tools
lore
#0 lore raw

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?

Please help.
-swapna

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#1 lore raw
Quoted 5 lines · Swapna Shingre

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
[email protected]
http://lists.xensource.com/xen-devel