All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bug 1894836] [NEW] kernel panic using hvf with CPU passthrough
@ 2020-09-08 12:21 Jordan Williams
  2020-09-08 13:06 ` [Bug 1894836] " Jordan Williams
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Jordan Williams @ 2020-09-08 12:21 UTC (permalink / raw)
  To: qemu-devel

Public bug reported:

Host Details
QEMU 5.1 (Homebrew)
macOS 10.15.6 Catalina
Late 2014 iMac
i5-4690 @ 3.5 GHz
8 GB RAM

Guest Details
Ubuntu Desktop 20.04.1 Installer ISO

Problem
Whenever I boot with "-accel hvf -cpu host", the Ubuntu desktop installer will immediately crash with a kernel panic after the initial splash screen.
See the attached picture of the kernel panic for more details.

Steps to recreate
>From https://www.jwillikers.com/posts/virtualize_ubuntu_desktop_on_macos_with_qemu/

1. Install QEMU with Homebrew.
$ brew install qemu

2. Create a qcow2 disk image to which to install.
$ qemu-img create -f qcow2 ubuntu2004.qcow2 60G

3. Download the ISO.
$ curl -L -o ubuntu-20.04.1-desktop-amd64.iso https://releases.ubuntu.com/20.04/ubuntu-20.04.1-desktop-amd64.iso

4. Run the installer in QEMU.
$ qemu-system-x86_64 \
  -accel hvf \
  -cpu host \
  -smp 2 \
  -m 4G \
  -usb \
  -device usb-tablet \
  -vga virtio \
  -display default,show-cursor=on \
  -device virtio-net,netdev=vmnic -netdev user,id=vmnic \
  -audiodev coreaudio,id=snd0 \
  -device ich9-intel-hda -device hda-output,audiodev=snd0 \
  -cdrom ubuntu-20.04.1-desktop-amd64.iso \
  -drive file=ubuntu2004.qcow2,if=virtio

Workaround
Emulating the CPU with "-cpu qemu64" does not result in a kernel panic.

** Affects: qemu
     Importance: Undecided
         Status: New


** Tags: hvf

** Attachment added: "Kernel Panic Message"
   https://bugs.launchpad.net/bugs/1894836/+attachment/5408668/+files/kernel_panic.png

** Description changed:

  Host Details
  QEMU 5.1 (Homebrew)
  macOS 10.15.6 Catalina
- Late 2014 model
+ Late 2014 iMac
  i5-4690 @ 3.5 GHz
  8 GB RAM
  
  Guest Details
  Ubuntu Desktop 20.04.1 Installer ISO
  
  Problem
  Whenever I boot with "-accel hvf -cpu host", the Ubuntu desktop installer will immediately crash with a kernel panic after the initial splash screen.
  See the attached picture of the kernel panic for more details.
  
  Steps to recreate
  From https://www.jwillikers.com/posts/virtualize_ubuntu_desktop_on_macos_with_qemu/
  
  1. Install QEMU with Homebrew.
  $ brew install qemu
  
  2. Create a qcow2 disk image to which to install.
  $ qemu-img create -f qcow2 ubuntu2004.qcow2 60G
  
  3. Download the ISO.
  $ curl -L -o ubuntu-20.04.1-desktop-amd64.iso https://releases.ubuntu.com/20.04/ubuntu-20.04.1-desktop-amd64.iso
  
  4. Run the installer in QEMU.
  $ qemu-system-x86_64 \
-   -accel hvf \
-   -cpu host \
-   -smp 2 \
-   -m 4G \
-   -usb \
-   -device usb-tablet \
-   -vga virtio \
-   -display default,show-cursor=on \
-   -device virtio-net,netdev=vmnic -netdev user,id=vmnic \
-   -audiodev coreaudio,id=snd0 \
-   -device ich9-intel-hda -device hda-output,audiodev=snd0 \
-   -cdrom ubuntu-20.04.1-desktop-amd64.iso \
-   -drive file=ubuntu2004.qcow2,if=virtio
+   -accel hvf \
+   -cpu host \
+   -smp 2 \
+   -m 4G \
+   -usb \
+   -device usb-tablet \
+   -vga virtio \
+   -display default,show-cursor=on \
+   -device virtio-net,netdev=vmnic -netdev user,id=vmnic \
+   -audiodev coreaudio,id=snd0 \
+   -device ich9-intel-hda -device hda-output,audiodev=snd0 \
+   -cdrom ubuntu-20.04.1-desktop-amd64.iso \
+   -drive file=ubuntu2004.qcow2,if=virtio
  
  Workaround
  Emulating the CPU with "-cpu qemu64" does not result in a kernel panic.

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

Title:
  kernel panic using hvf with CPU passthrough

Status in QEMU:
  New

Bug description:
  Host Details
  QEMU 5.1 (Homebrew)
  macOS 10.15.6 Catalina
  Late 2014 iMac
  i5-4690 @ 3.5 GHz
  8 GB RAM

  Guest Details
  Ubuntu Desktop 20.04.1 Installer ISO

  Problem
  Whenever I boot with "-accel hvf -cpu host", the Ubuntu desktop installer will immediately crash with a kernel panic after the initial splash screen.
  See the attached picture of the kernel panic for more details.

  Steps to recreate
  From https://www.jwillikers.com/posts/virtualize_ubuntu_desktop_on_macos_with_qemu/

  1. Install QEMU with Homebrew.
  $ brew install qemu

  2. Create a qcow2 disk image to which to install.
  $ qemu-img create -f qcow2 ubuntu2004.qcow2 60G

  3. Download the ISO.
  $ curl -L -o ubuntu-20.04.1-desktop-amd64.iso https://releases.ubuntu.com/20.04/ubuntu-20.04.1-desktop-amd64.iso

  4. Run the installer in QEMU.
  $ qemu-system-x86_64 \
    -accel hvf \
    -cpu host \
    -smp 2 \
    -m 4G \
    -usb \
    -device usb-tablet \
    -vga virtio \
    -display default,show-cursor=on \
    -device virtio-net,netdev=vmnic -netdev user,id=vmnic \
    -audiodev coreaudio,id=snd0 \
    -device ich9-intel-hda -device hda-output,audiodev=snd0 \
    -cdrom ubuntu-20.04.1-desktop-amd64.iso \
    -drive file=ubuntu2004.qcow2,if=virtio

  Workaround
  Emulating the CPU with "-cpu qemu64" does not result in a kernel panic.

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug 1894836] Re: kernel panic using hvf with CPU passthrough
  2020-09-08 12:21 [Bug 1894836] [NEW] kernel panic using hvf with CPU passthrough Jordan Williams
@ 2020-09-08 13:06 ` Jordan Williams
  2020-11-14  3:43 ` Jessica Clarke
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Jordan Williams @ 2020-09-08 13:06 UTC (permalink / raw)
  To: qemu-devel

** Tags added: macos

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

Title:
  kernel panic using hvf with CPU passthrough

Status in QEMU:
  New

Bug description:
  Host Details
  QEMU 5.1 (Homebrew)
  macOS 10.15.6 Catalina
  Late 2014 iMac
  i5-4690 @ 3.5 GHz
  8 GB RAM

  Guest Details
  Ubuntu Desktop 20.04.1 Installer ISO

  Problem
  Whenever I boot with "-accel hvf -cpu host", the Ubuntu desktop installer will immediately crash with a kernel panic after the initial splash screen.
  See the attached picture of the kernel panic for more details.

  Steps to recreate
  From https://www.jwillikers.com/posts/virtualize_ubuntu_desktop_on_macos_with_qemu/

  1. Install QEMU with Homebrew.
  $ brew install qemu

  2. Create a qcow2 disk image to which to install.
  $ qemu-img create -f qcow2 ubuntu2004.qcow2 60G

  3. Download the ISO.
  $ curl -L -o ubuntu-20.04.1-desktop-amd64.iso https://releases.ubuntu.com/20.04/ubuntu-20.04.1-desktop-amd64.iso

  4. Run the installer in QEMU.
  $ qemu-system-x86_64 \
    -accel hvf \
    -cpu host \
    -smp 2 \
    -m 4G \
    -usb \
    -device usb-tablet \
    -vga virtio \
    -display default,show-cursor=on \
    -device virtio-net,netdev=vmnic -netdev user,id=vmnic \
    -audiodev coreaudio,id=snd0 \
    -device ich9-intel-hda -device hda-output,audiodev=snd0 \
    -cdrom ubuntu-20.04.1-desktop-amd64.iso \
    -drive file=ubuntu2004.qcow2,if=virtio

  Workaround
  Emulating the CPU with "-cpu qemu64" does not result in a kernel panic.

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug 1894836] Re: kernel panic using hvf with CPU passthrough
  2020-09-08 12:21 [Bug 1894836] [NEW] kernel panic using hvf with CPU passthrough Jordan Williams
  2020-09-08 13:06 ` [Bug 1894836] " Jordan Williams
