virtcontainers: Add StratoVirt as a supported hypervisor

Initial support of the MicroVM machine type of StratoVirt
hypervisor for the kata go runtime.

Fixes: #7794

Signed-off-by: Liu Wenyuan <liuwenyuan9@huawei.com>
This commit is contained in:
Liu Wenyuan 2023-08-23 16:39:48 +08:00
parent edb791315e
commit 26966c8469
3 changed files with 1313 additions and 0 deletions

View File

@ -48,6 +48,9 @@ const (
// ClhHypervisor is the ICH hypervisor. // ClhHypervisor is the ICH hypervisor.
ClhHypervisor HypervisorType = "clh" ClhHypervisor HypervisorType = "clh"
// StratovirtHypervisor is the StratoVirt hypervisor.
StratovirtHypervisor HypervisorType = "stratovirt"
// DragonballHypervisor is the Dragonball hypervisor. // DragonballHypervisor is the Dragonball hypervisor.
DragonballHypervisor HypervisorType = "dragonball" DragonballHypervisor HypervisorType = "dragonball"
@ -256,6 +259,8 @@ func (hType *HypervisorType) String() string {
return string(AcrnHypervisor) return string(AcrnHypervisor)
case ClhHypervisor: case ClhHypervisor:
return string(ClhHypervisor) return string(ClhHypervisor)
case StratovirtHypervisor:
return string(StratovirtHypervisor)
case MockHypervisor: case MockHypervisor:
return string(MockHypervisor) return string(MockHypervisor)
default: default:

View File

@ -36,6 +36,8 @@ func NewHypervisor(hType HypervisorType) (Hypervisor, error) {
return &Acrn{}, nil return &Acrn{}, nil
case ClhHypervisor: case ClhHypervisor:
return &cloudHypervisor{}, nil return &cloudHypervisor{}, nil
case StratovirtHypervisor:
return &stratovirt{}, nil
case DragonballHypervisor: case DragonballHypervisor:
return &mockHypervisor{}, nil return &mockHypervisor{}, nil
case MockHypervisor: case MockHypervisor:

File diff suppressed because it is too large Load Diff