[Qemu-devel] [Bug 1818937] Re: Crash with HV_ERROR on macOS host

2019-04-29 Thread Ben Wibking
^This is on version:

% qemu-system-x86_64 --version
QEMU emulator version 4.0.50 (v4.0.0-rc4-52-g3284aa1281-dirty)
Copyright (c) 2003-2019 Fabrice Bellard and the QEMU Project developers

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1818937

Title:
  Crash with HV_ERROR on macOS host

Status in QEMU:
  New

Bug description:
  On macOS host running Windows 10 guest, qemu crashed with error
  message: Error: HV_ERROR.

  Host: macOS Mojave 10.14.3 (18D109) Late 2014 Mac mini presumably Core i5 
4278U.
  QEMU: git commit a3e3b0a7bd5de211a62cdf2d6c12b96d3c403560
  QEMU parameter: qemu-system-x86_64 -m 3000 -drive 
file=disk.img,if=virtio,discard=unmap -accel hvf -soundhw hda -smp 3

  thread list
  Process 56054 stopped
thread #1: tid = 0x2ffec8, 0x7fff48d0805a vImage`vLookupTable_Planar16 
+ 970, queue = 'com.apple.main-thread'
thread #2: tid = 0x2ffecc, 0x7fff79d6d7de 
libsystem_kernel.dylib`__psynch_cvwait + 10
thread #3: tid = 0x2ffecd, 0x7fff79d715aa 
libsystem_kernel.dylib`__select + 10
thread #4: tid = 0x2ffece, 0x7fff79d71d9a 
libsystem_kernel.dylib`__sigwait + 10
  * thread #6: tid = 0x2ffed0, 0x7fff79d7023e 
libsystem_kernel.dylib`__pthread_kill + 10, stop reason = signal SIGABRT
thread #7: tid = 0x2ffed1, 0x7fff79d6d7de 
libsystem_kernel.dylib`__psynch_cvwait + 10
thread #8: tid = 0x2ffed2, 0x7fff79d6d7de 
libsystem_kernel.dylib`__psynch_cvwait + 10
thread #11: tid = 0x2fff34, 0x7fff79d6a17a 
libsystem_kernel.dylib`mach_msg_trap + 10, name = 'com.apple.NSEventThread'
thread #30: tid = 0x300c04, 0x7fff79e233f8 
libsystem_pthread.dylib`start_wqthread
thread #31: tid = 0x300c16, 0x7fff79e233f8 
libsystem_pthread.dylib`start_wqthread
thread #32: tid = 0x300c17, 0x
thread #33: tid = 0x300c93, 0x7fff79d6d7de 
libsystem_kernel.dylib`__psynch_cvwait + 10

  
  Crashed thread:

  * thread #6, stop reason = signal SIGABRT
* frame #0: 0x7fff79d7023e libsystem_kernel.dylib`__pthread_kill + 10
  frame #1: 0x7fff79e26c1c libsystem_pthread.dylib`pthread_kill + 285
  frame #2: 0x7fff79cd91c9 libsystem_c.dylib`abort + 127
  frame #3: 0x00010baa476d 
qemu-system-x86_64`assert_hvf_ok(ret=) at hvf.c:106 [opt]
  frame #4: 0x00010baa4c8f 
qemu-system-x86_64`hvf_vcpu_exec(cpu=0x7f8e5283de00) at hvf.c:681 [opt]
  frame #5: 0x00010b988423 
qemu-system-x86_64`qemu_hvf_cpu_thread_fn(arg=0x7f8e5283de00) at 
cpus.c:1636 [opt]
  frame #6: 0x00010bd9dfce 
qemu-system-x86_64`qemu_thread_start(args=) at 
qemu-thread-posix.c:502 [opt]
  frame #7: 0x7fff79e24305 libsystem_pthread.dylib`_pthread_body + 126
  frame #8: 0x7fff79e2726f libsystem_pthread.dylib`_pthread_start + 70
  frame #9: 0x7fff79e23415 libsystem_pthread.dylib`thread_start + 13

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1818937/+subscriptions



[Qemu-devel] [Bug 1818937] Re: Crash with HV_ERROR on macOS host

2019-04-29 Thread Ben Wibking
I can reproduce this by booting the Windows 10 x64 install ISO with the
command line:

+ WINIMG=Win10.iso
+ VIRTIMG=virtio-win-0.1.164.iso
+ qemu-system-x86_64 -accel hvf -drive driver=raw,file=Win10.img,if=virtio -m 
1536 -net nic,model=virtio -net user -cdrom Win10.iso -drive 
file=virtio-win-0.1.164.iso,index=3,media=cdrom -rtc base=localtime,clock=host 
-smp cores=2 -usb -device usb-tablet -net user
qemu-system-x86_64: warning: host doesn't support requested feature: 
CPUID.8001H:ECX.svm [bit 2]
qemu-system-x86_64: warning: host doesn't support requested feature: 
CPUID.8001H:ECX.svm [bit 2]
Unimplemented handler (f80641601c38) for 0 (f 11) 
Unimplemented handler (f8064160192f) for 0 (f 7f) 
qemu-system-x86_64: Error: HV_ERROR
./qemu-boot.sh: line 20: 32294 Abort trap: 6   qemu-system-x86_64 
-accel hvf -drive driver=raw,file=Win10.img,if=virtio -m 1536 -net 
nic,model=virtio -net user -cdrom ${WINIMG} -drive 
file=${VIRTIMG},index=3,media=cdrom -rtc base=localtime,clock=host -smp cores=2 
-usb -device usb-tablet -net user

** Attachment added: "Crash log"
   
https://bugs.launchpad.net/qemu/+bug/1818937/+attachment/5260023/+files/crash_log.txt

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1818937

Title:
  Crash with HV_ERROR on macOS host

Status in QEMU:
  New

Bug description:
  On macOS host running Windows 10 guest, qemu crashed with error
  message: Error: HV_ERROR.

  Host: macOS Mojave 10.14.3 (18D109) Late 2014 Mac mini presumably Core i5 
4278U.
  QEMU: git commit a3e3b0a7bd5de211a62cdf2d6c12b96d3c403560
  QEMU parameter: qemu-system-x86_64 -m 3000 -drive 
file=disk.img,if=virtio,discard=unmap -accel hvf -soundhw hda -smp 3

  thread list
  Process 56054 stopped
thread #1: tid = 0x2ffec8, 0x7fff48d0805a vImage`vLookupTable_Planar16 
+ 970, queue = 'com.apple.main-thread'
thread #2: tid = 0x2ffecc, 0x7fff79d6d7de 
libsystem_kernel.dylib`__psynch_cvwait + 10
thread #3: tid = 0x2ffecd, 0x7fff79d715aa 
libsystem_kernel.dylib`__select + 10
thread #4: tid = 0x2ffece, 0x7fff79d71d9a 
libsystem_kernel.dylib`__sigwait + 10
  * thread #6: tid = 0x2ffed0, 0x7fff79d7023e 
libsystem_kernel.dylib`__pthread_kill + 10, stop reason = signal SIGABRT
thread #7: tid = 0x2ffed1, 0x7fff79d6d7de 
libsystem_kernel.dylib`__psynch_cvwait + 10
thread #8: tid = 0x2ffed2, 0x7fff79d6d7de 
libsystem_kernel.dylib`__psynch_cvwait + 10
thread #11: tid = 0x2fff34, 0x7fff79d6a17a 
libsystem_kernel.dylib`mach_msg_trap + 10, name = 'com.apple.NSEventThread'
thread #30: tid = 0x300c04, 0x7fff79e233f8 
libsystem_pthread.dylib`start_wqthread
thread #31: tid = 0x300c16, 0x7fff79e233f8 
libsystem_pthread.dylib`start_wqthread
thread #32: tid = 0x300c17, 0x
thread #33: tid = 0x300c93, 0x7fff79d6d7de 
libsystem_kernel.dylib`__psynch_cvwait + 10

  
  Crashed thread:

  * thread #6, stop reason = signal SIGABRT
* frame #0: 0x7fff79d7023e libsystem_kernel.dylib`__pthread_kill + 10
  frame #1: 0x7fff79e26c1c libsystem_pthread.dylib`pthread_kill + 285
  frame #2: 0x7fff79cd91c9 libsystem_c.dylib`abort + 127
  frame #3: 0x00010baa476d 
qemu-system-x86_64`assert_hvf_ok(ret=) at hvf.c:106 [opt]
  frame #4: 0x00010baa4c8f 
qemu-system-x86_64`hvf_vcpu_exec(cpu=0x7f8e5283de00) at hvf.c:681 [opt]
  frame #5: 0x00010b988423 
qemu-system-x86_64`qemu_hvf_cpu_thread_fn(arg=0x7f8e5283de00) at 
cpus.c:1636 [opt]
  frame #6: 0x00010bd9dfce 
qemu-system-x86_64`qemu_thread_start(args=) at 
qemu-thread-posix.c:502 [opt]
  frame #7: 0x7fff79e24305 libsystem_pthread.dylib`_pthread_body + 126
  frame #8: 0x7fff79e2726f libsystem_pthread.dylib`_pthread_start + 70
  frame #9: 0x7fff79e23415 libsystem_pthread.dylib`thread_start + 13

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1818937/+subscriptions



