|
@@ -97,7 +97,7 @@ static int qmp_query_cryptodev_foreach(Object *obj, void *data)
|
|
QCryptodevInfoList *qmp_query_cryptodev(Error **errp)
|
|
QCryptodevInfoList *qmp_query_cryptodev(Error **errp)
|
|
{
|
|
{
|
|
QCryptodevInfoList *list = NULL;
|
|
QCryptodevInfoList *list = NULL;
|
|
- Object *objs = container_get(object_get_root(), "/objects");
|
|
|
|
|
|
+ Object *objs = object_get_container("objects");
|
|
|
|
|
|
object_child_foreach(objs, qmp_query_cryptodev_foreach, &list);
|
|
object_child_foreach(objs, qmp_query_cryptodev_foreach, &list);
|
|
|
|
|
|
@@ -557,7 +557,7 @@ static void cryptodev_backend_stats_cb(StatsResultList **result,
|
|
switch (target) {
|
|
switch (target) {
|
|
case STATS_TARGET_CRYPTODEV:
|
|
case STATS_TARGET_CRYPTODEV:
|
|
{
|
|
{
|
|
- Object *objs = container_get(object_get_root(), "/objects");
|
|
|
|
|
|
+ Object *objs = object_get_container("objects");
|
|
StatsArgs stats_args;
|
|
StatsArgs stats_args;
|
|
stats_args.result.stats = result;
|
|
stats_args.result.stats = result;
|
|
stats_args.names = names;
|
|
stats_args.names = names;
|