]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
KVM: vmx: use X86_CR4_UMIP and X86_FEATURE_UMIP
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 13 Nov 2017 13:23:59 +0000 (14:23 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 17 Nov 2017 12:20:23 +0000 (13:20 +0100)
These bits were not defined until now in common code, but they are
now that the kernel supports UMIP too.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx.c

index be4724b5d434cb807e496a4019ffb0c9d384ad56..0d59dbe430c82ae96315b0bdb27e8c7a020aa2d1 100644 (file)
@@ -9801,8 +9801,7 @@ static void nested_vmx_cr_fixed1_bits_update(struct kvm_vcpu *vcpu)
        cr4_fixed1_update(X86_CR4_SMEP,       ebx, bit(X86_FEATURE_SMEP));
        cr4_fixed1_update(X86_CR4_SMAP,       ebx, bit(X86_FEATURE_SMAP));
        cr4_fixed1_update(X86_CR4_PKE,        ecx, bit(X86_FEATURE_PKU));
-       /* TODO: Use X86_CR4_UMIP and X86_FEATURE_UMIP macros */
-       cr4_fixed1_update(bit(11),            ecx, bit(2));
+       cr4_fixed1_update(X86_CR4_UMIP,       ecx, bit(X86_FEATURE_UMIP));
 
 #undef cr4_fixed1_update
 }