kvm: x86: Pass KVMState to kvm_arch_get_supported_cpuid
authorJan Kiszka <jan.kiszka@siemens.com>
Wed, 8 Jun 2011 14:11:05 +0000 (16:11 +0200)
committerMarcelo Tosatti <mtosatti@redhat.com>
Mon, 20 Jun 2011 18:24:00 +0000 (15:24 -0300)
commitba9bc59e1f5dc91caf35e0ef08da137b3a5e7386
tree3c58ca29d21256503d7a88f05ff2220c6b7e26de
parent4bef75b5333799da5cf5287705250dc562a41307
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>
kvm.h
target-i386/cpuid.c
target-i386/kvm.c