mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
fix(host): fix get disk pci addr (#14171)
Fix hot-plug virtio disk failed. after add usb and rng deivce, available pci address should update. Signed-off-by: wanyaoqi <wanyaoqi1995@163.com>
This commit is contained in:
@@ -372,7 +372,8 @@ func GetNicAddr(index int, disksLen int, isoDevsLen int, isVdiSpice bool) int {
|
||||
}
|
||||
|
||||
func GetDiskAddr(idx int, isVdiSpice bool) int {
|
||||
var base = 5
|
||||
// host-bridge / isa-bridge / vga / serial / network / block / usb / rng
|
||||
var base = 7
|
||||
if isVdiSpice {
|
||||
base += 10
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user