CCF
Loading...
Searching...
No Matches
Classes | Typedefs | Variables
ccf::pal::snp::ioctl6 Namespace Reference

Classes

class  Attestation
 
struct  AttestationReq
 
struct  AttestationResp
 
class  DerivedKey
 
struct  DerivedKeyReq
 
struct  DerivedKeyResp
 
union  ExitInfo
 
struct  ExitInfoErrors
 
struct  GuestRequest
 
struct  IoctlSentinel
 
struct  PaddedTo
 

Typedefs

using PaddedAttestationResp = PaddedTo< AttestationResp, 4000 >
 
using PaddedDerivedKeyResp = PaddedTo< DerivedKeyResp, 4000 >
 
using GuestRequestAttestation = GuestRequest< AttestationReq, PaddedAttestationResp >
 
using GuestRequestDerivedKey = GuestRequest< DerivedKeyReq, PaddedDerivedKeyResp >
 

Variables

constexpr auto DEVICE = "/dev/sev-guest"
 
constexpr uint8_t GUEST_FIELD_SELECT_GUEST_POLICY = 0b00000001
 
constexpr uint8_t GUEST_FIELD_SELECT_IMAGE_ID = 0b00000010
 
constexpr uint8_t GUEST_FIELD_SELECT_FAMILY_ID = 0b00000100
 
constexpr uint8_t GUEST_FIELD_SELECT_MEASUREMENT = 0b00001000
 
constexpr uint8_t GUEST_FIELD_SELECT_GUEST_SVN = 0b00010000
 
constexpr uint8_t GUEST_FIELD_SELECT_TCB_VERSION = 0b00100000
 
constexpr char SEV_GUEST_IOC_TYPE = 'S'
 
constexpr int SEV_SNP_GUEST_MSG_REPORT
 
constexpr int SEV_SNP_GUEST_MSG_DERIVED_KEY
 

Typedef Documentation

◆ GuestRequestAttestation

◆ GuestRequestDerivedKey

◆ PaddedAttestationResp

◆ PaddedDerivedKeyResp

Variable Documentation

◆ DEVICE

constexpr auto ccf::pal::snp::ioctl6::DEVICE = "/dev/sev-guest"
constexpr

◆ GUEST_FIELD_SELECT_FAMILY_ID

constexpr uint8_t ccf::pal::snp::ioctl6::GUEST_FIELD_SELECT_FAMILY_ID = 0b00000100
constexpr

◆ GUEST_FIELD_SELECT_GUEST_POLICY

constexpr uint8_t ccf::pal::snp::ioctl6::GUEST_FIELD_SELECT_GUEST_POLICY = 0b00000001
constexpr

◆ GUEST_FIELD_SELECT_GUEST_SVN

constexpr uint8_t ccf::pal::snp::ioctl6::GUEST_FIELD_SELECT_GUEST_SVN = 0b00010000
constexpr

◆ GUEST_FIELD_SELECT_IMAGE_ID

constexpr uint8_t ccf::pal::snp::ioctl6::GUEST_FIELD_SELECT_IMAGE_ID = 0b00000010
constexpr

◆ GUEST_FIELD_SELECT_MEASUREMENT

constexpr uint8_t ccf::pal::snp::ioctl6::GUEST_FIELD_SELECT_MEASUREMENT = 0b00001000
constexpr

◆ GUEST_FIELD_SELECT_TCB_VERSION

constexpr uint8_t ccf::pal::snp::ioctl6::GUEST_FIELD_SELECT_TCB_VERSION = 0b00100000
constexpr

◆ SEV_GUEST_IOC_TYPE

constexpr char ccf::pal::snp::ioctl6::SEV_GUEST_IOC_TYPE = 'S'
constexpr

◆ SEV_SNP_GUEST_MSG_DERIVED_KEY

constexpr int ccf::pal::snp::ioctl6::SEV_SNP_GUEST_MSG_DERIVED_KEY
constexpr
Initial value:
=
_IOWR(SEV_GUEST_IOC_TYPE, 0x1, GuestRequestDerivedKey)

◆ SEV_SNP_GUEST_MSG_REPORT

constexpr int ccf::pal::snp::ioctl6::SEV_SNP_GUEST_MSG_REPORT
constexpr
Initial value:
=
_IOWR(SEV_GUEST_IOC_TYPE, 0x0, GuestRequestAttestation)