@ 2020-11-14  3:43 ` Jessica Clarke
  2020-11-17 22:11 ` Jordan Williams
  2020-12-10  9:04 ` Thomas Huth
  3 siblings, 0 replies; 5+ messages in thread
From: Jessica Clarke @ 2020-11-14  3:43 UTC (permalink / raw)
  To: qemu-devel

0f 01 f9 is RDTSCP; use -cpu host,-rdtscp to mask out the feature. KVM
couldn't pass the feature through for a while, and HVF currently can't,
though HVF should be modified to automatically hide the feature until it
can emulate it.

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

Title:
  kernel panic using hvf with CPU passthrough

Status in QEMU:
  New

Bug description:
  Host Details
  QEMU 5.1 (Homebrew)
  macOS 10.15.6 Catalina
  Late 2014 iMac
  i5-4690 @ 3.5 GHz
  8 GB RAM

  Guest Details
  Ubuntu Desktop 20.04.1 Installer ISO

  Problem
  Whenever I boot with "-accel hvf -cpu host", the Ubuntu desktop installer will immediately crash with a kernel panic after the initial splash screen.
  See the attached picture of the kernel panic for more details.

  Steps to recreate
  From https://www.jwillikers.com/posts/virtualize_ubuntu_desktop_on_macos_with_qemu/

  1. Install QEMU with Homebrew.
  $ brew install qemu

  2. Create a qcow2 disk image to which to install.
  $ qemu-img create -f qcow2 ubuntu2004.qcow2 60G

  3. Download the ISO.
  $ curl -L -o ubuntu-20.04.1-desktop-amd64.iso https://releases.ubuntu.com/20.04/ubuntu-20.04.1-desktop-amd64.iso

  4. Run the installer in QEMU.
  $ qemu-system-x86_64 \
    -accel hvf \
    -cpu host \
    -smp 2 \
    -m 4G \
    -usb \
    -device usb-tablet \
    -vga virtio \
    -display default,show-cursor=on \
    -device virtio-net,netdev=vmnic -netdev user,id=vmnic \
    -audiodev coreaudio,id=snd0 \
    -device ich9-intel-hda -device hda-output,audiodev=snd0 \
    -cdrom ubuntu-20.04.1-desktop-amd64.iso \
    -drive file=ubuntu2004.qcow2,if=virtio

  Workaround
  Emulating the CPU with "-cpu qemu64" does not result in a kernel panic.

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug 1894836] Re: kernel panic using hvf with CPU passthrough
  2020-09-08 12:21 [Bug 1894836] [NEW] kernel panic using hvf with CPU passthrough Jordan Williams
  2020-09-08 13:06 ` [Bug 1894836] " Jordan Williams
  2020-11-14  3:43 ` Jessica Clarke
@ 2020-11-17 22:11 ` Jordan Williams
  2020-12-10  9:04 ` Thomas Huth
  3 siblings, 0 replies; 5+ messages in thread
From: Jordan Williams @ 2020-11-17 22:11 UTC (permalink / raw)
  To: qemu-devel

Thanks for the response Jessica! The option you provided fixes the
problem and everything works flawlessly now. Thank you!!

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

Title:
  kernel panic using hvf with CPU passthrough

Status in QEMU:
  New

Bug description:
  Host Details
  QEMU 5.1 (Homebrew)
  macOS 10.15.6 Catalina
  Late 2014 iMac
  i5-4690 @ 3.5 GHz
  8 GB RAM

  Guest Details
  Ubuntu Desktop 20.04.1 Installer ISO

  Problem
  Whenever I boot with "-accel hvf -cpu host", the Ubuntu desktop installer will immediately crash with a kernel panic after the initial splash screen.
  See the attached picture of the kernel panic for more details.

  Steps to recreate
  From https://www.jwillikers.com/posts/virtualize_ubuntu_desktop_on_macos_with_qemu/

  1. Install QEMU with Homebrew.
  $ brew install qemu

  2. Create a qcow2 disk image to which to install.
  $ qemu-img create -f qcow2 ubuntu2004.qcow2 60G

  3. Download the ISO.
  $ curl -L -o ubuntu-20.04.1-desktop-amd64.iso https://releases.ubuntu.com/20.04/ubuntu-20.04.1-desktop-amd64.iso

  4. Run the installer in QEMU.
  $ qemu-system-x86_64 \
    -accel hvf \
    -cpu host \
    -smp 2 \
    -m 4G \
    -usb \
    -device usb-tablet \
    -vga virtio \
    -display default,show-cursor=on \
    -device virtio-net,netdev=vmnic -netdev user,id=vmnic \
    -audiodev coreaudio,id=snd0 \
    -device ich9-intel-hda -device hda-output,audiodev=snd0 \
    -cdrom ubuntu-20.04.1-desktop-amd64.iso \
    -drive file=ubuntu2004.qcow2,if=virtio

  Workaround
  Emulating the CPU with "-cpu qemu64" does not result in a kernel panic.

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug 1894836] Re: kernel panic using hvf with CPU passthrough
  2020-09-08 12:21 [Bug 1894836] [NEW] kernel panic using hvf with CPU passthrough Jordan Williams
                   ` (2 preceding siblings ...)
  2020-11-17 22:11 ` Jordan Williams
@ 2020-12-10  9:04 ` Thomas Huth
  3 siblings, 0 replies; 5+ messages in thread
