From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gleb Natapov Subject: Re: [PATCH] KVM: SVM: Fix CPL export via SS.DPL Date: Mon, 30 Jun 2014 18:25:26 +0300 Message-ID: <20140630152526.GA4399@minantech.com> References: <20140629131443.GA5199@pd.tnic> <20140629134247.GG18167@minantech.com> <20140629140104.GB12528@pd.tnic> <20140629142722.GH18167@minantech.com> <53B02395.8030505@web.de> <53B027E0.7040003@web.de> <53B02CEB.7010607@web.de> <53B17BDD.5030301@redhat.com> <53B17C5D.5050407@web.de> <20140630151544.GF4766@pd.tnic> Mime-Version: 1.0 Content-Type: text/plain; charset=cp1255 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Jan Kiszka , Paolo Bonzini , lkml , Peter Zijlstra , Steven Rostedt , x86-ml , kvm@vger.kernel.org, =?utf-8?B?SsO2cmcgUsO2ZGVs?= To: Borislav Petkov Return-path: Content-Disposition: inline In-Reply-To: <20140630151544.GF4766@pd.tnic> Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On Mon, Jun 30, 2014 at 05:15:44PM +0200, Borislav Petkov wrote: > On Mon, Jun 30, 2014 at 05:03:57PM +0200, Jan Kiszka wrote: > > 15.5.1: > >=20 > > "When examining segment attributes after a #VMEXIT: > > [...] > > =95 Retrieve the CPL from the CPL field in the VMCB, not from any s= egment > > DPL." >=20 > Heey, it is even documented! :-P >=20 Yes, on SVM we should always respect this field. Unfortunately there is no such field in VMX, so we have to do DPL gymnastics there. -- Gleb.