From: "Peter Teoh" Subject: NMI Race Date: Thu, 2 Aug 2007 22:16:53 +0800 Message-ID: <011501c7d50f$c6af6e40$ad11800a@eeyore> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2079736642==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --===============2079736642== Content-Type: multipart/alternative; boundary="----=_NextPart_000_0112_01C7D552.D4B89690" This is a multi-part message in MIME format. ------=_NextPart_000_0112_01C7D552.D4B89690 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I saw the following in xen\arch\x86\domain.c: /* * Map Xen segments into every VCPU's GDT, irrespective of whether = every * VCPU will actually be used. This avoids an NMI race during = context * switch: if we take an interrupt after switching CR3 but before = switching * GDT, and the old VCPU# is invalid in the new domain, we would = otherwise * try to load CS from an invalid table. */ Can someone please elaborate on this "NMI race"? Ie, Between which = functions called, for example? (X-Ref: =20 http://osdir.com/ml/emulators.xen.cvs/2005-10/msg00300.html for more = details). ------=_NextPart_000_0112_01C7D552.D4B89690 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
I saw the following in = xen\arch\x86\domain.c:
 
    /*
     * = Map Xen=20 segments into every VCPU's GDT, irrespective of whether=20 every
     * VCPU will actually be used. This = avoids an=20 NMI race during context
     * switch: if we take = an=20 interrupt after switching CR3 but before = switching
     *=20 GDT, and the old VCPU# is invalid in the new domain, we would=20 otherwise
     * try to load CS from an invalid=20 table.
     */

Can someone please elaborate on this "NMI = race"?  Ie,=20 Between which functions called, for example?
 
(X-Ref:  
http= ://osdir.com/ml/emulators.xen.cvs/2005-10/msg00300.html for=20 more details).
 
------=_NextPart_000_0112_01C7D552.D4B89690-- --===============2079736642== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============2079736642==--