From: "Ashish Bijlani" Subject: Re: Hypercalls in Intel-VT Date: Mon, 29 Oct 2007 02:41:38 -0400 Message-ID: References: <10EA09EFD8728347A513008B6B0DA77A014E8B0C@pdsmsx411.ccr.corp.intel.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2047529387==" Return-path: In-Reply-To: <10EA09EFD8728347A513008B6B0DA77A014E8B0C@pdsmsx411.ccr.corp.intel.com> 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: "Dong, Eddie" Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============2047529387== Content-Type: multipart/alternative; boundary="----=_Part_5096_12788474.1193640098554" ------=_Part_5096_12788474.1193640098554 Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit Content-Disposition: inline so does xen use a different GDT or it uses a different slot inside the same GDT? also, does xen use a different ss and esp than guest os krnl or it operates on the guest os krnl? On 10/29/07, Dong, Eddie wrote: > > GDTR BASE & Limit are part of Host/Guest state which will be > save/restored. > Eddie > > ------------------------------ > *From:* Ashish Bijlani [mailto:ashish.bijlani@gmail.com] > *Sent:* 2007年10月29日 6:19 > *To:* Tim Deegan > *Cc:* Mark Williamson; xen-devel@lists.xensource.com; Dong, Eddie > *Subject:* Re: [Xen-devel] Hypercalls in Intel-VT > > does transition from non-root VMX mode to root VMX mode require GDT switch > i.e. does GDT change from guest OS krnl's GDT to xen's GDT? > > On 10/28/07, Tim Deegan wrote: > > > > At 02:55 +0100 on 27 Oct (1193453721), Mark Williamson wrote: > > > Regarding the TLB flush, again, the hardware quite possibly does > > that. But > > > I'm not aware of anything in the VMX spec that exposes this detail, so > > Intel > > > could easily tag the TLB entries as root / non-root to avoid flushing > > on a > > > VMEXIT / VMENTER. For all I know, they may do this already! > > > > Right now, Intel processors always flush the whole TLB (including global > > > > entries) on a transition to or from non-root mode. Newer AMD processors > > have tagged TLBs so you can do an exit/enter without flushing, but you > > have to explicitly discard the guest entries when it's > > appropriate. (Look > > at arch/x86/hvm/svm/asid.c). That's on the road map for Intel too, I > > believe. > > > > Cheers, > > > > Tim. > > > > -- > > Tim Deegan , XenSource UK Limited > > Registered office c/o EC2Y 5EB, UK; company number 05334508 > > > > ------=_Part_5096_12788474.1193640098554 Content-Type: text/html; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit Content-Disposition: inline so does xen use a different GDT or it uses a different slot inside the same GDT? also, does xen use a different ss and esp than guest os krnl or it operates on the guest os krnl?

On 10/29/07, Dong, Eddie <eddie.dong@intel.com> wrote:
GDTR BASE & Limit are part of Host/Guest state which will be save/restored.
Eddie


From: Ashish Bijlani [mailto:ashish.bijlani@gmail.com]
Sent: 2007年10月29日 6:19
To: Tim Deegan
Cc: Mark Williamson; xen-devel@lists.xensource.com; Dong, Eddie
Subject: Re: [Xen-devel] Hypercalls in Intel-VT

does transition from non-root VMX mode to root VMX mode require GDT switch i.e. does GDT change from guest OS krnl's GDT to xen's GDT?

On 10/28/07, Tim Deegan <Tim.Deegan@xensource.com> wrote:
At 02:55 +0100 on 27 Oct (1193453721), Mark Williamson wrote:
> Regarding the TLB flush, again, the hardware quite possibly does that.  But
> I'm not aware of anything in the VMX spec that exposes this detail, so Intel
> could easily tag the TLB entries as root / non-root to avoid flushing on a
> VMEXIT / VMENTER.  For all I know, they may do this already!

Right now, Intel processors always flush the whole TLB (including global
entries) on a transition to or from non-root mode.  Newer AMD processors
have tagged TLBs so you can do an exit/enter without flushing, but you
have to explicitly discard the guest entries when it's appropriate.  (Look
at arch/x86/hvm/svm/asid.c).  That's on the road map for Intel too, I
believe.

Cheers,

Tim.

--
Tim Deegan <Tim.Deegan@xensource.com>, XenSource UK Limited
Registered office c/o EC2Y 5EB, UK; company number 05334508


------=_Part_5096_12788474.1193640098554-- --===============2047529387== 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 --===============2047529387==--