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>
#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
goto error;
}
- memory_listener_register(&hax_memory_listener, NULL);
+ memory_listener_register(&hax_memory_listener, &address_space_memory);
hax_support = 1;