diff options
-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 be9441056ff2..a6598cbaa001 100644 --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kvm/vmx.c | |||
@@ -1649,7 +1649,7 @@ static void vmx_get_segment(struct kvm_vcpu *vcpu, | |||
1649 | var->limit = vmcs_read32(sf->limit); | 1649 | var->limit = vmcs_read32(sf->limit); |
1650 | var->selector = vmcs_read16(sf->selector); | 1650 | var->selector = vmcs_read16(sf->selector); |
1651 | ar = vmcs_read32(sf->ar_bytes); | 1651 | ar = vmcs_read32(sf->ar_bytes); |
1652 | if (ar & AR_UNUSABLE_MASK) | 1652 | if ((ar & AR_UNUSABLE_MASK) && !emulate_invalid_guest_state) |
1653 | ar = 0; | 1653 | ar = 0; |
1654 | var->type = ar & 15; | 1654 | var->type = ar & 15; |
1655 | var->s = (ar >> 4) & 1; | 1655 | var->s = (ar >> 4) & 1; |