mirror of https://github.com/xemu-project/xemu.git
kvm: Leave kvm_cpu_exec directly after KVM_EXIT_SHUTDOWN
The reset we issue on KVM_EXIT_SHUTDOWN implies that we should also leave the VCPU loop. As we now check for exit_request which is set by qemu_system_reset_request, this bug is no longer critical. Still it's an unneeded extra turn. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
This commit is contained in:
parent
b30e93e9ec
commit
cdea50ede1
|
@ -963,7 +963,6 @@ int kvm_cpu_exec(CPUState *env)
|
||||||
case KVM_EXIT_SHUTDOWN:
|
case KVM_EXIT_SHUTDOWN:
|
||||||
DPRINTF("shutdown\n");
|
DPRINTF("shutdown\n");
|
||||||
qemu_system_reset_request();
|
qemu_system_reset_request();
|
||||||
ret = 1;
|
|
||||||
break;
|
break;
|
||||||
case KVM_EXIT_UNKNOWN:
|
case KVM_EXIT_UNKNOWN:
|
||||||
fprintf(stderr, "KVM: unknown exit, hardware reason %" PRIx64 "\n",
|
fprintf(stderr, "KVM: unknown exit, hardware reason %" PRIx64 "\n",
|
||||||
|
|
Loading…
Reference in New Issue