cli: Show available guest protection in env output

Show available guest protections in the
`kata-runtime env` output. Also bump the formatVersion.

Fixes: #1982

Signed-off-by: Yujia Qiao <rapiz3142@gmail.com>
This commit is contained in:
Yujia Qiao
2021-10-25 21:44:56 +08:00
parent 2063b13805
commit 6cc8000cae
2 changed files with 20 additions and 16 deletions

View File

@@ -179,10 +179,10 @@ const (
var guestProtectionStr = [...]string{
noneProtection: "none",
tdxProtection: "tdx",
sevProtection: "sev",
pefProtection: "pef",
seProtection: "se",
sevProtection: "sev",
tdxProtection: "tdx",
}
func (gp guestProtection) String() string {