hax: some API that HAX used are modified
authorSeokYeon Hwang <syeon.hwang@samsung.com>
Wed, 26 Aug 2015 06:20:36 +0000 (15:20 +0900)
committerSeokYeon Hwang <syeon.hwang@samsung.com>
Sun, 30 Aug 2015 03:37:55 +0000 (12:37 +0900)
Change-Id: I81c401172ce9b00d29d5dd565dced1130fa88dbd
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
exec.c
target-i386/hax-all.c

diff --git a/exec.c b/exec.c
index fd38f8a50335a627cf576b7be8d7afed0a3a77cc..5fad9975c1c77ce4e46c8a9ea44dc9e1af032839 100644 (file)
--- a/exec.c
+++ b/exec.c
@@ -1523,7 +1523,7 @@ static ram_addr_t ram_block_add(RAMBlock *new_block, Error **errp)
      */
     if (hax_enabled()) {
         int ret = hax_populate_ram((uint64_t)(uintptr_t)new_block->host,
-                                new_block->length);
+                                new_block->max_length);
         if (ret < 0) {
             fprintf(stderr, "HAX failed to populate ram\n");
             exit(-1);
index 8a0151778ed12eb86ae55776e1f4dfaa8baa9de4..3ca3981e174e5c887c04803685a4f3bb56c60b77 100644 (file)
@@ -72,7 +72,7 @@ static int hax_prepare_emulation(CPUArchState *env)
 {
     /* Flush all emulation states */
     tlb_flush(ENV_GET_CPU(env), 1);
-    tb_flush(env);
+    tb_flush(ENV_GET_CPU(env));
     /* Sync the vcpu state from hax kernel module */
     hax_vcpu_sync_state(env, 0);
     return 0;
@@ -411,12 +411,12 @@ static void hax_log_global_stop(struct MemoryListener *listener)
 }
 
 static void hax_log_start(MemoryListener *listener,
-                           MemoryRegionSection *section)
+                           MemoryRegionSection *section, int old, int new)
 {
 }
 
 static void hax_log_stop(MemoryListener *listener,
-                          MemoryRegionSection *section)
+                          MemoryRegionSection *section, int old, int new)
 {
 }