aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/x86/kvm/vmx.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c
index fd21eb454663..0d6872621ab5 100644
--- a/arch/x86/kvm/vmx.c
+++ b/arch/x86/kvm/vmx.c
@@ -3108,8 +3108,7 @@ static void vmx_get_segment(struct kvm_vcpu *vcpu,
3108 if (vmx->rmode.vm86_active 3108 if (vmx->rmode.vm86_active
3109 && (seg == VCPU_SREG_TR || seg == VCPU_SREG_ES 3109 && (seg == VCPU_SREG_TR || seg == VCPU_SREG_ES
3110 || seg == VCPU_SREG_DS || seg == VCPU_SREG_FS 3110 || seg == VCPU_SREG_DS || seg == VCPU_SREG_FS
3111 || seg == VCPU_SREG_GS) 3111 || seg == VCPU_SREG_GS)) {
3112 && !emulate_invalid_guest_state) {
3113 *var = vmx->rmode.segs[seg]; 3112 *var = vmx->rmode.segs[seg];
3114 if (seg == VCPU_SREG_TR 3113 if (seg == VCPU_SREG_TR
3115 || var->selector == vmx_read_guest_seg_selector(vmx, seg)) 3114 || var->selector == vmx_read_guest_seg_selector(vmx, seg))