OSDN Git Service

KVM: vmx: rename KVM_GUEST_CR0_MASK tp KVM_VM_CR0_ALWAYS_OFF
authorSean Christopherson <sean.j.christopherson@intel.com>
Fri, 13 Jul 2018 15:42:30 +0000 (08:42 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 13 Oct 2018 10:00:53 +0000 (12:00 +0200)
commit3de6347bf96abead5c5257b43a58ca0a057df894
tree494953ab0b3ce1b4bbf62c8fd8fcd113ebaff2ea
parent3d0d0d9b1d805e39456a9d49443d847092cb21ab
KVM: vmx: rename KVM_GUEST_CR0_MASK tp KVM_VM_CR0_ALWAYS_OFF

The KVM_GUEST_CR0_MASK macro tracks CR0 bits that are forced to zero
by the VMX architecture, i.e. CR0.{NW,CD} must always be zero in the
hardware CR0 post-VMXON.  Rename the macro to clarify its purpose,
be consistent with KVM_VM_CR0_ALWAYS_ON and avoid confusion with the
CR0_GUEST_HOST_MASK field.

Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Reviewed-by: Jim Mattson <jmattson@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx.c