|
From: | Anton Valishin |
Subject: | Re: GPU passthrough |
Date: | Sun, 12 May 2024 07:33:13 +0300 |
#VFIO -device pcie-root-port,bus=pcie.0,id=pci_root,multifunction=true,addr=0x2 -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":"vfio-pci","host":"0000:06:00.0","id":"gpu","bus":"pci.5","addr":"0x0"}' -device '{"driver":"vfio-pci","host":"0000:06:00.1","id":"hdmiaudio","bus":"pci.6","addr":"0x0"}' #
I see tiano core boot screen and when driver is activated (by powershell enable-pnp on user logon)
I see the black screen when I try to run with qemu cmdBut when with libvirt it works fineвс, 12 мая 2024 г. в 02:00, Anton Valishin <antxzq@gmail.com>:Hello! I'm trying to passthrough gpu to windows vmWhen using virt-manager it works fine
<hostdev mode="subsystem" type="pci" managed="yes">
<source>
<address domain="0x0000" bus="0x06" slot="0x00" function="0x0"/>
</source>
<address type="pci" domain="0x0000" bus="0x05" slot="0x00" function="0x0"/>
</hostdev>but when i try to run with
-device pcie-root-port,bus=pcie.0,slot=1,x-speed=16,x-width=32
-device vfio-pci,host="06:00.0",multifunction=on,bus=pcie.0,rombar=1
-device vfio-pci,host="06:00.1",bus=pcie.0I only see black screenhot to fix qemu cmd so that it works like in virt-manager&
[Prev in Thread] | Current Thread | [Next in Thread] |