solved by

#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"}'#


вс, 12 мая 2024 г. в 02:41, Anton Valishin <[email protected]>:

> 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 cmd
> But when with libvirt it works fine
>
>
> вс, 12 мая 2024 г. в 02:00, Anton Valishin <[email protected]>:
>
>> Hello! I'm trying to passthrough gpu to windows vm
>> When 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.0
>> I only see black screen
>> hot to fix qemu cmd so that it works like in virt-manager&
>>
>>

Reply via email to