X-Git-Url: https://repo.jachan.dev/qemu.git/blobdiff_plain/28d0de7a4fb721b06de72970bd163f5183c2188b..501eea4f4187b6c62b6cf348ab0b100d57d8c56b:/numa.c diff --git a/numa.c b/numa.c index d227ccc23b..91fc6c1d93 100644 --- a/numa.c +++ b/numa.c @@ -31,7 +31,6 @@ #include "qapi-visit.h" #include "qapi/opts-visitor.h" #include "qapi/dealloc-visitor.h" -#include "qapi/qmp/qerror.h" #include "hw/boards.h" #include "sysemu/hostmem.h" #include "qmp-commands.h" @@ -456,7 +455,7 @@ static int query_memdev(Object *obj, void *opaque) m->value->policy = object_property_get_enum(obj, "policy", - HostMemPolicy_lookup, + "HostMemPolicy", &err); if (err) { goto error; @@ -485,7 +484,7 @@ MemdevList *qmp_query_memdev(Error **errp) Object *obj; MemdevList *list = NULL; - obj = object_resolve_path("/objects", NULL); + obj = object_get_objects_root(); if (obj == NULL) { return NULL; }