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