KVM: Add cpuid_update() callback to kvm_x86_ops
authorSheng Yang <sheng@linux.intel.com>
Fri, 18 Dec 2009 08:48:46 +0000 (16:48 +0800)
committerMarcelo Tosatti <mtosatti@redhat.com>
Mon, 1 Mar 2010 15:35:40 +0000 (12:35 -0300)
commit0e85188049afacdfce9c026144142264981bbabb
tree773021a2bd3a799e2814e750ad85ff016f51fccf
parentbe43f83dada2cf0e9e01c9a0ba42977c5bd70f9d
KVM: Add cpuid_update() callback to kvm_x86_ops

Sometime, we need to adjust some state in order to reflect guest CPUID
setting, e.g. if we don't expose rdtscp to guest, we won't want to enable
it on hardware. cpuid_update() is introduced for this purpose.

Also export kvm_find_cpuid_entry() for later use.

Signed-off-by: Sheng Yang <sheng@linux.intel.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/svm.c
arch/x86/kvm/vmx.c
arch/x86/kvm/x86.c