Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
versions: cloud-hypervisor: Bump to version 6d30fe05
Browse files Browse the repository at this point in the history
The cloud-hypervisor commit `6d30fe05` introduced a fix on its API for
VFIO device hotplug (`VmAddDevice`), which is required for supporting
VFIO unplug through openAPI calls in kata.

Signed-off-by: Bo Chen <[email protected]>
  • Loading branch information
likebreath committed Sep 30, 2020
1 parent 62b0d5e commit 49bd162
Show file tree
Hide file tree
Showing 11 changed files with 42 additions and 26 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.10.0"
version: "6d30fe05e4febd930d91bb36294f0219faf2254c"

firecracker:
description: "Firecracker micro-VMM"
Expand Down
23 changes: 15 additions & 8 deletions virtcontainers/pkg/cloud-hypervisor/client/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ components:
VmCounters:
additionalProperties:
additionalProperties:
format: uint64
format: int64
type: integer
type: object
type: object
Expand Down Expand Up @@ -828,7 +828,7 @@ components:
default: false
type: boolean
host_numa_node:
format: uint32
format: int32
type: integer
hotplug_size:
format: int64
Expand Down Expand Up @@ -896,7 +896,7 @@ components:
default: false
type: boolean
balloon_size:
format: uint64
format: int64
type: integer
zones:
items:
Expand Down Expand Up @@ -1158,7 +1158,7 @@ components:
size: 8
properties:
size:
format: uint64
format: int64
type: integer
prefault:
default: false
Expand All @@ -1172,10 +1172,10 @@ components:
destination: 3
properties:
destination:
format: uint32
format: int32
type: integer
distance:
format: uint8
format: int32
type: integer
required:
- destination
Expand All @@ -1197,11 +1197,11 @@ components:
guest_numa_id: 9
properties:
guest_numa_id:
format: uint32
format: int32
type: integer
cpus:
items:
format: uint8
format: int32
type: integer
type: array
distances:
Expand Down Expand Up @@ -1248,9 +1248,16 @@ components:
VmAddDevice:
example:
path: path
iommu: false
id: id
properties:
path:
type: string
iommu:
default: false
type: boolean
id:
type: string
type: object
VmRemoveDevice:
example:
Expand Down
6 changes: 3 additions & 3 deletions virtcontainers/pkg/cloud-hypervisor/client/api_default.go
Original file line number Diff line number Diff line change
Expand Up @@ -996,16 +996,16 @@ func (a *DefaultApiService) VmAddVsockPut(ctx _context.Context, vsockConfig Vsoc
/*
VmCountersGet Get counters from the VM
* @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return map[string]map[string]int32
@return map[string]map[string]int64
*/
func (a *DefaultApiService) VmCountersGet(ctx _context.Context) (map[string]map[string]int32, *_nethttp.Response, error) {
func (a *DefaultApiService) VmCountersGet(ctx _context.Context) (map[string]map[string]int64, *_nethttp.Response, error) {
var (
localVarHTTPMethod = _nethttp.MethodGet
localVarPostBody interface{}
localVarFormFileName string
localVarFileName string
localVarFileBytes []byte
localVarReturnValue map[string]map[string]int32
localVarReturnValue map[string]map[string]int64
)

// create path and map variables
Expand Down
4 changes: 2 additions & 2 deletions virtcontainers/pkg/cloud-hypervisor/client/docs/DefaultApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ No authorization required

## VmCountersGet

> map[string]map[string]int32 VmCountersGet(ctx, )
> map[string]map[string]int64 VmCountersGet(ctx, )
Get counters from the VM

Expand All @@ -461,7 +461,7 @@ This endpoint does not need any parameter.

### Return type

[**map[string]map[string]int32**](map.md)
[**map[string]map[string]int64**](map.md)

### Authorization

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Name | Type | Description | Notes
**Shared** | **bool** | | [optional] [default to false]
**Hugepages** | **bool** | | [optional] [default to false]
**Balloon** | **bool** | | [optional] [default to false]
**BalloonSize** | **int32** | | [optional]
**BalloonSize** | **int64** | | [optional]
**Zones** | [**[]MemoryZoneConfig**](MemoryZoneConfig.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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Size** | **int32** | |
**Size** | **int64** | |
**Prefault** | **bool** | | [optional] [default to false]

[[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 @@ -5,6 +5,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Path** | **string** | | [optional]
**Iommu** | **bool** | | [optional] [default to false]
**Id** | **string** | | [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)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ type MemoryConfig struct {
Shared bool `json:"shared,omitempty"`
Hugepages bool `json:"hugepages,omitempty"`
Balloon bool `json:"balloon,omitempty"`
BalloonSize int32 `json:"balloon_size,omitempty"`
BalloonSize int64 `json:"balloon_size,omitempty"`
Zones []MemoryZoneConfig `json:"zones,omitempty"`
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
package openapi
// SgxEpcConfig struct for SgxEpcConfig
type SgxEpcConfig struct {
Size int32 `json:"size"`
Size int64 `json:"size"`
Prefault bool `json:"prefault,omitempty"`
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,6 @@ package openapi
// VmAddDevice struct for VmAddDevice
type VmAddDevice struct {
Path string `json:"path,omitempty"`
Iommu bool `json:"iommu,omitempty"`
Id string `json:"id,omitempty"`
}
21 changes: 13 additions & 8 deletions virtcontainers/pkg/cloud-hypervisor/cloud-hypervisor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ components:
type: object
additionalProperties:
type: integer
format: uint64
format: int64

PciDeviceInfo:
required:
Expand Down Expand Up @@ -492,7 +492,7 @@ components:
default: false
host_numa_node:
type: integer
format: uint32
format: int32
hotplug_size:
type: integer
format: int64
Expand Down Expand Up @@ -532,7 +532,7 @@ components:
default: false
balloon_size:
type: integer
format: uint64
format: int64
zones:
type: array
items:
Expand Down Expand Up @@ -741,7 +741,7 @@ components:
properties:
size:
type: integer
format: uint64
format: int64
prefault:
type: boolean
default: false
Expand All @@ -754,10 +754,10 @@ components:
properties:
destination:
type: integer
format: uint32
format: int32
distance:
type: integer
format: uint8
format: int32

NumaConfig:
required:
Expand All @@ -766,12 +766,12 @@ components:
properties:
guest_numa_id:
type: integer
format: uint32
format: int32
cpus:
type: array
items:
type: integer
format: uint8
format: int32
distances:
type: array
items:
Expand Down Expand Up @@ -811,6 +811,11 @@ components:
properties:
path:
type: string
iommu:
type: boolean
default: false
id:
type: string

VmRemoveDevice:
type: object
Expand Down

0 comments on commit 49bd162

Please sign in to comment.