AMDESE / sev-guest

Tools, scripts, and configuration files necessary to demonstrate an end-to-end remote attestation example with SEV-SNP.
Apache License 2.0
56 stars 28 forks source link

Update ioctls in guest applications #7

Closed MatthiasGr closed 2 years ago

MatthiasGr commented 2 years ago

Some applications fail to compile when using the newer kernel and header files from sev-snp-v10 branch of the AMDESE/linux repository, which is also listed as the current stable guest kernel here . Both the sev-guest-get-report and sev-guest-kdf binaries fail to build because they use a different (outdated) ioctl interface to communicate with the sev-guest driver.

This pull request updates both programs to use the ioctl interface described in the sev-snp-v10 branch. As a side note, I could not get the sev-host-set-cert-chain binaries to build as the SEV_SET_EXT_CONFIG command is not implemented in sev-snp-v10.

jlarrew commented 2 years ago

Thanks for the fix, MatthiasGr!