Skip to contentSkip to conversation

Userspace guest address offsetting

Qemu-devel Juan Quintela 2 participants 2 messages Jul 17, 2009 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 9 lines · Anthony Liguori

From: Paul Brook <[email protected]>

Re-implement GUEST_BASE support.
Offset guest ddress space by default if the guest binary contains regions below the host mmap_min_addr.
Implement support for i386, x86-64 and arm hosts.

Hi

I need this patch to be able to crosscompile for windows. No, I don't know if it is correct, but for the context it looks like this is the intent.

Paul?

tcg/i386/tcg-target.c +1 -1
index ed61780..a95fe4c 100644
@@ -624,7 +624,7 @@ static void tcg_out_qemu_ld(TCGContext *s, const TCGArg *args,
         }
         if (!bswap) {
             tcg_out_modrm_offset(s, 0x8b, data_reg, r0, GUEST_BASE);
-            tcg_out_modrm_offset(s, 0x8b, data_reg2, r0, GUEST+BASE + 4);
+            tcg_out_modrm_offset(s, 0x8b, data_reg2, r0, GUEST_BASE + 4);
         } else {
             tcg_out_modrm_offset(s, 0x8b, data_reg, r0, GUEST_BASE + 4);
             tcg_out_opc(s, (0xc8 + data_reg) | P_EXT);
Acked-by
#2 lore raw
Quoted 13 lines · Juan Quintela
Quoted 9 lines · Anthony Liguori

From: Paul Brook <[email protected]>

Re-implement GUEST_BASE support.
Offset guest ddress space by default if the guest binary contains regions below the host mmap_min_addr.
Implement support for i386, x86-64 and arm hosts.

Hi

Quoted 7 lines

I need this patch to be able to crosscompile for windows. No, I don't know if it is correct, but for the context it looks like this is the intent.

Paul?

The patch is definitely correct and should be applied.

F.