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