From: Thomas Huth @ 2020-12-10  9:04 UTC (permalink / raw)
  To: qemu-devel

Fixed in commit 65baabca22366e5246955474228908d6a8354881

** Changed in: qemu
       Status: New => Fix Released

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

Title:
  kernel panic using hvf with CPU passthrough

Status in QEMU:
  Fix Released

Bug description:
  Host Details
  QEMU 5.1 (Homebrew)
  macOS 10.15.6 Catalina
  Late 2014 iMac
  i5-4690 @ 3.5 GHz
  8 GB RAM

  Guest Details
  Ubuntu Desktop 20.04.1 Installer ISO

  Problem
  Whenever I boot with "-accel hvf -cpu host", the Ubuntu desktop installer will immediately crash with a kernel panic after the initial splash screen.
  See the attached picture of the kernel panic for more details.

  Steps to recreate
  From https://www.jwillikers.com/posts/virtualize_ubuntu_desktop_on_macos_with_qemu/

  1. Install QEMU with Homebrew.
  $ brew install qemu

  2. Create a qcow2 disk image to which to install.
  $ qemu-img create -f qcow2 ubuntu2004.qcow2 60G

  3. Download the ISO.
  $ curl -L -o ubuntu-20.04.1-desktop-amd64.iso https://releases.ubuntu.com/20.04/ubuntu-20.04.1-desktop-amd64.iso

  4. Run the installer in QEMU.
  $ qemu-system-x86_64 \
    -accel hvf \
    -cpu host \
    -smp 2 \
    -m 4G \
    -usb \
    -device usb-tablet \
    -vga virtio \
    -display default,show-cursor=on \
    -device virtio-net,netdev=vmnic -netdev user,id=vmnic \
    -audiodev coreaudio,id=snd0 \
    -device ich9-intel-hda -device hda-output,audiodev=snd0 \
    -cdrom ubuntu-20.04.1-desktop-amd64.iso \
    -drive file=ubuntu2004.qcow2,if=virtio

  Workaround
  Emulating the CPU with "-cpu qemu64" does not result in a kernel panic.

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-12-10  9:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-08 12:21 [Bug 1894836] [NEW] kernel panic using hvf with CPU passthrough Jordan Williams
2020-09-08 13:06 ` [Bug 1894836] " Jordan Williams
2020-11-14  3:43 ` Jessica Clarke
2020-11-17 22:11 ` Jordan Williams
2020-12-10  9:04 ` Thomas Huth

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.