diff options
author | Andreas Färber <afaerber@suse.de> | 2012-12-17 06:38:45 +0100 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2013-01-15 04:09:13 +0100 |
commit | 504134d27f15aa94f6d2b5c45eaa804a8dfb5a4c (patch) | |
tree | 0e8d9bd270b459c1a8077ab71c2dec9ada8e58c5 /include | |
parent | 55e5c2850293547203874098f7cec148ffd12dfa (diff) | |
download | qemu-504134d27f15aa94f6d2b5c45eaa804a8dfb5a4c.zip qemu-504134d27f15aa94f6d2b5c45eaa804a8dfb5a4c.tar.gz qemu-504134d27f15aa94f6d2b5c45eaa804a8dfb5a4c.tar.bz2 |
kvm: Pass CPUState to kvm_init_vcpu()
CPUArchState is no longer needed, and it thereby no longer depends on
NEED_CPU_H.
Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/sysemu/kvm.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/sysemu/kvm.h b/include/sysemu/kvm.h index 3db19ff..2fe8f8a 100644 --- a/include/sysemu/kvm.h +++ b/include/sysemu/kvm.h @@ -17,6 +17,7 @@ #include <errno.h> #include "config-host.h" #include "qemu/queue.h" +#include "qom/cpu.h" #ifdef CONFIG_KVM #include <linux/kvm.h> @@ -120,9 +121,9 @@ int kvm_has_many_ioeventfds(void); int kvm_has_gsi_routing(void); int kvm_has_intx_set_mask(void); -#ifdef NEED_CPU_H -int kvm_init_vcpu(CPUArchState *env); +int kvm_init_vcpu(CPUState *cpu); +#ifdef NEED_CPU_H int kvm_cpu_exec(CPUArchState *env); #if !defined(CONFIG_USER_ONLY) |