mirror of
https://github.com/kata-containers/kata-containers.git
synced 2026-07-26 15:55:24 +00:00
Add infrastructure for virtio-mem memory hotplug on s390x:
1. QMP Operations (qmp.rs):
- setup_virtio_mem(): Creates virtio-mem-ccw device with CCW
addressing (fe.0.dddd format). Takes primitive parameters
(default_memory, default_maxmemory, machine_type, shared_fs)
and determines memory backend inline based on shared filesystem
configuration.
- resize_virtio_mem(): Adjusts memory via QMP qom-set command
with inline size validation.
- cleanup_virtio_mem_setup(): Error handling helper for setup
failures.
2. Build System:
- Updated configuration template with enable_virtio_mem parameter
- Added DEFENABLEVIRTIOMEM to Makefile
- Updated s390x-options.mk
Assisted-by: IBM Bob
Signed-off-by: Annu Sharma <annu-sharma@ibm.com>