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)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 29 Jan 2014 17:11:54 +0000 (18:11 +0100)
commit1c300a40772dae829b91dad634999a6a522c0829
tree14707e507380a59196f37d27faa469c473372859
parent5f66b62095d028b70a322df15e8f9ffcdbcb474c
x86, kvm: cache the base of the KVM cpuid leaves

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: stable@vger.kernel.org
Cc: mtosatti@redhat.com
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/kvm_para.h
arch/x86/kernel/kvm.c