• Tom Lendacky's avatar
    x86/sev: Extend the config-fs attestation support for an SVSM · 627dc671
    Tom Lendacky authored
    When an SVSM is present, the guest can also request attestation reports
    from it. These SVSM attestation reports can be used to attest the SVSM
    and any services running within the SVSM.
    
    Extend the config-fs attestation support to provide such. This involves
    creating four new config-fs attributes:
    
      - 'service-provider' (input)
        This attribute is used to determine whether the attestation request
        should be sent to the specified service provider or to the SEV
        firmware. The SVSM service provider is represented by the value
        'svsm'.
    
      - 'service_guid' (input)
        Used for requesting the attestation of a single service within the
        service provider. A null GUID implies that the SVSM_ATTEST_SERVICES
        call should be used to request the attestation report. A non-null
        GUID implies that the SVSM_ATTEST_SINGLE_SERVICE call should be used.
    
      - 'service_manifest_version' (input)
        Used with the SVSM_ATTEST_SINGLE_SERVICE call, the service version
        represents a specific service manifest version be used for the
        attestation report.
    
      - 'manifestblob' (output)
        Used to return the service manifest associated with the attestation
        report.
    
    Only display these new attributes when running under an SVSM.
    
      [ bp: Massage.
       - s/svsm_attestation_call/svsm_attest_call/g ]
    Signed-off-by: default avatarTom Lendacky <thomas.lendacky@amd.com>
    Signed-off-by: default avatarBorislav Petkov (AMD) <bp@alien8.de>
    Link: https://lore.kernel.org/r/965015dce3c76bb8724839d50c5dea4e4b5d598f.1717600736.git.thomas.lendacky@amd.com
    627dc671
sev.h 11.3 KB