diff --git a/backends/hostmem.c b/backends/hostmem.c index 9c5162760f1d8848cf22f6a3679132354727dbe6..33120a48619597aa5def5ff163208c43ce34a342 100644 --- a/backends/hostmem.c +++ b/backends/hostmem.c @@ -655,6 +655,14 @@ host_memory_backend_class_init(ObjectClass *oc, void *data) host_memory_backend_get_host_nodes, host_memory_backend_set_host_nodes, NULL, NULL); +#ifdef CONFIG_MBIND_PROPORTION + object_class_property_add(oc, "host-nodes-propertion", "str", + NULL, + host_memory_backend_set_propertion, + NULL, NULL); + object_class_property_set_description(oc, "host-nodes-propertion", + "Mark the memory bind to host node by propertion"); +#endif object_class_property_set_description(oc, "host-nodes", "Binds memory to the list of NUMA host nodes"); object_class_property_add_enum(oc, "policy", "HostMemPolicy",