diff options
author | Jan Kiszka <jan.kiszka@siemens.com> | 2011-03-15 12:26:28 +0100 |
---|---|---|
committer | Marcelo Tosatti <mtosatti@redhat.com> | 2011-03-16 17:11:06 -0300 |
commit | bb4ea39329d6c3de4c10034621781f703d095699 (patch) | |
tree | 9627e9893b96c6b3aba7f804484a08e584309ff6 /kvm-all.c | |
parent | d73cd8f4ea1c2944bd16f7a1c445eaa25c9e6e26 (diff) | |
download | qemu-bb4ea39329d6c3de4c10034621781f703d095699.tar.gz qemu-bb4ea39329d6c3de4c10034621781f703d095699.tar.bz2 qemu-bb4ea39329d6c3de4c10034621781f703d095699.zip |
kvm: Align kvm_arch_handle_exit to kvm_cpu_exec changes
Make the return code of kvm_arch_handle_exit directly usable for
kvm_cpu_exec. This is straightforward for x86 and ppc, just s390
would require more work. Avoid this for now by pushing the return code
translation logic into s390's kvm_arch_handle_exit.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
CC: Alexander Graf <agraf@suse.de>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'kvm-all.c')
-rw-r--r-- | kvm-all.c | 5 |
1 files changed, 0 insertions, 5 deletions
@@ -989,11 +989,6 @@ int kvm_cpu_exec(CPUState *env) default: DPRINTF("kvm_arch_handle_exit\n"); ret = kvm_arch_handle_exit(env, run); - if (ret == 0) { - ret = EXCP_INTERRUPT; - } else if (ret > 0) { - ret = 0; - } break; } } while (ret == 0); |