From e987870f59cee7513957a4b6e5881127300204f4 Mon Sep 17 00:00:00 2001 From: SeokYeon Hwang Date: Fri, 1 Aug 2014 13:04:32 +0900 Subject: [PATCH] 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 --- target-i386/hax-all.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.34.1