Hi,

I'm trying to use qemu on OSX Catalina using HVF hypervisor, but it's currently panic'ing upon booting Linux guest.

These are the args I'm using:
build % ./qemu-system-x86_64 -cdrom ~/Downloads/archlinux-2020.08.01-x86_64.iso -smp 4 -m 4G -vga virtio -accel hvf -cpu host

I could trace the failure to test_pt_entry(), in this exact position:

build % git diff
diff --git a/target/i386/hvf/x86_mmu.c b/target/i386/hvf/x86_mmu.c
index 65d4603dbf..8f04a94cc6 100644
--- a/target/i386/hvf/x86_mmu.c
+++ b/target/i386/hvf/x86_mmu.c
@@ -113,6 +113,7 @@ static bool test_pt_entry(struct CPUState *cpu, struct gpt_translation *pt,
     }

     if (!pte_present(pte)) {
+        printf("Code is failing here");
         return false;
     }


Is anyone aware of this issue?

Br, David Cohen

Reply via email to