]> git.proxmox.com Git - mirror_qemu.git/commit - qga/commands-posix.c
qga: implement qmp_guest_get_memory_blocks() for Linux with sysfs
authorzhanghailiang <zhang.zhanghailiang@huawei.com>
Thu, 22 Jan 2015 02:40:03 +0000 (10:40 +0800)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 17 Feb 2015 22:16:40 +0000 (16:16 -0600)
commitbd240fca42d5f072fb758a71720d9de9990ac553
treea951043dcb087bfe1a69121128260327002e50db
parenta065aaa9204ecd4a0d18f5eae49aa350a5f76b63
qga: implement qmp_guest_get_memory_blocks() for Linux with sysfs

We can get guest's memory block information by using command
"guest-get-memory-blocks", the returned value contains a list of memory block
info, such as phys-index, online state, can-offline info.

Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
*replaced guest-triggerable assertion with an error msg

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
qga/commands-posix.c