Merge pull request #2619 from likebreath/0913/backport_clh_v18.0

stable-2.2 | versions: Upgrade to Cloud Hypervisor v18.0
This commit is contained in:
Samuel Ortiz 2021-09-14 12:02:50 +02:00 committed by GitHub
commit 64504061c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 19 additions and 21 deletions

View File

@ -243,7 +243,6 @@ func (clh *cloudHypervisor) createSandbox(ctx context.Context, id string, networ
clh.vmconfig.Memory = chclient.NewMemoryConfig(int64((utils.MemUnit(clh.config.MemorySize) * utils.MiB).ToBytes()))
// shared memory should be enabled if using vhost-user(kata uses virtiofsd)
clh.vmconfig.Memory.Shared = func(b bool) *bool { return &b }(true)
clh.vmconfig.Memory.HotplugMethod = func(s string) *string { return &s }("Acpi")
hostMemKb, err := getHostMemorySizeKb(procMemInfo)
if err != nil {
return nil
@ -1123,7 +1122,6 @@ func (clh *cloudHypervisor) addNet(e Endpoint) error {
net := chclient.NewNetConfig()
net.Mac = &mac
net.Tap = &tapPath
net.VhostMode = func(s string) *string { return &s }("Client")
if clh.vmconfig.Net != nil {
*clh.vmconfig.Net = append(*clh.vmconfig.Net, *net)
} else {

View File

@ -383,7 +383,7 @@ components:
id: id
hotplug_size: 1
hotplug_size: 3
hotplug_method: acpi
hotplug_method: Acpi
disks:
- path: path
num_queues: 7
@ -540,7 +540,7 @@ components:
one_time_burst: 0
refill_time: 0
mac: mac
vhost_mode: client
vhost_mode: Client
iommu: false
vhost_socket: vhost_socket
vhost_user: false
@ -563,7 +563,7 @@ components:
one_time_burst: 0
refill_time: 0
mac: mac
vhost_mode: client
vhost_mode: Client
iommu: false
vhost_socket: vhost_socket
vhost_user: false
@ -688,7 +688,7 @@ components:
id: id
hotplug_size: 1
hotplug_size: 3
hotplug_method: acpi
hotplug_method: Acpi
disks:
- path: path
num_queues: 7
@ -845,7 +845,7 @@ components:
one_time_burst: 0
refill_time: 0
mac: mac
vhost_mode: client
vhost_mode: Client
iommu: false
vhost_socket: vhost_socket
vhost_user: false
@ -868,7 +868,7 @@ components:
one_time_burst: 0
refill_time: 0
mac: mac
vhost_mode: client
vhost_mode: Client
iommu: false
vhost_socket: vhost_socket
vhost_user: false
@ -1053,7 +1053,7 @@ components:
id: id
hotplug_size: 1
hotplug_size: 3
hotplug_method: acpi
hotplug_method: Acpi
properties:
size:
format: int64
@ -1068,7 +1068,7 @@ components:
default: false
type: boolean
hotplug_method:
default: acpi
default: Acpi
type: string
shared:
default: false
@ -1236,7 +1236,7 @@ components:
one_time_burst: 0
refill_time: 0
mac: mac
vhost_mode: client
vhost_mode: Client
iommu: false
vhost_socket: vhost_socket
vhost_user: false
@ -1272,7 +1272,7 @@ components:
vhost_socket:
type: string
vhost_mode:
default: client
default: Client
type: string
id:
type: string

View File

@ -8,7 +8,7 @@ Name | Type | Description | Notes
**HotplugSize** | Pointer to **int64** | | [optional]
**HotpluggedSize** | Pointer to **int64** | | [optional]
**Mergeable** | Pointer to **bool** | | [optional] [default to false]
**HotplugMethod** | Pointer to **string** | | [optional] [default to "acpi"]
**HotplugMethod** | Pointer to **string** | | [optional] [default to "Acpi"]
**Shared** | Pointer to **bool** | | [optional] [default to false]
**Hugepages** | Pointer to **bool** | | [optional] [default to false]
**HugepageSize** | Pointer to **int64** | | [optional]

View File

@ -13,7 +13,7 @@ Name | Type | Description | Notes
**QueueSize** | Pointer to **int32** | | [optional] [default to 256]
**VhostUser** | Pointer to **bool** | | [optional] [default to false]
**VhostSocket** | Pointer to **string** | | [optional]
**VhostMode** | Pointer to **string** | | [optional] [default to "client"]
**VhostMode** | Pointer to **string** | | [optional] [default to "Client"]
**Id** | Pointer to **string** | | [optional]
**Fd** | Pointer to **[]int32** | | [optional]
**RateLimiterConfig** | Pointer to [**RateLimiterConfig**](RateLimiterConfig.md) | | [optional]

View File

@ -36,7 +36,7 @@ func NewMemoryConfig(size int64) *MemoryConfig {
this.Size = size
var mergeable bool = false
this.Mergeable = &mergeable
var hotplugMethod string = "acpi"
var hotplugMethod string = "Acpi"
this.HotplugMethod = &hotplugMethod
var shared bool = false
this.Shared = &shared
@ -52,7 +52,7 @@ func NewMemoryConfigWithDefaults() *MemoryConfig {
this := MemoryConfig{}
var mergeable bool = false
this.Mergeable = &mergeable
var hotplugMethod string = "acpi"
var hotplugMethod string = "Acpi"
this.HotplugMethod = &hotplugMethod
var shared bool = false
this.Shared = &shared

View File

@ -51,7 +51,7 @@ func NewNetConfig() *NetConfig {
this.QueueSize = &queueSize
var vhostUser bool = false
this.VhostUser = &vhostUser
var vhostMode string = "client"
var vhostMode string = "Client"
this.VhostMode = &vhostMode
return &this
}
@ -75,7 +75,7 @@ func NewNetConfigWithDefaults() *NetConfig {
this.QueueSize = &queueSize
var vhostUser bool = false
this.VhostUser = &vhostUser
var vhostMode string = "client"
var vhostMode string = "Client"
this.VhostMode = &vhostMode
return &this
}

View File

@ -567,7 +567,7 @@ components:
default: false
hotplug_method:
type: string
default: "acpi"
default: "Acpi"
shared:
type: boolean
default: false
@ -714,7 +714,7 @@ components:
type: string
vhost_mode:
type: string
default: "client"
default: "Client"
id:
type: string
fd:

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: "v17.0"
version: "v18.0"
firecracker:
description: "Firecracker micro-VMM"