]> Git Repo - qemu.git/commitdiff
backends: Fix typename of 'policy' enum property in hostmem obj
authorDaniel P. Berrange <[email protected]>
Wed, 13 May 2015 16:14:02 +0000 (17:14 +0100)
committerAndreas Färber <[email protected]>
Fri, 19 Jun 2015 16:36:56 +0000 (18:36 +0200)
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 <[email protected]>
Reviewed-by: Paolo Bonzini <[email protected]>
Reviewed-by: Eric Blake <[email protected]>
Signed-off-by: Andreas Färber <[email protected]>
backends/hostmem.c

index b7b6cf8f4a203f645fc7b20af059b8f99a28fb22..f6db33c14ef56bc794efd700b2b690827f5f3f76 100644 (file)
@@ -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);
 }
This page took 0.026654 seconds and 4 git commands to generate.