From: Daniel P. Berrange Date: Wed, 13 May 2015 16:14:02 +0000 (+0100) Subject: backends: Fix typename of 'policy' enum property in hostmem obj X-Git-Tag: qemu-xen-4.7.0-rc1~217^2~9 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=b1028b4e8683740cd257a9b77577734664e61511;p=qemu-xen.git 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 Reviewed-by: Paolo Bonzini Reviewed-by: Eric Blake Signed-off-by: Andreas Färber --- diff --git a/backends/hostmem.c b/backends/hostmem.c index b7b6cf8f4a..f6db33c14e 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); }