mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 23:03:54 -06:00
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>
This commit is contained in:
parent
55e5c28502
commit
504134d27f
4 changed files with 6 additions and 6 deletions
2
cpus.c
2
cpus.c
|
@ -742,7 +742,7 @@ static void *qemu_kvm_cpu_thread_fn(void *arg)
|
|||
cpu->thread_id = qemu_get_thread_id();
|
||||
cpu_single_env = env;
|
||||
|
||||
r = kvm_init_vcpu(env);
|
||||
r = kvm_init_vcpu(cpu);
|
||||
if (r < 0) {
|
||||
fprintf(stderr, "kvm_init_vcpu failed: %s\n", strerror(-r));
|
||||
exit(1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue