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] hvm iret

To: "Ashish Bijlani" <ashish.bijlani@xxxxxxxxx>, <Xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-devel] hvm iret
From: "Cui, Dexuan" <dexuan.cui@xxxxxxxxx>
Date: Sun, 21 Oct 2007 21:14:09 +0800
Delivery-date: Sun, 21 Oct 2007 06:16:27 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <ec55b17e0710201321v22859247k31ec38b856aa91a@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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <ec55b17e0710201321v22859247k31ec38b856aa91a@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcgTVyZ9//EZxrfxTLWVszkHCt6iowAjAL3Q
Thread-topic: [Xen-devel] hvm iret

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: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx [mailto:xen-devel-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Ashish Bijlani
Sent: 2007年10月21日 4:21
To: Xen-devel@xxxxxxxxxxxxxxxxxxx
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
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>