aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/vmx.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kvm/vmx.c')
-rw-r--r--arch/x86/kvm/vmx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c
index 5b4cdcbd154c..d09833e45f6f 100644
--- a/arch/x86/kvm/vmx.c
+++ b/arch/x86/kvm/vmx.c
@@ -2113,7 +2113,7 @@ static int vmx_get_cpl(struct kvm_vcpu *vcpu)
2113 if (!is_protmode(vcpu)) 2113 if (!is_protmode(vcpu))
2114 return 0; 2114 return 0;
2115 2115
2116 if (vmx_get_rflags(vcpu) & X86_EFLAGS_VM) /* if virtual 8086 */ 2116 if (kvm_get_rflags(vcpu) & X86_EFLAGS_VM) /* if virtual 8086 */
2117 return 3; 2117 return 3;
2118 2118
2119 return vmcs_read16(GUEST_CS_SELECTOR) & 3; 2119 return vmcs_read16(GUEST_CS_SELECTOR) & 3;