Skip to content

Commit

Permalink
clh: Update CLH to stable/v0.5.x
Browse files Browse the repository at this point in the history
Use CLH branch stable/v0.5.x, and also re-generate the openAPI client
code with the new 'cloud-hypervisor.yaml'.

Fixes: kata-containers#2488

Signed-off-by: Bo Chen <chen.bo@intel.com>
  • Loading branch information
likebreath authored and Evan Foster committed Mar 9, 2020
1 parent 6926c2c commit 970564a
Show file tree
Hide file tree
Showing 6 changed files with 52 additions and 2 deletions.
2 changes: 1 addition & 1 deletion versions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: "v0.5.0"
version: "stable/v0.5.x"

firecracker:
description: "Firecracker micro-VMM"
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.2.3-SNAPSHOT
4.3.0-SNAPSHOT
31 changes: 31 additions & 0 deletions virtcontainers/pkg/cloud-hypervisor/client/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -156,12 +156,20 @@ components:
disks:
- path: path
num_queues: 5
readonly: false
iommu: false
queue_size: 5
vhost_socket: vhost_socket
vhost_user: false
wce: true
- path: path
num_queues: 5
readonly: false
iommu: false
queue_size: 5
vhost_socket: vhost_socket
vhost_user: false
wce: true
cpus:
boot_vcpus: 1
max_vcpus: 1
Expand Down Expand Up @@ -275,12 +283,20 @@ components:
disks:
- path: path
num_queues: 5
readonly: false
iommu: false
queue_size: 5
vhost_socket: vhost_socket
vhost_user: false
wce: true
- path: path
num_queues: 5
readonly: false
iommu: false
queue_size: 5
vhost_socket: vhost_socket
vhost_user: false
wce: true
cpus:
boot_vcpus: 1
max_vcpus: 1
Expand Down Expand Up @@ -477,11 +493,18 @@ components:
example:
path: path
num_queues: 5
readonly: false
iommu: false
queue_size: 5
vhost_socket: vhost_socket
vhost_user: false
wce: true
properties:
path:
type: string
readonly:
default: false
type: boolean
iommu:
default: false
type: boolean
Expand All @@ -491,6 +514,14 @@ components:
queue_size:
default: 128
type: integer
vhost_user:
default: false
type: boolean
vhost_socket:
type: string
wce:
default: true
type: boolean
required:
- path
type: object
Expand Down
4 changes: 4 additions & 0 deletions virtcontainers/pkg/cloud-hypervisor/client/docs/DiskConfig.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,13 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Path** | **string** | |
**Readonly** | **bool** | | [optional] [default to false]
**Iommu** | **bool** | | [optional] [default to false]
**NumQueues** | **int32** | | [optional] [default to 1]
**QueueSize** | **int32** | | [optional] [default to 128]
**VhostUser** | **bool** | | [optional] [default to false]
**VhostSocket** | **string** | | [optional]
**Wce** | **bool** | | [optional] [default to true]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ package openapi
// DiskConfig struct for DiskConfig
type DiskConfig struct {
Path string `json:"path"`
Readonly bool `json:"readonly,omitempty"`
Iommu bool `json:"iommu,omitempty"`
NumQueues int32 `json:"num_queues,omitempty"`
QueueSize int32 `json:"queue_size,omitempty"`
VhostUser bool `json:"vhost_user,omitempty"`
VhostSocket string `json:"vhost_socket,omitempty"`
Wce bool `json:"wce,omitempty"`
}
11 changes: 11 additions & 0 deletions virtcontainers/pkg/cloud-hypervisor/cloud-hypervisor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,9 @@ components:
properties:
path:
type: string
readonly:
type: boolean
default: false
iommu:
type: boolean
default: false
Expand All @@ -283,6 +286,14 @@ components:
queue_size:
type: integer
default: 128
vhost_user:
type: boolean
default: false
vhost_socket:
type: string
wce:
type: boolean
default: true

NetConfig:
type: object
Expand Down

0 comments on commit 970564a

Please sign in to comment.