aboutsummaryrefslogtreecommitdiff
path: root/kvm-all.c
diff options
context:
space:
mode:
authorAndreas Färber <afaerber@suse.de>2012-12-17 08:02:44 +0100
committerAndreas Färber <afaerber@suse.de>2013-02-16 14:51:00 +0100
commitfcd7d0034b7eddba505a548f456f452bf5a7d56c (patch)
treefef2f0c973e60467b4debfac984cd4bd6f8061c3 /kvm-all.c
parent0315c31cda054775585b31f8cb3c9228cc6fc28b (diff)
downloadqemu-fcd7d0034b7eddba505a548f456f452bf5a7d56c.zip
qemu-fcd7d0034b7eddba505a548f456f452bf5a7d56c.tar.gz
qemu-fcd7d0034b7eddba505a548f456f452bf5a7d56c.tar.bz2
cpu: Move exit_request field to CPUState
Since it was located before breakpoints field, it needs to be reset. Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'kvm-all.c')
-rw-r--r--kvm-all.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/kvm-all.c b/kvm-all.c
index 04ec2d5..4decfdc 100644
--- a/kvm-all.c
+++ b/kvm-all.c
@@ -1537,7 +1537,7 @@ int kvm_cpu_exec(CPUArchState *env)
DPRINTF("kvm_cpu_exec()\n");
if (kvm_arch_process_async_events(cpu)) {
- env->exit_request = 0;
+ cpu->exit_request = 0;
return EXCP_HLT;
}
@@ -1548,7 +1548,7 @@ int kvm_cpu_exec(CPUArchState *env)
}
kvm_arch_pre_run(cpu, run);
- if (env->exit_request) {
+ if (cpu->exit_request) {
DPRINTF("interrupt exit requested\n");
/*
* KVM requires us to reenter the kernel after IO exits to complete
@@ -1622,7 +1622,7 @@ int kvm_cpu_exec(CPUArchState *env)
vm_stop(RUN_STATE_INTERNAL_ERROR);
}
- env->exit_request = 0;
+ cpu->exit_request = 0;
return ret;
}