Mem-hotplug » История » Редакция 4
Редакция 3 (Андрей Волков, 2016-08-12 18:36) → Редакция 4/11 (Андрей Волков, 2016-08-12 18:38)
h1. Добавление памяти (ACPI)
h2. На хосте
*qmp-shell -H /run/qemu/qemu5521.control.sock*
<pre>
(QEMU) info memory-devices
(QEMU) object_add memory-backend-ram,id=mem1,size=2G
(QEMU) device_add pc-dimm,id=dimm1,memdev=mem1
(QEMU) info memory-devices
Memory device [dimm]: "dimm1"
addr: 0x2c0000000
slot: 0
node: 0
size: 2147483648
memdev: /objects/mem1
hotplugged: true
hotpluggable: true
</pre>
h2. На госте
<pre>
for NAME in $(grep -l offline /sys/devices/system/memory/memory*/state); do echo online > $NAME; done
</pre>
h2. Полезные ссылки
https://github.com/qemu/qemu/blob/master/docs/memory-hotplug.txt
https://medium.com/@juergen_thomann/memory-hotplug-with-qemu-kvm-and-libvirt-558f1c635972#.eenrv1jdb