Hi Xu Gu San,
Thanks for the response !
The aforementioned issues were successfully resolved by configuring MMIO space, as outlined in the official Microsoft document: [Microsoft Official Document]
GPUs, particularly, require additional MMIO space for the VM to access the memory of that device. While each VM starts with 128 MB of low MMIO space and 512 MB of high MMIO space by default, certain devices or multiple devices may require more space, potentially exceeding these values.
Subsequently, I reconfigured the VM following the instructions in the Microsoft Official Document: [VM Preparation for Graphics Devices]
Solution :
- Enabled Write-Combining on the CPU using the cmdlet: Set-VM -GuestControlledCacheTypes $true -VMName VMName
- Configured the 32-bit MMIO space with the cmdlet: Set-VM -LowMemoryMappedIoSpace 3Gb -VMName VMName
- Configured greater than 32-bit MMIO space with the cmdlet: Set-VM -HighMemoryMappedIoSpace 33280Mb -VMName VMName
Dismount the GPUs
To dismount the GPU devices from the host:
- Located the device's location path
- Copied the device's location path
- Disabled the GPU in Device Manager
Dismounted the GPU devices from the host partition using the cmdlet:
Dismount-VMHostAssignableDevice -Force -LocationPath $locationPath1
Dismount-VMHostAssignableDevice -Force -LocationPath $locationPath2
Assigned the GPU devices to the VM using the cmdlet:
Add-VMAssignableDevice -LocationPath $locationPath1 -VMName VMName
Add-VMAssignableDevice -LocationPath $locationPath2 -VMName VMName
The configuration of the VM for DDA has been successfully completed.
Both GPUs are now recognized in my Linux Hyper-V VM:
root@DEB-HYPERV-6fabb3a422fb6e499b57dd2e11a7aa59:~# lspci
0000:00:00.0 Host bridge: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX Host bridge (AGP disabled) (rev 03)
0000:00:07.0 ISA bridge: Intel Corporation 82371AB/EB/MB PIIX4 ISA (rev 01)
0000:00:07.1 IDE interface: Intel Corporation 82371AB/EB/MB PIIX4 IDE (rev 01)
0000:00:07.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 02)
0000:00:08.0 VGA compatible controller: Microsoft Corporation Hyper-V virtual VGA
0000:00:0a.0 Ethernet controller: Digital Equipment Corporation DECchip 21140 [FasterNet] (rev 20)
076a:00:00.0 3D controller: NVIDIA Corporation TU104GL [Tesla T4] (rev a1)
e95f:00:00.0 3D controller: NVIDIA Corporation TU104GL [Tesla T4] (rev a1)
root@DEB-HYPERV-6fabb3a422fb6e499b57dd2e11a7aa59:~#