You are not logged in.

#1 2019-01-07 20:41:25

timothyk.tech
Member
Registered: 2018-07-06
Posts: 9

PCI passthrough, VM is not able to be rebooted without host reboot

Good afternoon, Ive found many cases of this issue online but no real solution and wonder if any arch users have had success.

Basically my windows 10 VM works fine on the initial boot. If i shut it down then it will not boot back up. Nothing on screen and the CPU is maxed and no disk activity on the VM.

Im running:

ARCH 4.20.0
intel i7 9700k
radeon RX vega 64
GIGABYTE Z390 AORUS MASTER
Windows 10 Home

I set this up using KVM/Qemu with Virt-manager

IOMMU Group 1 00:01.0 PCI bridge [0604]: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor PCIe Controller (x16) [8086:1901] (rev 0a)
IOMMU Group 1 01:00.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Device [1022:1470] (rev c1)
IOMMU Group 1 02:00.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Device [1022:1471]
IOMMU Group 1 03:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Vega 10 XL/XT [Radeon RX Vega 56/64] [1002:687f] (rev c1)
IOMMU Group 1 03:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Device [1002:aaf8]

I only added the sound and video card to the vfio-pci config

[b]/etc/modprobe.d/vifo.conf[/b]
options vfio-pci ids=1002:aaf8,1002:687f,1912:0014

added the modules to run before the kernel and apply the amd drivers

[b]/etc/mkinitcpio.conf[/b]
MODULES=(vfio_pci vfio vfio_iommu_type1 vfio_virqfd)

This is what i see in /var/log/libvirtd/qemu/<vm>.log

2019-01-06 17:04:06.025+0000: starting up libvirt version: 4.9.0, qemu version: 3.1.0, kernel: 4.20.0-arch1-1-ARCH, hostname: moonshine.localdomain
LC_ALL=C PATH=/usr/local/sbin:/usr/local/bin:/usr/bin QEMU_AUDIO_DRV=none /usr/bin/qemu-system-x86_64 -name guest=ipa,debug-threads=on -S -object secret,id=masterKey0,format=raw,file=/var/lib/libvirt/qemu/domain-22-ipa/master-key.aes -machine pc-q35-3.1,accel=kvm,usb=off,vmport=off,dump-guest-core=off -cpu host,hv_time,hv_relaxed,hv_vapic,hv_spinlocks=0x1fff -drive file=/usr/share/ovmf/x64/OVMF_CODE.fd,if=pflash,format=raw,unit=0,readonly=on -drive file=/var/lib/libvirt/qemu/nvram/ipa_VARS.fd,if=pflash,format=raw,unit=1 -m 8196 -realtime mlock=off -smp 6,sockets=1,cores=6,threads=1 -uuid 502b5da2-fed0-437c-ab8f-505b755e2c78 -display none -no-user-config -nodefaults -chardev socket,id=charmonitor,fd=26,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=localtime,driftfix=slew -global kvm-pit.lost_tick_policy=delay -no-hpet -no-shutdown -global ICH9-LPC.disable_s3=1 -global ICH9-LPC.disable_s4=1 -boot strict=on -device pcie-root-port,port=0x10,chassis=1,id=pci.1,bus=pcie.0,multifunction=on,addr=0x2 -device pcie-root-port,port=0x11,chassis=2,id=pci.2,bus=pcie.0,addr=0x2.0x1 -device pcie-root-port,port=0x12,chassis=3,id=pci.3,bus=pcie.0,addr=0x2.0x2 -device pcie-root-port,port=0x13,chassis=4,id=pci.4,bus=pcie.0,addr=0x2.0x3 -device pcie-root-port,port=0x14,chassis=5,id=pci.5,bus=pcie.0,addr=0x2.0x4 -device pcie-root-port,port=0x8,chassis=6,id=pci.6,bus=pcie.0,multifunction=on,addr=0x1 -device pcie-root-port,port=0x9,chassis=7,id=pci.7,bus=pcie.0,addr=0x1.0x1 -device pcie-root-port,port=0xa,chassis=8,id=pci.8,bus=pcie.0,addr=0x1.0x2 -device pcie-pci-bridge,id=pci.9,bus=pci.2,addr=0x0 -device ich9-usb-ehci1,id=usb,bus=pcie.0,addr=0x1d.0x7 -device ich9-usb-uhci1,masterbus=usb.0,firstport=0,bus=pcie.0,multifunction=on,addr=0x1d -device ich9-usb-uhci2,masterbus=usb.0,firstport=2,bus=pcie.0,addr=0x1d.0x1 -device ich9-usb-uhci3,masterbus=usb.0,firstport=4,bus=pcie.0,addr=0x1d.0x2 -device virtio-scsi-pci,id=scsi0,bus=pci.3,addr=0x0 -drive file=/var/lib/libvirt/images/ipa.qcow2,format=qcow2,if=none,id=drive-scsi0-0-0-0 -device scsi-hd,bus=scsi0.0,channel=0,scsi-id=0,lun=0,drive=drive-scsi0-0-0-0,id=scsi0-0-0-0,bootindex=1 -drive file=/home/ghost/Downloads/Win10_1809Oct_English_x64.iso,format=raw,if=none,id=drive-sata0-0-1,media=cdrom,readonly=on -device ide-cd,bus=ide.1,drive=drive-sata0-0-1,id=sata0-0-1 -drive file=/home/ghost/Downloads/virtio-win-0.1.160.iso,format=raw,if=none,id=drive-sata0-0-2,media=cdrom,readonly=on -device ide-cd,bus=ide.2,drive=drive-sata0-0-2,id=sata0-0-2 -netdev tap,fd=28,id=hostnet0 -device e1000e,netdev=hostnet0,id=net0,mac=52:54:00:c2:ce:cb,bus=pci.1,addr=0x0 -chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=serial0 -device usb-tablet,id=input2,bus=usb.0,port=3 -device ich9-intel-hda,id=sound0,bus=pcie.0,addr=0x1b -device hda-duplex,id=sound0-codec0,bus=sound0.0,cad=0 -chardev spicevmc,id=charredir0,name=usbredir -device usb-redir,chardev=charredir0,id=redir0,bus=usb.0,port=1 -chardev spicevmc,id=charredir1,name=usbredir -device usb-redir,chardev=charredir1,id=redir1,bus=usb.0,port=2 -device vfio-pci,host=03:00.0,id=hostdev0,bus=pci.5,addr=0x0 -device vfio-pci,host=03:00.1,id=hostdev1,bus=pci.6,addr=0x0 -device virtio-balloon-pci,id=balloon0,bus=pci.4,addr=0x0 -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,resourcecontrol=deny -msg timestamp=on
[b]2019-01-06 17:04:06.025+0000: Domain id=22 is tainted: host-cpu
char device redirected to /dev/pts/1 (label charserial0)
2019-01-06T17:06:34.017349Z qemu-system-x86_64: terminating on signal 15 from pid 635 (/usr/bin/libvirtd)
2019-01-06 17:06:35.418+0000: shutting down, reason=destroyed[/b]

Last edited by timothyk.tech (2019-01-08 18:38:10)

Offline

#2 2019-01-08 00:06:10

2ManyDogs
Forum Moderator
Registered: 2012-01-15
Posts: 4,645

Re: PCI passthrough, VM is not able to be rebooted without host reboot

Please use [ code ] tags (not quote tags) when posting output.

https://wiki.archlinux.org/index.php/Co … s_and_code
https://bbs.archlinux.org/help.php#bbcode


How to post. A sincere effort to use modest and proper language and grammar is a sign of respect toward the community.

Offline

Board footer

Powered by FluxBB