On Tue, Mar 08, 2011 at 04:29:10PM +0200, Avi Kivity wrote:
> On 03/08/2011 04:20 PM, Gleb Natapov wrote:
> >On Tue, Mar 08, 2011 at 03:57:40PM +0200, Avi Kivity wrote:
> >> We may read the cpl quite often in the same vmexit (instruction privilege
> >> check, memory access checks for instruction and operands), so we gain
> >> a bit if we cache the value.
> >>
> >Shouldn't VCPU_EXREG_CPL be cleared in vmx_set_efer too?
>
> I anticipated that question (which really means that a comment is
> needed). Flipping EFER.LMA is done by flipping CR0.PG (and doesn't
> affect cpl. in any case).
>
Ah, so you can't clear LMA by writing to EFER.
--
Gleb.
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html