mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-21 22:32:15 +08:00
Merge pull request #15755 from wanyaoqi/automated-cherry-pick-of-#15754-upstream-master
Automated cherry pick of #15754: fix(host): isolated_deivce hotplug check addr
This commit is contained in:
@@ -1807,9 +1807,11 @@ func (s *SKVMGuestInstance) compareDescIsolatedDevices(newDesc *desc.SGuestDesc,
|
||||
for _, oldDev := range oldDevs {
|
||||
var find = false
|
||||
oVendorDevId := oldDev.VendorDeviceId
|
||||
oAddr := oldDev.Addr
|
||||
for idx, addDev := range addDevs {
|
||||
nVendorDevId := addDev.VendorDeviceId
|
||||
if oVendorDevId == nVendorDevId {
|
||||
nAddr := addDev.Addr
|
||||
if oVendorDevId == nVendorDevId && oAddr == nAddr {
|
||||
addDevs = append(addDevs[:idx], addDevs[idx+1:]...)
|
||||
find = true
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user