From a6066404f77b2aa40bb36054515de3b9a373bacd Mon Sep 17 00:00:00 2001 From: "wangyongchao.bj" Date: Tue, 14 Sep 2021 10:42:54 +0800 Subject: [PATCH] virtcontainers: update VC HypervisorConfig API add three lost fields Sync the virtcontainers api.md document, add `ConfidentialGuest` `EntropySourceList` `GuestSwap` three fields to the HypervisorConfig API. Fixes #2625 Signed-off-by: wangyongchao.bj --- .../virtcontainers/documentation/api/1.0/api.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/runtime/virtcontainers/documentation/api/1.0/api.md b/src/runtime/virtcontainers/documentation/api/1.0/api.md index 57faa5ce14..79711c4a18 100644 --- a/src/runtime/virtcontainers/documentation/api/1.0/api.md +++ b/src/runtime/virtcontainers/documentation/api/1.0/api.md @@ -201,6 +201,9 @@ type HypervisorConfig struct { // entropy (/dev/random, /dev/urandom or real hardware RNG device) EntropySource string + // EntropySourceList is the list of valid entropy sources + EntropySourceList []string + // Shared file system type: // - virtio-9p (default) // - virtio-fs @@ -305,6 +308,9 @@ type HypervisorConfig struct { // EnableVhostUserStore is used to indicate if host supports vhost-user-blk/scsi EnableVhostUserStore bool + // GuestSwap Used to enable/disable swap in the guest + GuestSwap bool + // VhostUserStorePath is the directory path where vhost-user devices // related folders, sockets and device nodes should be. VhostUserStorePath string @@ -341,6 +347,11 @@ type HypervisorConfig struct { // GuestMemoryDumpPaging is used to indicate if enable paging // for QEMU dump-guest-memory command 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 } ```