mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-20 08:18:24 +00:00
Merge pull request #2626 from YchauWang/wyc-vc-api02
virtcontainers: update VC HypervisorConfig API add three lost fields
This commit is contained in:
@@ -201,6 +201,9 @@ type HypervisorConfig struct {
|
|||||||
// entropy (/dev/random, /dev/urandom or real hardware RNG device)
|
// entropy (/dev/random, /dev/urandom or real hardware RNG device)
|
||||||
EntropySource string
|
EntropySource string
|
||||||
|
|
||||||
|
// EntropySourceList is the list of valid entropy sources
|
||||||
|
EntropySourceList []string
|
||||||
|
|
||||||
// Shared file system type:
|
// Shared file system type:
|
||||||
// - virtio-9p (default)
|
// - virtio-9p (default)
|
||||||
// - virtio-fs
|
// - virtio-fs
|
||||||
@@ -305,6 +308,9 @@ type HypervisorConfig struct {
|
|||||||
// EnableVhostUserStore is used to indicate if host supports vhost-user-blk/scsi
|
// EnableVhostUserStore is used to indicate if host supports vhost-user-blk/scsi
|
||||||
EnableVhostUserStore bool
|
EnableVhostUserStore bool
|
||||||
|
|
||||||
|
// GuestSwap Used to enable/disable swap in the guest
|
||||||
|
GuestSwap bool
|
||||||
|
|
||||||
// VhostUserStorePath is the directory path where vhost-user devices
|
// VhostUserStorePath is the directory path where vhost-user devices
|
||||||
// related folders, sockets and device nodes should be.
|
// related folders, sockets and device nodes should be.
|
||||||
VhostUserStorePath string
|
VhostUserStorePath string
|
||||||
@@ -341,6 +347,11 @@ type HypervisorConfig struct {
|
|||||||
// GuestMemoryDumpPaging is used to indicate if enable paging
|
// GuestMemoryDumpPaging is used to indicate if enable paging
|
||||||
// for QEMU dump-guest-memory command
|
// for QEMU dump-guest-memory command
|
||||||
GuestMemoryDumpPaging bool
|
GuestMemoryDumpPaging bool
|
||||||
|
|
||||||
|
// Enable confidential guest support.
|
||||||
|
// Enable or disable different hardware features, ranging
|
||||||
|
// from memory encryption to both memory and CPU-state encryption and integrity.
|
||||||
|
ConfidentialGuest bool
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user