x86, kvm: cache the base of the KVM cpuid leaves
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 27 Jan 2014 13:49:40 +0000 (14:49 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Feb 2014 19:22:14 +0000 (11:22 -0800)
commit0f39cea7488daa2f2d77269337597529f047d168
tree2b51203355971983b972074b2fe7cef85ff59ec3
parent67454c317bc75219d41516419ffe516a6c3e962e
x86, kvm: cache the base of the KVM cpuid leaves

commit 1c300a40772dae829b91dad634999a6a522c0829 upstream.

It is unnecessary to go through hypervisor_cpuid_base every time
a leaf is found (which will be every time a feature is requested
after the next patch).

Fixes: 1085ba7f552d84aa8ac0ae903fa8d0cc2ff9f79d
Cc: mtosatti@redhat.com
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/include/asm/kvm_para.h
arch/x86/kernel/kvm.c