versions: Update cloud-hypervisor to release v0.12.0

Highlights for cloud-hypervisor version v0.12.0 include: removal of
`vhost-user-net` and `vhost-user-block` self spawning, migration of
`vhost-user-fs` backend, ARM64 enhancements with full support of
`--watchdog` for rebooting, and enhanced `info` HTTP API to include the
details of devices used by the VM including VFIO devices.

Fixes: #1315

Signed-off-by: Bo Chen <chen.bo@intel.com>
This commit is contained in:
Bo Chen 2021-01-25 10:58:19 -08:00
parent 4de21e3d95
commit c2d14cdeea
8 changed files with 96 additions and 1 deletions

View File

@ -64,6 +64,7 @@ Class | Method | HTTP request | Description
- [CpuTopology](docs/CpuTopology.md)
- [CpusConfig](docs/CpusConfig.md)
- [DeviceConfig](docs/DeviceConfig.md)
- [DeviceNode](docs/DeviceNode.md)
- [DiskConfig](docs/DiskConfig.md)
- [FsConfig](docs/FsConfig.md)
- [InitramfsConfig](docs/InitramfsConfig.md)

View File

@ -504,6 +504,16 @@ components:
id: id
mac: mac
mask: 255.255.255.0
device_tree:
key:
children:
- children
- children
pci_bdf: 6
resources:
- '{}'
- '{}'
id: id
properties:
config:
$ref: '#/components/schemas/VmConfig'
@ -517,10 +527,39 @@ components:
memory_actual_size:
format: int64
type: integer
device_tree:
additionalProperties:
$ref: '#/components/schemas/DeviceNode'
type: object
required:
- config
- state
type: object
DeviceNode:
example:
children:
- children
- children
pci_bdf: 6
resources:
- '{}'
- '{}'
id: id
properties:
id:
type: string
resources:
items:
type: object
type: array
children:
items:
type: string
type: array
pci_bdf:
format: int32
type: integer
type: object
VmCounters:
additionalProperties:
additionalProperties:

View File

@ -0,0 +1,14 @@
# DeviceNode
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Id** | **string** | | [optional]
**Resources** | **[]map[string]interface{}** | | [optional]
**Children** | **[]string** | | [optional]
**PciBdf** | **int32** | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -7,6 +7,7 @@ Name | Type | Description | Notes
**Config** | [**VmConfig**](VmConfig.md) | |
**State** | **string** | |
**MemoryActualSize** | **int64** | | [optional]
**DeviceTree** | [**map[string]DeviceNode**](DeviceNode.md) | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -0,0 +1,17 @@
/*
* Cloud Hypervisor API
*
* Local HTTP based API for managing and inspecting a cloud-hypervisor virtual machine.
*
* API version: 0.3.0
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
package openapi
// DeviceNode struct for DeviceNode
type DeviceNode struct {
Id string `json:"id,omitempty"`
Resources []map[string]interface{} `json:"resources,omitempty"`
Children []string `json:"children,omitempty"`
PciBdf int32 `json:"pci_bdf,omitempty"`
}

View File

@ -13,4 +13,5 @@ type VmInfo struct {
Config VmConfig `json:"config"`
State string `json:"state"`
MemoryActualSize int64 `json:"memory_actual_size,omitempty"`
DeviceTree map[string]DeviceNode `json:"device_tree,omitempty"`
}

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:

View File

@ -75,7 +75,7 @@ assets:
url: "https://github.com/cloud-hypervisor/cloud-hypervisor"
uscan-url: >-
https://github.com/cloud-hypervisor/cloud-hypervisor/tags.*/v?(\d\S+)\.tar\.gz
version: "270631922deee9bdea13635a104e111768446c7b"
version: "v0.12.0"
firecracker:
description: "Firecracker micro-VMM"