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/cpuid.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/cpuid.c')
-rw-r--r-- | arch/x86/kvm/cpuid.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/cpuid.c b/arch/x86/kvm/cpuid.c index ca20951fac2b..74a4d9b4e61f 100644 --- a/arch/x86/kvm/cpuid.c +++ b/arch/x86/kvm/cpuid.c @@ -62,7 +62,7 @@ u64 kvm_supported_xcr0(void) return xcr0; } -#define F(x) bit(X86_FEATURE_##x) +#define F feature_bit int kvm_update_cpuid(struct kvm_vcpu *vcpu) { |