x86/kvm/svm: Simplify cpu_has_svm()
authorBorislav Petkov <bp@suse.de>
Mon, 9 May 2016 09:53:06 +0000 (11:53 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 15 Jun 2016 22:04:31 +0000 (00:04 +0200)
commit682a8108872f78560c891cf30c7d08aa01dac943
tree5c18518c9a2a3988ca78883e30201c7aac82b261
parent4e10b764e2cba8d8eb5e22d9d8061806ec86805c
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>
arch/x86/include/asm/svm.h
arch/x86/include/asm/virtext.h