kvm: Leave kvm_cpu_exec directly after KVM_EXIT_SHUTDOWN
authorJan Kiszka <jan.kiszka@siemens.com>
Tue, 1 Feb 2011 21:16:02 +0000 (22:16 +0100)
committerMarcelo Tosatti <mtosatti@redhat.com>
Mon, 14 Feb 2011 14:39:45 +0000 (12:39 -0200)
commitafdfb83e69059db98a84dc833a7fb3daf32c94bf
tree5766d02dc6502b750bd48ea2d134026554663828
parent9fe3e67e70854f66db98d6f734957e7f4c1c3e79
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>
kvm-all.c