diff options
author | Jan Kiszka <jan.kiszka@siemens.com> | 2011-06-08 16:11:05 +0200 |
---|---|---|
committer | Marcelo Tosatti <mtosatti@redhat.com> | 2011-06-20 15:24:00 -0300 |
commit | ba9bc59e1f5dc91caf35e0ef08da137b3a5e7386 (patch) | |
tree | 3c58ca29d21256503d7a88f05ff2220c6b7e26de /kvm.h | |
parent | 4bef75b5333799da5cf5287705250dc562a41307 (diff) | |
download | qemu-ba9bc59e1f5dc91caf35e0ef08da137b3a5e7386.zip qemu-ba9bc59e1f5dc91caf35e0ef08da137b3a5e7386.tar.gz qemu-ba9bc59e1f5dc91caf35e0ef08da137b3a5e7386.tar.bz2 |
kvm: x86: Pass KVMState to kvm_arch_get_supported_cpuid
kvm_arch_get_supported_cpuid checks for global cpuid restrictions, it
does not require any CPUState reference. Changing its interface allows
to call it before any VCPU is initialized.
CC: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'kvm.h')
-rw-r--r-- | kvm.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -157,7 +157,7 @@ bool kvm_arch_stop_on_emulation_error(CPUState *env); int kvm_check_extension(KVMState *s, unsigned int extension); -uint32_t kvm_arch_get_supported_cpuid(CPUState *env, uint32_t function, +uint32_t kvm_arch_get_supported_cpuid(KVMState *env, uint32_t function, uint32_t index, int reg); void kvm_cpu_synchronize_state(CPUState *env); void kvm_cpu_synchronize_post_reset(CPUState *env); |