mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
kvm: enable smp > 1
Process INIT/SIPI requests and enable -smp > 1. Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com> Signed-off-by: Avi Kivity <avi@redhat.com>
This commit is contained in:
parent
dbaa07c404
commit
0af691d779
5 changed files with 33 additions and 5 deletions
10
kvm-all.c
10
kvm-all.c
|
@ -593,11 +593,6 @@ int kvm_init(int smp_cpus)
|
|||
int ret;
|
||||
int i;
|
||||
|
||||
if (smp_cpus > 1) {
|
||||
fprintf(stderr, "No SMP KVM support, use '-smp 1'\n");
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
s = qemu_mallocz(sizeof(KVMState));
|
||||
|
||||
#ifdef KVM_CAP_SET_GUEST_DEBUG
|
||||
|
@ -840,6 +835,11 @@ int kvm_cpu_exec(CPUState *env)
|
|||
}
|
||||
#endif
|
||||
|
||||
if (kvm_arch_process_irqchip_events(env)) {
|
||||
ret = 0;
|
||||
break;
|
||||
}
|
||||
|
||||
if (env->kvm_vcpu_dirty) {
|
||||
kvm_arch_put_registers(env, KVM_PUT_RUNTIME_STATE);
|
||||
env->kvm_vcpu_dirty = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue