mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
Merge pull request #17160 from wanyaoqi/fix/get-pci-controller-type
fix(host): get pci controller type
This commit is contained in:
@@ -954,7 +954,8 @@ func (s *SKVMGuestInstance) getHotPlugPciControllerType() *desc.PCI_CONTROLLER_T
|
||||
for i := 0; i < len(s.Desc.PCIControllers); i++ {
|
||||
switch s.Desc.PCIControllers[i].CType {
|
||||
case desc.CONTROLLER_TYPE_PCI_ROOT, desc.CONTROLLER_TYPE_PCI_BRIDGE:
|
||||
return &s.Desc.PCIControllers[i].Controller
|
||||
var contType = s.Desc.PCIControllers[i].CType
|
||||
return &contType
|
||||
}
|
||||
}
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user