diff options
author | Borislav Petkov <bp@suse.de> | 2016-05-09 11:53:06 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2016-06-16 00:04:31 +0200 |
commit | 682a8108872f78560c891cf30c7d08aa01dac943 (patch) | |
tree | 5c18518c9a2a3988ca78883e30201c7aac82b261 /arch/x86/include/asm/svm.h | |
parent | MIPS: KVM: Use mipsregs.h defs for config registers (diff) | |
download | linux-682a8108872f78560c891cf30c7d08aa01dac943.tar.xz linux-682a8108872f78560c891cf30c7d08aa01dac943.zip |
x86/kvm/svm: Simplify cpu_has_svm()
Use already cached CPUID information instead of querying CPUID again.
No functionality change.
Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: Joerg Roedel <joro@8bytes.org>
Cc: kvm@vger.kernel.org
Cc: x86@kernel.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/include/asm/svm.h')
-rw-r--r-- | arch/x86/include/asm/svm.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/x86/include/asm/svm.h b/arch/x86/include/asm/svm.h index d0fe23ec7e98..14824fc78f7e 100644 --- a/arch/x86/include/asm/svm.h +++ b/arch/x86/include/asm/svm.h @@ -193,7 +193,6 @@ struct __attribute__ ((__packed__)) vmcb { struct vmcb_save_area save; }; -#define SVM_CPUID_FEATURE_SHIFT 2 #define SVM_CPUID_FUNC 0x8000000a #define SVM_VM_CR_SVM_DISABLE 4 |