Last active
June 5, 2018 14:32
-
-
Save jcvenegas/744f9d9151c6fe03b99fe43e17392815 to your computer and use it in GitHub Desktop.
Qemu memoy hotplug
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for i in `grep -l offline /sys/devices/system/memory/memory*/state` | |
do | |
echo online > $i | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"execute":"object-add","arguments": { "qom-type": "memory-backend-ram","id":"mem2", "props": { "size":1073741824}}} | |
{ "execute": "device_add", "arguments": { "driver": "pc-dimm", "id": "hotmem1", "memdev": "mem2" } } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment