mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
fix(host): isolated_deivce hotplug check addr
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
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