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.92k stars 377 forks source link

viogpu: Cope with larger than expected DXGKRNL_INTERFACE size #983

Closed MartinDrab closed 9 months ago

MartinDrab commented 9 months ago

This PR deals with the situation when the DXGKRNL_INTERFACE passed to VioGpuDod::StartDevice is larger than driver's place for such structure, represented by the m_DxgkInterface attribute. In such a case, the driver just degrades the structure to the largest it can handle. This should be fine since DXGKRNL_INTERFACE only adds new members when advancing to its new versions.

Fixes: #967