diff options
author | zhanghailiang <zhang.zhanghailiang@huawei.com> | 2015-01-22 10:40:02 +0800 |
---|---|---|
committer | Michael Roth <mdroth@linux.vnet.ibm.com> | 2015-02-17 16:15:30 -0600 |
commit | a065aaa9204ecd4a0d18f5eae49aa350a5f76b63 (patch) | |
tree | 4dbee168ae97693db3f103fc94d4676072fe60f9 /qga/commands-win32.c | |
parent | fa193594fbc27fde7c9062b3bf5c232534887ec7 (diff) | |
download | qemu-a065aaa9204ecd4a0d18f5eae49aa350a5f76b63.tar.gz qemu-a065aaa9204ecd4a0d18f5eae49aa350a5f76b63.tar.bz2 qemu-a065aaa9204ecd4a0d18f5eae49aa350a5f76b63.zip |
qga: introduce three guest memory block commmands with stubs
Introduce three new guest commands:
guest-get-memory-blocks, guest-set-memory-blocks, guest-get-memory-block-size.
With these three commands, we can support online/offline guest's memory block
(logical memory hotplug/unplug) as required from host.
Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
*generalized guest-get-memory-block-size to get-get-memory-block-info
for future extensibility
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Diffstat (limited to 'qga/commands-win32.c')
-rw-r--r-- | qga/commands-win32.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/qga/commands-win32.c b/qga/commands-win32.c index 9af7950aef..990a8ddf53 100644 --- a/qga/commands-win32.c +++ b/qga/commands-win32.c @@ -684,6 +684,25 @@ void qmp_guest_set_user_password(const char *username, error_set(errp, QERR_UNSUPPORTED); } +GuestMemoryBlockList *qmp_guest_get_memory_blocks(Error **errp) +{ + error_set(errp, QERR_UNSUPPORTED); + return NULL; +} + +GuestMemoryBlockResponseList * +qmp_guest_set_memory_blocks(GuestMemoryBlockList *mem_blks, Error **errp) +{ + error_set(errp, QERR_UNSUPPORTED); + return NULL; +} + +GuestMemoryBlockInfo *qmp_guest_get_memory_block_info(Error **errp) +{ + error_set(errp, QERR_UNSUPPORTED); + return NULL; +} + /* add unsupported commands to the blacklist */ GList *ga_command_blacklist_init(GList *blacklist) { |