From: Gleb Natapov Date: Tue, 11 Dec 2012 13:14:11 +0000 (+0200) Subject: VMX: remove unneeded enable_unrestricted_guest check X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=0b26b588d97031fe8e16a35186220a6c14c89849;p=linux-beck.git VMX: remove unneeded enable_unrestricted_guest check If enable_unrestricted_guest is true vmx->rmode.vm86_active will always be false. Signed-off-by: Gleb Natapov Signed-off-by: Marcelo Tosatti --- diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index feab3d973b68..d14bb1235685 100644 --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kvm/vmx.c @@ -3316,7 +3316,7 @@ static void vmx_set_segment(struct kvm_vcpu *vcpu, * unrestricted guest like Westmere to older host that don't have * unrestricted guest like Nehelem. */ - if (!enable_unrestricted_guest && vmx->rmode.vm86_active) { + if (vmx->rmode.vm86_active) { switch (seg) { case VCPU_SREG_CS: vmcs_write32(GUEST_CS_AR_BYTES, 0xf3);