Mem-hotplug » История » Редакция 2
Редакция 1 (Андрей Волков, 2016-08-12 18:29) → Редакция 2/11 (Андрей Волков, 2016-08-12 18:32)
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>