diff options
author | Sean Christopherson <sean.j.christopherson@intel.com> | 2019-12-17 13:32:42 -0800 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2020-01-21 14:45:28 +0100 |
commit | 87382003e3555926017228452dae7e7064b0f915 (patch) | |
tree | b8403f4137388876d94d8d5628ab2f480dac7dff /arch/x86/kvm/x86.c | |
parent | a7c48c3f56db8d18d15ee6d8c2c5e2da447c77cc (diff) | |
download | lwn-87382003e3555926017228452dae7e7064b0f915.tar.gz lwn-87382003e3555926017228452dae7e7064b0f915.zip |
KVM: x86: Refactor and rename bit() to feature_bit() macro
Rename bit() to __feature_bit() to give it a more descriptive name, and
add a macro, feature_bit(), to stuff the X68_FEATURE_ prefix to keep
line lengths manageable for code that hardcodes the bit to be retrieved.
No functional change intended.
Cc: Jim Mattson <jmattson@google.com>
Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm/x86.c')
-rw-r--r-- | arch/x86/kvm/x86.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 60b0d69af0f1..3e70af42f65b 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -904,7 +904,7 @@ static u64 kvm_host_cr4_reserved_bits(struct cpuinfo_x86 *c) { u64 reserved_bits = __cr4_reserved_bits(cpu_has, c); - if (cpuid_ecx(0x7) & bit(X86_FEATURE_LA57)) + if (cpuid_ecx(0x7) & feature_bit(LA57)) reserved_bits &= ~X86_CR4_LA57; if (kvm_x86_ops->umip_emulated()) |