diff options
author | Sheng Yang <sheng@linux.intel.com> | 2009-12-18 03:48:46 -0500 |
---|---|---|
committer | Marcelo Tosatti <mtosatti@redhat.com> | 2010-03-01 10:35:40 -0500 |
commit | 0e85188049afacdfce9c026144142264981bbabb (patch) | |
tree | 773021a2bd3a799e2814e750ad85ff016f51fccf /arch/x86/include | |
parent | be43f83dada2cf0e9e01c9a0ba42977c5bd70f9d (diff) |
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>
Diffstat (limited to 'arch/x86/include')
-rw-r--r-- | arch/x86/include/asm/kvm_host.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h index e9f4f12ec3c4..7ff0ea371e3c 100644 --- a/arch/x86/include/asm/kvm_host.h +++ b/arch/x86/include/asm/kvm_host.h | |||
@@ -459,6 +459,7 @@ struct kvm_x86_ops { | |||
459 | int (*hardware_setup)(void); /* __init */ | 459 | int (*hardware_setup)(void); /* __init */ |
460 | void (*hardware_unsetup)(void); /* __exit */ | 460 | void (*hardware_unsetup)(void); /* __exit */ |
461 | bool (*cpu_has_accelerated_tpr)(void); | 461 | bool (*cpu_has_accelerated_tpr)(void); |
462 | void (*cpuid_update)(struct kvm_vcpu *vcpu); | ||
462 | 463 | ||
463 | /* Create, but do not attach this VCPU */ | 464 | /* Create, but do not attach this VCPU */ |
464 | struct kvm_vcpu *(*vcpu_create)(struct kvm *kvm, unsigned id); | 465 | struct kvm_vcpu *(*vcpu_create)(struct kvm *kvm, unsigned id); |