Hi, This patch series add three guest commands about memory block: guest-get-memory-blocks, guest-set-memory-blocks, guest-get-memory-block-size.
With these three commands, we can get information about guest's memory block online/offline status and memory block size (unit of memory online/offline operation ). Also, we can change guest's memory block status (Logical memory hotplug/unplug) from host. zhanghailiang (6): qga: introduce three guest memory block commands with stubs qga: introduce three help functions for memory block functions qga: implement qmp_guest_get_memory_blocks() for Linux with sysfs qga: implement qmp_guest_set_memory_blocks() for Linux with sysfs qga: implement qmp_guest_get_memory_block_size() for Linux with sysfs qga: add memory block command that unsupported to blacklist qga/commands-posix.c | 266 ++++++++++++++++++++++++++++++++++++++++++++++++++- qga/commands-win32.c | 21 ++++ qga/qapi-schema.json | 88 +++++++++++++++++ 3 files changed, 374 insertions(+), 1 deletion(-) -- 1.7.12.4