Now qemu has already supported memory hotplug, so this patchset will make
libvirt support hotplug memory device for qemu driver.
First, add two parameters slots and maxmem for memory hotplug, and the xml
format can be like this.
<memory slot='10'>102400</memory>
<maxMemory>1024000</maxMemory>
Second, memory device's xml format can be like this.
<dimm driver='pc-dimm' addr='0' node='0' slot='1'>
<backend type='ram' size='131072'/>
</dimm>
Zhu Guihua (11):
domain_conf: support slots and maxmem properties in memory xml
domain_conf: introduce virDomainDimmGetFreeSlot
domain_conf: add support for memory device configuration in XML
domain_conf: introduce dimm def helpers
domain_conf: introduce dimm device hotplug helpers
qemu: implement dimm device hotplug on config level
qemu_monitor: introduce qemuMonitorAddMemoryBackend
qemu_command: introduce a func for memory device alias
qemu: implement support for pc-dimm
qemu: introduce qemuBuildDimmDeviceStr
qemu: implement dimm device hotplug on live level
src/conf/domain_conf.c | 306 ++++++++++++++++++++++++++++++++++++++++++-
src/conf/domain_conf.h | 54 ++++++++
src/libvirt_private.syms | 6 +
src/qemu/qemu_capabilities.c | 3 +
src/qemu/qemu_capabilities.h | 1 +
src/qemu/qemu_command.c | 110 +++++++++++++++-
src/qemu/qemu_command.h | 7 +
src/qemu/qemu_driver.c | 26 ++++
src/qemu/qemu_hotplug.c | 71 ++++++++++
src/qemu/qemu_hotplug.h | 5 +
src/qemu/qemu_monitor.c | 54 ++++++++
src/qemu/qemu_monitor.h | 4 +
12 files changed, 644 insertions(+), 3 deletions(-)
--
1.9.3