Bug#961676: 5.6 kernel crashes host when using VFIO on KVM guests
- To: 961676@bugs.debian.org
- Subject: Bug#961676: 5.6 kernel crashes host when using VFIO on KVM guests
- From: Simon John <debian@the-jedi.co.uk>
- Date: Fri, 3 Jul 2020 22:42:40 +0100
- Message-id: <[🔎] a1542cba-9d81-297a-d2ef-cd90740bb7d1@the-jedi.co.uk>
- Reply-to: Simon John <debian@the-jedi.co.uk>, 961676@bugs.debian.org
- In-reply-to: <384c34c7-a05d-2b6b-c5f9-cbd0105d5b8b@the-jedi.co.uk>
- References: <20200527193146.GA262873@eldamar.local> <83904c20-836a-42df-373b-c4ca99e84363@the-jedi.co.uk> <83904c20-836a-42df-373b-c4ca99e84363@the-jedi.co.uk> <68f0e7d9-f76a-abfc-0dc3-956cc6f309c3@the-jedi.co.uk> <68f0e7d9-f76a-abfc-0dc3-956cc6f309c3@the-jedi.co.uk> <86ccfdfa-e7a5-a329-9786-79d82e68c498@the-jedi.co.uk> <86ccfdfa-e7a5-a329-9786-79d82e68c498@the-jedi.co.uk> <e7ceeebd-f787-0b93-3be1-01d63038b33d@the-jedi.co.uk> <20200527193146.GA262873@eldamar.local> <97952b5a-8b75-2c30-e536-457548a49eeb@the-jedi.co.uk> <20200628084141.GA73190@eldamar.local> <20200628084141.GA73190@eldamar.local> <384c34c7-a05d-2b6b-c5f9-cbd0105d5b8b@the-jedi.co.uk> <384c34c7-a05d-2b6b-c5f9-cbd0105d5b8b@the-jedi.co.uk> <20200527193146.GA262873@eldamar.local>
Done some more digging.
I can boot my macos vm using QXL instead of a passthrough GPU, even if i
passthrough the USB device (not pci controller). So its definitely only
passing through PCI devices like graphics cards that breaks things.
So this works in qemu terms:
-usb -device usb-host,hostbus=1,hostaddr=3 \
This breaks things:
-device vfio-pci,host=02:00.0,multifunction=on \
-device vfio-pci,host=02:00.1
Oddly enough an Ubuntu 20.04 vm works fine with the gpu and usb passed
through.
Added the qemu shell scripts to the gist:
https://gist.github.com/sej7278/766043a69c76308f84cfa14b3f3a924f
Regards.
--
Simon John
Reply to: