vmm: Include device tree in vm.info API

The DeviceNode cannot be fully represented as it embeds a Rust style
enum (i.e. with data) which is instead represented by a simple
associative array.

Fixes: #1167

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford
2020-11-30 09:06:13 +00:00
committed by Samuel Ortiz
parent 15f0451c34
commit 280d4fb245
5 changed files with 36 additions and 0 deletions

View File

@@ -363,8 +363,30 @@ components:
memory_actual_size:
type: integer
format: int64
device_tree:
type: object
additionalProperties:
$ref: '#/components/schemas/DeviceNode'
description: Virtual Machine information
DeviceNode:
type: object
properties:
id:
type: string
resources:
type: array
items:
# Rust enum type (with data) which can't be better represented here
type: object
children:
type: array
items:
type: string
pci_bdf:
type: integer
format: int32
VmCounters:
type: object
additionalProperties: