kvm: Rework inner loop of kvm_cpu_exec
commitd73cd8f4ea1c2944bd16f7a1c445eaa25c9e6e26
authorJan Kiszka <jan.kiszka@siemens.com>
Tue, 15 Mar 2011 11:26:27 +0000 (15 12:26 +0100)
committerMarcelo Tosatti <mtosatti@redhat.com>
Wed, 16 Mar 2011 20:11:06 +0000 (16 17:11 -0300)
treeda825dd8bd61a5ae944679727d56c2ac70a03389
parentdc77d341d2dcd3eeadae736ed7e7775e22324844
kvm: Rework inner loop of kvm_cpu_exec

Let kvm_cpu_exec return EXCP_* values consistently and generate those
codes already inside its inner loop. This means we will now re-enter the
kernel while ret == 0.

Update kvm_handle_internal_error accordingly, but keep
kvm_arch_handle_exit untouched, it will be converted in a separate step.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
kvm-all.c