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] trap/interrupt gate for hypercall

To: "Tian, Kevin" <kevin.tian@xxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] trap/interrupt gate for hypercall
From: Keir Fraser <keir@xxxxxxxxxxxxx>
Date: Tue, 15 May 2007 16:02:07 +0100
Cc: "Liu, Jinsong" <jinsong.liu@xxxxxxxxx>
Delivery-date: Tue, 15 May 2007 08:00:37 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <D470B4E54465E3469E2ABBC5AFAC390F013B1DFE@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AceW/1gtu6fdM4mZSxqwxNTDwzvRGgAAqkSI
Thread-topic: [Xen-devel] trap/interrupt gate for hypercall
User-agent: Microsoft-Entourage/11.3.3.061214
On 15/5/07 15:43, "Tian, Kevin" <kevin.tian@xxxxxxxxx> wrote:

> Just a curious question about IDT descriptor type for hypercall. What's
> the reason to use interrupt-gate type (14) for hypercall (0x82) on 32bit
> 
> Xen?

Everything's an interrupt gate on 32-bit Xen, so that we can safely
(atomically) save away guest segment register state. NMI is the only real
pain, and I suppose MCE too. Coincidentally Jan just emailed about this very
point.

 -- Keir


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel