summaryrefslogtreecommitdiff
path: root/cpus.c
diff options
context:
space:
mode:
authorXin Xiaohui <xiaohui.xin@intel.com>2013-01-08 11:21:56 +0800
committerZhai Edwin <edwin.zhai@intel.com>2013-01-08 13:23:13 +0800
commit7277e47f8620332991a644c7964445a3340c4ce0 (patch)
tree8ffa951182051a340278bfa0c2fa4d2bdb8acaf3 /cpus.c
parented1f5b04b2d9dacd4742b5dc8f117b7c05ba7c5c (diff)
downloadqemu-7277e47f8620332991a644c7964445a3340c4ce0.tar.gz
qemu-7277e47f8620332991a644c7964445a3340c4ce0.tar.bz2
qemu-7277e47f8620332991a644c7964445a3340c4ce0.zip
From 8fdd165fa910de700649f05f2b074a21e18500d4 Mon Sep 17 00:00:00 2001
Subject: [PATCH] Re-add qemu_notify_hax_event() Signed-off-by: Xin Xiaohui <xiaohui.xin@intel.com> Signed-off-by: Igor Mitsyanko <i.mitsyanko@samsung.com>
Diffstat (limited to 'cpus.c')
-rw-r--r--cpus.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/cpus.c b/cpus.c
index 4659db41a4..82d82396eb 100644
--- a/cpus.c
+++ b/cpus.c
@@ -1349,12 +1349,15 @@ void qmp_inject_nmi(Error **errp)
#endif
}
-#ifdef CONFIG_HAX
+#ifdef CONFIG_HAX
void qemu_notify_hax_event(void)
{
- CPUArchState *env = cpu_single_env;
+ CPUArchState *env = NULL;
- if (hax_enabled() && env)
- hax_raise_event(env);
+ if (hax_enabled()) {
+ for (env = first_cpu; env != NULL; env = env->next_cpu) {
+ hax_raise_event(env);
+ }
+ }
}
#endif