Disentangle the logic around handle_io_window in kvm_run. Signed-off-by: Jan Kiszka <jan.kiszka@xxxxxxxxxxx> --- qemu-kvm.c | 9 +-------- 1 files changed, 1 insertions(+), 8 deletions(-) diff --git a/qemu-kvm.c b/qemu-kvm.c index b1405fd..2af70c5 100644 --- a/qemu-kvm.c +++ b/qemu-kvm.c @@ -339,11 +339,6 @@ static int handle_mmio(CPUState *env) return 0; } -static int handle_io_window(kvm_context_t kvm) -{ - return 1; -} - static int handle_shutdown(kvm_context_t kvm, CPUState *env) { /* stop the current vcpu from going back to guest mode */ @@ -422,8 +417,7 @@ static int kvm_run(CPUState *env) #if !defined(__s390__) if (r == -1) { - r = handle_io_window(kvm); - goto more; + return 1; } #endif if (1) { @@ -483,7 +477,6 @@ static int kvm_run(CPUState *env) break; } } -more: if (!r) { goto again; } -- 1.7.1 -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html