diff options
author | Gleb Natapov <gleb@redhat.com> | 2012-12-11 15:14:11 +0200 |
---|---|---|
committer | Marcelo Tosatti <mtosatti@redhat.com> | 2012-12-11 21:00:28 -0200 |
commit | 0b26b588d97031fe8e16a35186220a6c14c89849 (patch) | |
tree | 3c0f88e17b70e277894334ebbd321465b5d44dc0 /arch/x86/kvm | |
parent | a4d3326c2de46fd7bcc47d1e8786efccfc152f81 (diff) | |
download | linux-3.10-0b26b588d97031fe8e16a35186220a6c14c89849.tar.gz linux-3.10-0b26b588d97031fe8e16a35186220a6c14c89849.tar.bz2 linux-3.10-0b26b588d97031fe8e16a35186220a6c14c89849.zip |
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 <gleb@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'arch/x86/kvm')
-rw-r--r-- | arch/x86/kvm/vmx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index feab3d973b6..d14bb123568 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); |