summaryrefslogtreecommitdiffstats
path: root/kvm.h
diff options
context:
space:
mode:
authorJan Kiszka2011-06-08 16:11:05 +0200
committerMarcelo Tosatti2011-06-20 20:24:00 +0200
commitba9bc59e1f5dc91caf35e0ef08da137b3a5e7386 (patch)
tree3c58ca29d21256503d7a88f05ff2220c6b7e26de /kvm.h
parentkvm: Clean up stubs (diff)
downloadqemu-ba9bc59e1f5dc91caf35e0ef08da137b3a5e7386.tar.gz
qemu-ba9bc59e1f5dc91caf35e0ef08da137b3a5e7386.tar.xz
qemu-ba9bc59e1f5dc91caf35e0ef08da137b3a5e7386.zip
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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/kvm.h b/kvm.h
index d565dba1da..243b063f92 100644
--- a/kvm.h
+++ b/kvm.h
@@ -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);