underhill_attestation

Function initialize_platform_security

Source
pub async fn initialize_platform_security(
    get: &GuestEmulationTransportClient,
    bios_guid: Guid,
    attestation_vm_config: &AttestationVmConfig,
    vmgs: &mut Vmgs,
    attestation_type: AttestationType,
    suppress_attestation: bool,
    driver: LocalDriver,
) -> Result<PlatformAttestationData, Error>
Expand description

If required, attest platform. Gets VMGS datastore key.

Returns refresh_tpm_seeds (the host side GSP service indicating whether certain state needs to be updated), along with the fully initialized VMGS client.