]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit39966391129b0c83ae13b0e52707d38c323bad6a
tree14707e507380a59196f37d27faa469c473372859
parenteb22c49346d813ac9f20b69e9507c3f935b08ef9
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: a77f56bba55dae3fc0326eb928bda5481d5f9826
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