summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorzhanghailiang <zhang.zhanghailiang@huawei.com>2015-01-22 10:40:06 +0800
committerMichael Roth <mdroth@linux.vnet.ibm.com>2015-02-17 16:21:50 -0600
commit0dd38a03f5e1498aabf7d053a9fab792a5eeec5c (patch)
treee4049a9325d64684570d8fc2ee15bcf3ddabae33
parentef82b60be13b18198b84a2157f59c50fd53f5408 (diff)
downloadfocaccia-qemu-0dd38a03f5e1498aabf7d053a9fab792a5eeec5c.tar.gz
focaccia-qemu-0dd38a03f5e1498aabf7d053a9fab792a5eeec5c.zip
qga: add memory block command that unsupported
For memory block command, we only support for linux with sysfs.

Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
Reviewed-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
-rw-r--r--qga/commands-posix.c4
-rw-r--r--qga/commands-win32.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/qga/commands-posix.c b/qga/commands-posix.c
index 6575c49191..d5bb5cb5da 100644
--- a/qga/commands-posix.c
+++ b/qga/commands-posix.c
@@ -2415,7 +2415,9 @@ GList *ga_command_blacklist_init(GList *blacklist)
         const char *list[] = {
             "guest-suspend-disk", "guest-suspend-ram",
             "guest-suspend-hybrid", "guest-network-get-interfaces",
-            "guest-get-vcpus", "guest-set-vcpus", NULL};
+            "guest-get-vcpus", "guest-set-vcpus",
+            "guest-get-memory-blocks", "guest-set-memory-blocks",
+            "guest-get-memory-block-size", NULL};
         char **p = (char **)list;
 
         while (*p) {
diff --git a/qga/commands-win32.c b/qga/commands-win32.c
index 990a8ddf53..0238fbbcad 100644
--- a/qga/commands-win32.c
+++ b/qga/commands-win32.c
@@ -710,6 +710,8 @@ GList *ga_command_blacklist_init(GList *blacklist)
         "guest-suspend-hybrid", "guest-network-get-interfaces",
         "guest-get-vcpus", "guest-set-vcpus",
         "guest-set-user-password",
+        "guest-get-memory-blocks", "guest-set-memory-blocks",
+        "guest-get-memory-block-size",
         "guest-fsfreeze-freeze-list", "guest-get-fsinfo",
         "guest-fstrim", NULL};
     char **p = (char **)list_unsupported;