diff options
author | SeokYeon Hwang <syeon.hwang@samsung.com> | 2014-08-01 13:04:32 +0900 |
---|---|---|
committer | GiWoong Kim <giwoong.kim@samsung.com> | 2014-08-19 17:33:47 +0900 |
commit | 5975a0a3ed7afc332c2f163a5617743915a40d5e (patch) | |
tree | fafd9b65256ec82fa7bd4a1e191d04ddd954a598 /target-i386 | |
parent | dd34a4216f70ac13bebebe5c59e407e6147dd05b (diff) | |
download | qemu-5975a0a3ed7afc332c2f163a5617743915a40d5e.tar.gz qemu-5975a0a3ed7afc332c2f163a5617743915a40d5e.tar.bz2 qemu-5975a0a3ed7afc332c2f163a5617743915a40d5e.zip |
HAX: fix performance degradation on HAX
HAX should listen to only main memory address space.
This patch would enhance performance on Windows and MacOS.
Change-Id: I3589de6db5846329314cfb3ed98f17355efe4fe7
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
Diffstat (limited to 'target-i386')
-rw-r--r-- | target-i386/hax-all.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/target-i386/hax-all.c b/target-i386/hax-all.c index 12df8c18ff..a41f4c37d3 100644 --- a/target-i386/hax-all.c +++ b/target-i386/hax-all.c @@ -27,6 +27,7 @@ #include "strings.h" #include "hax-i386.h" #include "sysemu/kvm.h" +#include "exec/address-spaces.h" #define HAX_EMUL_ONE 0x1 #define HAX_EMUL_REAL 0x2 @@ -506,7 +507,7 @@ static int hax_init(void) goto error; } - memory_listener_register(&hax_memory_listener, NULL); + memory_listener_register(&hax_memory_listener, &address_space_memory); hax_support = 1; |