Add SR-IOV support for Intel iGPU.

This commit is contained in:
SimonFair
2023-11-21 18:26:29 +00:00
parent eec6ce53f5
commit e045a9e047

View File

@@ -872,6 +872,16 @@
if ($gpu_bus == '00' && $gpu_slot == '02') {
$strXVGA = '';
$strSpecialAddress = "<address type='pci' domain='0x0000' bus='0x".$gpu_bus."' slot='0x".$gpu_slot."' function='0x".$gpu_function."'/>";
if ($gpu_function == '00') {
$strSpecialAddress = "<address type='pci' domain='0x0000' bus='0x".$gpu_bus."' slot='0x".$gpu_slot."' function='0x".$gpu_function."'/>;";
# Add support for SR-IOV
} else {
if ($machine_type == 'q35'){
$strSpecialAddress = "<address type='pci' domain='0x0000' bus='0x06' slot='0x00' function='0x0'/>;"
} else {
$strSpecialAddress = "<address type='pci' domain='0x0000' bus='0x06' slot='0x10' function='0x0'/>";
}
}
}
$strRomFile = '';