Re: Bug: Intel Arc A-Series GPUs VFIO pass through no video out

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm including required information I failed to include in my initial email.
I can use the graphical console from virt-manager from another machine
to see what's going on with and interact the guest.

System Information:
Processor: AMD Ryzen 9 5900X 12-Core Processor
Linux Kernel Version: 6.2.2-arch1-1
Host Kernel Arch: x86_64
Guest OS: Windows 10 64-bit

With -machine kernel_irqchip=off, the vm fails to start. Errors below.

error: Failed to start domain 'win10_vm'
error: internal error: qemu unexpectedly closed the monitor:
2023-03-10T00:09:07.243117Z qemu-system-x86_64: warning: Do not use
kernel-irqchip except for the -M isapc machine type.
2023-03-10T00:09:07.243243Z qemu-system-x86_64: warning: Userspace
local APIC is deprecated for KVM.
2023-03-10T00:09:07.243247Z qemu-system-x86_64: warning: Do not use
kernel-irqchip except for the -M isapc machine type.
2023-03-10T00:09:07.243372Z qemu-system-x86_64: warning: Userspace
local APIC is deprecated for KVM.
2023-03-10T00:09:07.243376Z qemu-system-x86_64: warning: Do not use
kernel-irqchip except for the -M isapc machine type.
2023-03-10T00:09:09.851570Z qemu-system-x86_64: -device
{"driver":"vfio-pci","host":"0000:1b:00.3","id":"hostdev2","bus":"pci.8","addr":"0x0"}:
warning: vfio 0000:1b:00.3: failed to setup resample irqfd: Invalid
argument
2023-03-10T00:09:09.851920Z qemu-system-x86_64: error: failed to set
MSR 0x4b564d06 to 0x0
qemu-system-x86_64: ../qemu-7.2.0/target/i386/kvm/kvm.c:3177:
kvm_buf_set_msrs: Assertion `ret == cpu->kvm_msr_buf->nmsrs' failed.

With -accel tcg
No change.

QEMU Command Line:

LC_ALL=C PATH=/usr/local/sbin:/usr/local/bin:/usr/bin
HOME=/var/lib/libvirt/qemu/domain--1-win10_vm
XDG_DATA_HOME=/var/lib/libvirt/qemu/domain--1-win10_vm/.local/share
XDG_CACHE_HOME=/var/lib/libvirt/qemu/domain--1-win10_vm/.cache
XDG_CONFIG_HOME=/var/lib/libvirt/qemu/domain--1-win10_vm/.config
TZ=US/Eastern /usr/bin/qemu-system-x86_64
-name guest=win10_vm,debug-threads=on
-S -object '{"qom-type":"secret","id":"masterKey0","format":"raw","file":"/var/lib/libvirt/qemu/domain--1-win10_vm/master-key.aes"}'
-blockdev '{"driver":"file","filename":"/usr/share/edk2-ovmf/x64/OVMF_CODE.fd","node-name":"libvirt-pflash0-storage","auto-read-only":true,"discard":"unmap"}'
-blockdev '{"node-name":"libvirt-pflash0-format","read-only":true,"driver":"raw","file":"libvirt-pflash0-storage"}'
-blockdev '{"driver":"file","filename":"/var/lib/libvirt/qemu/nvram/win10_vm_VARS.fd","node-name":"libvirt-pflash1-storage","auto-read-only":true,"discard":"unmap"}'
-blockdev '{"node-name":"libvirt-pflash1-format","read-only":false,"driver":"raw","file":"libvirt-pflash1-storage"}'
-machine pc-q35-7.1,usb=off,vmport=off,kernel_irqchip=on,dump-guest-core=off,memory-backend=pc.ram,pflash0=libvirt-pflash0-format,pflash1=libvirt-pflash1-format
-accel kvm -cpu
host,migratable=on,topoext=on,hv-relaxed=on,hv-vapic=on,hv-spinlocks=0x1fff
-m 28672
-object '{"qom-type":"memory-backend-ram","id":"pc.ram","size":30064771072}'
-overcommit mem-lock=off
-smp 24,sockets=1,dies=1,cores=12,threads=2
-uuid 274bd08e-ede2-4514-a969-441932781414
-no-user-config
-nodefaults
-chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/domain--1-win10_vm/monitor.sock,server=on,wait=off
-mon chardev=charmonitor,id=monitor,mode=control
-rtc base=localtime
-no-shutdown
-global ICH9-LPC.disable_s3=1
-global ICH9-LPC.disable_s4=1
-boot strict=on
-device '{"driver":"pcie-root-port","port":16,"chassis":1,"id":"pci.1","bus":"pcie.0","multifunction":true,"addr":"0x2"}'
-device '{"driver":"pcie-root-port","port":17,"chassis":2,"id":"pci.2","bus":"pcie.0","addr":"0x2.0x1"}'
-device '{"driver":"pcie-root-port","port":18,"chassis":3,"id":"pci.3","bus":"pcie.0","addr":"0x2.0x2"}'
-device '{"driver":"pcie-root-port","port":19,"chassis":4,"id":"pci.4","bus":"pcie.0","addr":"0x2.0x3"}'
-device '{"driver":"pcie-root-port","port":20,"chassis":5,"id":"pci.5","bus":"pcie.0","addr":"0x2.0x4"}'
-device '{"driver":"pcie-root-port","port":21,"chassis":6,"id":"pci.6","bus":"pcie.0","addr":"0x2.0x5"}'
-device '{"driver":"pcie-root-port","port":22,"chassis":7,"id":"pci.7","bus":"pcie.0","addr":"0x2.0x6"}'
-device '{"driver":"pcie-root-port","port":23,"chassis":8,"id":"pci.8","bus":"pcie.0","addr":"0x2.0x7"}'
-device '{"driver":"pcie-root-port","port":24,"chassis":9,"id":"pci.9","bus":"pcie.0","multifunction":true,"addr":"0x3"}'
-device '{"driver":"pcie-root-port","port":25,"chassis":10,"id":"pci.10","bus":"pcie.0","addr":"0x3.0x1"}'
-device '{"driver":"pcie-root-port","port":26,"chassis":11,"id":"pci.11","bus":"pcie.0","addr":"0x3.0x2"}'
-device '{"driver":"pcie-root-port","port":27,"chassis":12,"id":"pci.12","bus":"pcie.0","addr":"0x3.0x3"}'
-device '{"driver":"pcie-root-port","port":28,"chassis":13,"id":"pci.13","bus":"pcie.0","addr":"0x3.0x4"}'
-device '{"driver":"pcie-root-port","port":29,"chassis":14,"id":"pci.14","bus":"pcie.0","addr":"0x3.0x5"}'
-device '{"driver":"pcie-root-port","port":30,"chassis":15,"id":"pci.15","bus":"pcie.0","addr":"0x3.0x6"}'
-device '{"driver":"pcie-pci-bridge","id":"pci.16","bus":"pci.3","addr":"0x0"}'
-device '{"driver":"qemu-xhci","p2":15,"p3":15,"id":"usb","bus":"pci.2","addr":"0x0"}'
-device '{"driver":"virtio-scsi-pci","id":"scsi0","bus":"pci.6","addr":"0x0"}'
-device '{"driver":"virtio-serial-pci","id":"virtio-serial0","bus":"pci.4","addr":"0x0"}'
-blockdev '{"driver":"file","filename":"/home/david/Downloads/Win10_21H2_English_x64.iso","node-name":"libvirt-4-storage","auto-read-only":true,"discard":"unmap"}'
-blockdev '{"node-name":"libvirt-4-format","read-only":true,"driver":"raw","file":"libvirt-4-storage"}'
-device '{"driver":"ide-cd","bus":"ide.1","drive":"libvirt-4-format","id":"sata0-0-1"}'
-blockdev '{"driver":"file","filename":"/home/david/Downloads/virtio-win-0.1.229.iso","node-name":"libvirt-3-storage","auto-read-only":true,"discard":"unmap"}'
-blockdev '{"node-name":"libvirt-3-format","read-only":true,"driver":"raw","file":"libvirt-3-storage"}'
-device '{"driver":"ide-cd","bus":"ide.3","drive":"libvirt-3-format","id":"sata0-0-3"}'
-blockdev '{"driver":"host_device","filename":"/dev/disk/by-id/nvme-WD_Blue_SN570_2TB_21523V801428-part2","aio":"native","node-name":"libvirt-2-storage","cache":{"direct":true,"no-flush":false},"auto-read-only":true,"discard":"unmap"}'
-blockdev '{"node-name":"libvirt-2-format","read-only":false,"discard":"unmap","cache":{"direct":true,"no-flush":false},"driver":"raw","file":"libvirt-2-storage"}'
-device '{"driver":"scsi-hd","bus":"scsi0.0","channel":0,"scsi-id":0,"lun":4,"device_id":"drive-scsi0-0-0-4","drive":"libvirt-2-format","id":"scsi0-0-0-4","bootindex":1,"write-cache":"on"}'
-blockdev '{"driver":"host_device","filename":"/dev/disk/by-id/nvme-Samsung_SSD_980_PRO_2TB_S6B0NL0T945389T","aio":"native","node-name":"libvirt-1-storage","cache":{"direct":true,"no-flush":false},"auto-read-only":true,"discard":"unmap"}'
-blockdev '{"node-name":"libvirt-1-format","read-only":false,"discard":"unmap","cache":{"direct":true,"no-flush":false},"driver":"raw","file":"libvirt-1-storage"}'
-device '{"driver":"scsi-hd","bus":"scsi0.0","channel":0,"scsi-id":0,"lun":5,"device_id":"drive-scsi0-0-0-5","drive":"libvirt-1-format","id":"scsi0-0-0-5","write-cache":"on"}'
-chardev pty,id=charserial0 -device
'{"driver":"isa-serial","chardev":"charserial0","id":"serial0","index":0}'
-chardev spicevmc,id=charchannel0,name=vdagent -device
'{"driver":"virtserialport","bus":"virtio-serial0.0","nr":1,"chardev":"charchannel0","id":"channel0","name":"com.redhat.spice.0"}'
-device '{"driver":"usb-tablet","id":"input0","bus":"usb.0","port":"1"}'
-audiodev '{"id":"audio1","driver":"spice"}'
-spice port=5901,addr=0.0.0.0,disable-ticketing=on,image-compression=off,seamless-migration=on
-device '{"driver":"virtio-vga","id":"video0","max_outputs":1,"bus":"pcie.0","addr":"0x1"}'
-device '{"driver":"ich9-intel-hda","id":"sound0","bus":"pcie.0","addr":"0x1b"}'
-device '{"driver":"hda-duplex","id":"sound0-codec0","bus":"sound0.0","cad":0,"audiodev":"audio1"}'
-chardev spicevmc,id=charredir0,name=usbredir
-device '{"driver":"usb-redir","chardev":"charredir0","id":"redir0","bus":"usb.0","port":"2"}'
-chardev spicevmc,id=charredir1,name=usbredir
-device '{"driver":"usb-redir","chardev":"charredir1","id":"redir1","bus":"usb.0","port":"3"}'
-device '{"driver":"vfio-pci","host":"0000:18:00.0","id":"hostdev0","bus":"pci.1","addr":"0x0"}'
-device '{"driver":"vfio-pci","host":"0000:19:00.0","id":"hostdev1","bus":"pci.7","addr":"0x0"}'
-device '{"driver":"vfio-pci","host":"0000:1b:00.3","id":"hostdev2","bus":"pci.8","addr":"0x0"}'
-device '{"driver":"virtio-balloon-pci","id":"balloon0","bus":"pci.5","addr":"0x0"}'
-sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,resourcecontrol=deny
-msg timestamp=on

On Sun, Mar 5, 2023 at 11:52 AM David N. <taact135200@xxxxxxxxx> wrote:
>
> Hi,
>
> I'm not entirely sure if this is the right place for this. I'd
> previously opened a report on the Intel GPU Community Issue Tracker
> and they suggested I open a bug for the VM software I'm using.
>
> The issue:
>
> If you try to pass through an Intel Arc A770 LE (or any other Arc
> A-series GPU) from a Linux host to a Windows guest, you do not get any
> video out or detected monitors on the Arc card. But, the card is being
> picked up by the drivers and will run whatever workload you throw at
> it, there's just no picture on the monitor. The monitor detects
> something on VM boot, but nothing other than a black screen is
> visible.
>
> There is a "fix" discovered by taoj17v on reddit: Unplug the display
> cables from the GPU, boot the host and then the VM. Once the guest has
> finished booting, connect the cables.
>
> He also points out that it is likely a bug in the firmware.




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux