Skip to contentSkip to conversation

hvm iret

DISCUSSION Ashish Bijlani 2 participants 2 messages Oct 20, 2007 – Oct 21, 2007

lore
Share & tools
lore
#0 lore raw

could anybody guide me to some pointers on iret execution by hvms. something like what happens when a HVM executes an iret instruction? when is the physical interrupt acknowledged so that IOAPIC can send more interrupts. thanks.

-a

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

#1 lore raw

For HVM guest, i.e., VMX guest, the execution of IRET is similar to that on native system, but of course there are important differences :) -- you should read the related chapters (i.e., “event injection”) in Intel Software Developer’s Manual 3B, and you should also look at the Xen code (i.e., the vioapic.c, vlapic.c, vmx/vmx.c, vmx/intr.c in the directory xen/arch/x86/hvm/).

Note: HVM guest doesn’t touch physical interrupt (and the physical pic/ioapic /local_apic) --here we don’t consider VT-d;

Xen only “injects” *virtual* interrupts into HVM guest with the help of the emulation of Device Model.

When HVM vcpu is running, if a physical interrupt happens, a VMExit will occur to interrupt the execution of the HVM vcpu, then Xen handles the physical interrupt.

-- Dexuan

________________________________

From: [email protected] [mailto:[email protected]] On Behalf Of Ashish Bijlani
Sent: 2007年10月21日 4:21
To: [email protected]
Subject: [Xen-devel] hvm iret

could anybody guide me to some pointers on iret execution by hvms. something like what happens when a HVM executes an iret instruction? when is the physical interrupt acknowledged so that IOAPIC can send more interrupts. thanks.

-a

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