diff options
author | Xin Xiaohui <xiaohui.xin@intel.com> | 2013-01-08 11:21:56 +0800 |
---|---|---|
committer | Zhai Edwin <edwin.zhai@intel.com> | 2013-01-08 13:23:13 +0800 |
commit | 7277e47f8620332991a644c7964445a3340c4ce0 (patch) | |
tree | 8ffa951182051a340278bfa0c2fa4d2bdb8acaf3 /cpus.c | |
parent | ed1f5b04b2d9dacd4742b5dc8f117b7c05ba7c5c (diff) | |
download | qemu-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.c | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -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 |