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 HypervisorType = "clh"
// StratovirtHypervisor is the StratoVirt hypervisor.
StratovirtHypervisor HypervisorType = "stratovirt"
// DragonballHypervisor is the Dragonball hypervisor.
DragonballHypervisor HypervisorType = "dragonball"
@ -256,6 +259,8 @@ func (hType *HypervisorType) String() string {
return string(AcrnHypervisor)
case ClhHypervisor:
return string(ClhHypervisor)
case StratovirtHypervisor:
return string(StratovirtHypervisor)
case MockHypervisor:
return string(MockHypervisor)
default:

View File

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

File diff suppressed because it is too large Load Diff