aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2015-05-13 17:14:02 +0100
committerAndreas Färber <afaerber@suse.de>2015-06-19 18:36:56 +0200
commitb1028b4e8683740cd257a9b77577734664e61511 (patch)
treedb1103606265dcd269134cacc00bdd7602b30922 /backends
parentff5397bc72a1716bb34302dd470343ebee7d6bf2 (diff)
downloadqemu-b1028b4e8683740cd257a9b77577734664e61511.zip
qemu-b1028b4e8683740cd257a9b77577734664e61511.tar.gz
qemu-b1028b4e8683740cd257a9b77577734664e61511.tar.bz2
backends: Fix typename of 'policy' enum property in hostmem obj
The 'policy' property was being registered with a typename of 'str', but it is in fact an enum of the 'HostMemPolicy' type. Signed-off-by: Daniel P. Berrange <berrange@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'backends')
-rw-r--r--backends/hostmem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/backends/hostmem.c b/backends/hostmem.c
index b7b6cf8..f6db33c 100644
--- a/backends/hostmem.c
+++ b/backends/hostmem.c
@@ -252,7 +252,7 @@ static void host_memory_backend_init(Object *obj)
object_property_add(obj, "host-nodes", "int",
host_memory_backend_get_host_nodes,
host_memory_backend_set_host_nodes, NULL, NULL, NULL);
- object_property_add(obj, "policy", "str",
+ object_property_add(obj, "policy", "HostMemPolicy",
host_memory_backend_get_policy,
host_memory_backend_set_policy, NULL, NULL, NULL);
}