From mboxrd@z Thu Jan 1 00:00:00 1970 From: Keir Fraser Subject: Re: trap/interrupt gate for hypercall Date: Tue, 15 May 2007 16:02:07 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit 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: "Tian, Kevin" , xen-devel@lists.xensource.com Cc: "Liu, Jinsong" List-Id: xen-devel@lists.xenproject.org On 15/5/07 15:43, "Tian, Kevin" 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