[pve-devel] [PATCH container v4 0/4] implement device hotplug
Filip Schauer
f.schauer at proxmox.com
Mon Jul 28 14:47:48 CEST 2025
For now this only includes adding devices to a running container.
(not removing or editing existing devices)
Changes since v3:
* Rebase onto new master (b3163a6125cb) and adopt new perltidy format
* Validate device with get_device_mode_and_rdev helper
Changes since v2:
* Remove superfluous comments stating the obvious
* Ensure that the path in the container where the device node is placed
exists
* Split long lines
Changes since v1:
* Reduce code repetition between lxc-pve-prestart-hook and
device_passthrough_hotplug by extracting passthrough device node
creation to a helper.
Filip Schauer (4):
extract apparmor profile & namespace switch to a helper
extract passthrough device node creation to a helper
config: support printing a device
implement device hotplug
src/PVE/LXC.pm | 186 +++++++++++++++++++++++++++++++-------
src/PVE/LXC/Config.pm | 25 +++++
src/lxc-pve-prestart-hook | 27 ++----
3 files changed, 187 insertions(+), 51 deletions(-)
--
2.47.2
More information about the pve-devel
mailing list