mirror of
https://github.com/aljazceru/kata-containers.git
synced 2026-01-10 09:54:22 +01:00
Protected Execution Facility(PEF) is the confidential computing technology on ppc64le. This PR adds the support for it in Kata. Also re-vendor govmm for the latest changes. Fixes: #1881 Signed-off-by: Amulyam24 <amulmek1@in.ibm.com>
18 lines
353 B
Go
18 lines
353 B
Go
// Copyright (c) 2021 IBM
|
|
//
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package virtcontainers
|
|
|
|
import "os"
|
|
|
|
//Returns pefProtection if the firmware directory exists
|
|
func availableGuestProtection() (guestProtection, error) {
|
|
|
|
if d, err := os.Stat(pefSysFirmwareDir); err == nil && d.IsDir() {
|
|
return pefProtection, err
|
|
}
|
|
|
|
return noneProtection, nil
|
|
}
|