mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-07 11:04:12 +00:00
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:
parent
edb791315e
commit
26966c8469
@ -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:
|
||||||
|
@ -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:
|
||||||
|
1306
src/runtime/virtcontainers/stratovirt.go
Normal file
1306
src/runtime/virtcontainers/stratovirt.go
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user