Skip to content

Instantly share code, notes, and snippets.

@jcvenegas
Last active June 5, 2018 14:32
Show Gist options
  • Save jcvenegas/744f9d9151c6fe03b99fe43e17392815 to your computer and use it in GitHub Desktop.
Save jcvenegas/744f9d9151c6fe03b99fe43e17392815 to your computer and use it in GitHub Desktop.
Qemu memoy hotplug
for i in `grep -l offline /sys/devices/system/memory/memory*/state`
do
echo online > $i
done
{"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