[Qemu-devel] [Bug 1826599] Re: qemu crashes with HV_ERROR with any guest when using HVF on macos

2019-04-29 Thread Ben Wibking
*** This bug is a duplicate of bug 1818937 ***
https://bugs.launchpad.net/bugs/1818937

** This bug has been marked a duplicate of bug 1818937
   Crash with HV_ERROR on macOS host

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1826599

Title:
  qemu crashes with HV_ERROR with any guest when using HVF on macos

Status in QEMU:
  New

Bug description:
  qemu reliably crashes (after some unknown amount of time) for any
  guest I've run on macOS (10.14.4) with HVF acceleration.

  I'm using the latest development tree:
  % qemu-system-x86_64 --version
  QEMU emulator version 4.0.50 (v4.0.0-rc4-52-g3284aa1281-dirty)
  Copyright (c) 2003-2019 Fabrice Bellard and the QEMU Project developers

  I'm currently running Haiku. After booting and running normally for a
  few minutes, it abruptly crashes and shows this error on stdout (I'm
  including the command line arguments):

  + ISO=haiku-release-anyboot.iso
  + ACCEL='-accel hvf -machine type=q35,accel=hvf'
  + MEM='-m 1G'
  + SMP='-c 2'
  + NET='-device virtio-net,netdev=vmnic -netdev user,id=vmnic'
  + IMG_CD='-cdrom haiku-release-anyboot.iso'
  + IMG_HDD='-device virtio-scsi-pci,id=scsi -drive 
if=none,id=vd0,file=haiku.img,format=raw -device scsi-hd,drive=vd0'
  + DISPLAY='-usb -device usb-tablet'
  + qemu-system-x86_64 -accel hvf -machine type=q35,accel=hvf -usb -device 
usb-tablet -m 1G -device virtio-net,netdev=vmnic -netdev user,id=vmnic -device 
virtio-scsi-pci,id=scsi -drive if=none,id=vd0,file=haiku.img,format=raw -device 
scsi-hd,drive=vd0
  qemu-system-x86_64: warning: host doesn't support requested feature: 
CPUID.8001H:ECX.svm [bit 2]
  qemu-system-x86_64: Error: HV_ERROR
  ./qemu-boot.sh: line 19: 67497 Abort trap: 6   qemu-system-x86_64 
$ACCEL $CPU $EFI $DISPLAY $MEM $NET $IMG_HDD

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1826599/+subscriptions



[Qemu-devel] [Bug 1826599] [NEW] qemu crashes with HV_ERROR with any guest when using HVF on macos

2019-04-26 Thread Ben Wibking
Public bug reported:

qemu reliably crashes (after some unknown amount of time) for any guest
I've run on macOS (10.14.4) with HVF acceleration.

I'm using the latest development tree:
% qemu-system-x86_64 --version
QEMU emulator version 4.0.50 (v4.0.0-rc4-52-g3284aa1281-dirty)
Copyright (c) 2003-2019 Fabrice Bellard and the QEMU Project developers

I'm currently running Haiku. After booting and running normally for a
few minutes, it abruptly crashes and shows this error on stdout (I'm
including the command line arguments):

+ ISO=haiku-release-anyboot.iso
+ ACCEL='-accel hvf -machine type=q35,accel=hvf'
+ MEM='-m 1G'
+ SMP='-c 2'
+ NET='-device virtio-net,netdev=vmnic -netdev user,id=vmnic'
+ IMG_CD='-cdrom haiku-release-anyboot.iso'
+ IMG_HDD='-device virtio-scsi-pci,id=scsi -drive 
if=none,id=vd0,file=haiku.img,format=raw -device scsi-hd,drive=vd0'
+ DISPLAY='-usb -device usb-tablet'
+ qemu-system-x86_64 -accel hvf -machine type=q35,accel=hvf -usb -device 
usb-tablet -m 1G -device virtio-net,netdev=vmnic -netdev user,id=vmnic -device 
virtio-scsi-pci,id=scsi -drive if=none,id=vd0,file=haiku.img,format=raw -device 
scsi-hd,drive=vd0
qemu-system-x86_64: warning: host doesn't support requested feature: 
CPUID.8001H:ECX.svm [bit 2]
qemu-system-x86_64: Error: HV_ERROR
./qemu-boot.sh: line 19: 67497 Abort trap: 6   qemu-system-x86_64 
$ACCEL $CPU $EFI $DISPLAY $MEM $NET $IMG_HDD

** Affects: qemu
 Importance: Undecided
 Status: New

** Description changed:

  qemu reliably crashes (after some unknown amount of time) for any guest
- I've run on macos with HVF acceleration.
+ I've run on macOS (10.14.4) with HVF acceleration.
  
  I'm currently running Haiku. After booting and running normally for a
  few minutes, it abruptly crashes and shows this error on stdout (I'm
  including the command line arguments):
  
  + ISO=haiku-release-anyboot.iso
  + ACCEL='-accel hvf -machine type=q35,accel=hvf'
  + MEM='-m 1G'
  + SMP='-c 2'
  + NET='-device virtio-net,netdev=vmnic -netdev user,id=vmnic'
  + IMG_CD='-cdrom haiku-release-anyboot.iso'
  + IMG_HDD='-device virtio-scsi-pci,id=scsi -drive 
if=none,id=vd0,file=haiku.img,format=raw -device scsi-hd,drive=vd0'
  + DISPLAY='-usb -device usb-tablet'
  + qemu-system-x86_64 -accel hvf -machine type=q35,accel=hvf -usb -device 
usb-tablet -m 1G -device virtio-net,netdev=vmnic -netdev user,id=vmnic -device 
virtio-scsi-pci,id=scsi -drive if=none,id=vd0,file=haiku.img,format=raw -device 
scsi-hd,drive=vd0
  qemu-system-x86_64: warning: host doesn't support requested feature: 
CPUID.8001H:ECX.svm [bit 2]
  qemu-system-x86_64: Error: HV_ERROR
  ./qemu-boot.sh: line 19: 67497 Abort trap: 6   qemu-system-x86_64 
$ACCEL $CPU $EFI $DISPLAY $MEM $NET $IMG_HDD

** Description changed:

  qemu reliably crashes (after some unknown amount of time) for any guest
  I've run on macOS (10.14.4) with HVF acceleration.
+ 
+ I'm using the latest development tree:
+ % qemu-system-x86_64 --version
+ QEMU emulator version 4.0.50 (v4.0.0-rc4-52-g3284aa1281-dirty)
+ Copyright (c) 2003-2019 Fabrice Bellard and the QEMU Project developers
  
  I'm currently running Haiku. After booting and running normally for a
  few minutes, it abruptly crashes and shows this error on stdout (I'm
  including the command line arguments):
  
  + ISO=haiku-release-anyboot.iso
  + ACCEL='-accel hvf -machine type=q35,accel=hvf'
  + MEM='-m 1G'
  + SMP='-c 2'
  + NET='-device virtio-net,netdev=vmnic -netdev user,id=vmnic'
  + IMG_CD='-cdrom haiku-release-anyboot.iso'
  + IMG_HDD='-device virtio-scsi-pci,id=scsi -drive 
if=none,id=vd0,file=haiku.img,format=raw -device scsi-hd,drive=vd0'
  + DISPLAY='-usb -device usb-tablet'
  + qemu-system-x86_64 -accel hvf -machine type=q35,accel=hvf -usb -device 
usb-tablet -m 1G -device virtio-net,netdev=vmnic -netdev user,id=vmnic -device 
virtio-scsi-pci,id=scsi -drive if=none,id=vd0,file=haiku.img,format=raw -device 
scsi-hd,drive=vd0
  qemu-system-x86_64: warning: host doesn't support requested feature: 
CPUID.8001H:ECX.svm [bit 2]
  qemu-system-x86_64: Error: HV_ERROR
  ./qemu-boot.sh: line 19: 67497 Abort trap: 6   qemu-system-x86_64 
$ACCEL $CPU $EFI $DISPLAY $MEM $NET $IMG_HDD

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1826599

Title:
  qemu crashes with HV_ERROR with any guest when using HVF on macos

Status in QEMU:
  New

Bug description:
  qemu reliably crashes (after some unknown amount of time) for any
  guest I've run on macOS (10.14.4) with HVF acceleration.

  I'm using the latest development tree:
  % qemu-system-x86_64 --version
  QEMU emulator version 4.0.50 (v4.0.0-rc4-52-g3284aa1281-dirty)
  Copyright (c) 2003-2019 Fabrice Bellard and the QEMU Project developers

  I'm currently running Haiku. After booting and running normally for a
  few minutes, it abruptly crashes and shows this error on stdout (I'm
  including