virtio-win / kvm-guest-drivers-windows

Windows paravirtualized drivers for QEMU\KVM
https://www.linux-kvm.org/page/WindowsGuestDrivers
BSD 3-Clause "New" or "Revised" License
1.91k stars 377 forks source link

Viogpu: support cross-adapter resources (use case: virtio-gpu-pci used w/ gpu passthru) #1111

Open sharkautarch opened 5 days ago

sharkautarch commented 5 days ago

I’m currently using virtio-gpu-pci w/ gpu passthru, since my computer is a muxless hybrid laptop, and intel SR-iov support w/ intel XE driver is still in development. I’m wondering if supporting cross-adapter resources could allow the viogpu to transfer frames from the passed-thru’d gpu more efficiently

According to these Microsoft links: https://learn.microsoft.com/en-us/windows-hardware/drivers/display/rendering-on-a-discrete-gpu-using-cross-adapter-resources

https://learn.microsoft.com/en-us/windows-hardware/drivers/display/using-cross-adapter-resources-in-a-hybrid-system?source=recommendations

Supporting cross-adapter resources could allow the passed-thru gpu to share resources w/ the viogpu in certain situations. (Or is it supposed to work the other way around? Not entirely sure)

Here’s where I’m thinking that it might help w/ performance:

Microsoft does provide diagrams for the different cross-adapter display models here: https://learn.microsoft.com/en-us/windows-hardware/drivers/display/rendering-on-a-discrete-gpu-using-cross-adapter-resources

But I can’t find a diagram for how hybrid display works without cross-adapter resources to compare against the cross-adapter resource display diagrams…

I understand if it’s too complicated to support any of the cross-adapter resource stuff. Just wanted to check