]> git.proxmox.com Git - qemu-server.git/commit - PVE/QemuServer/Memory.pm
memory: hotplug: sort by numerical ID rather than slot when unplugging
authorFiona Ebner <f.ebner@proxmox.com>
Thu, 16 Mar 2023 09:31:59 +0000 (10:31 +0100)
committerFiona Ebner <f.ebner@proxmox.com>
Fri, 17 Mar 2023 13:05:02 +0000 (14:05 +0100)
commit2cf203194ba8964cb308d16a680708645d2c03a6
treea095158cbccaafb12d42c2931c0d077ec265d14a
parentd1b25a2267187c48339f598e81d5f99706f85513
memory: hotplug: sort by numerical ID rather than slot when unplugging

While, usually, the slot should match the ID, it's not explicitly
guaranteed and relies on QEMU internals. Using the numerical ID is
more future-proof and more consistent with plugging, where no slot
information (except the maximum limit) is relied upon.

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
PVE/QemuServer/Memory.pm