mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
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:
committed by
Samuel Ortiz
parent
15f0451c34
commit
280d4fb245
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user