HAX: fix performance degradation on HAX 70/25570/1
authorSeokYeon Hwang <syeon.hwang@samsung.com>
Fri, 1 Aug 2014 04:04:32 +0000 (13:04 +0900)
committerSeokYeon Hwang <syeon.hwang@samsung.com>
Thu, 7 Aug 2014 05:45:10 +0000 (14:45 +0900)
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>
target-i386/hax-all.c

index 12df8c1..a41f4c3 100644 (file)
@@ -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;