On Fri, May 13, 2022 at 08:32:38AM -0500, Tom Lendacky wrote:
On 5/13/22 08:22, Michael Roth wrote:
The Confidential Computing blob defined here is intended to match the definition defined by linux guest kernel. Previously, both definitions relied on natural alignment, but that relies on both OVMF and kernel being compiled as 64-bit. While there aren't currently any plans to enable SNP support for 32-bit compilations, the kernel definition has since been updated to use explicit padding/reserved fields to avoid this dependency. Update OVMF to match that definition.
No functional changes (for currently-supported environments, at least).
Signed-off-by: Michael Roth <michael.roth@amd.com>
Minor nit comment below that can be ignored if desired.
Reviewed-by: Tom Lendacky <thomas.lendacky@amd.com>
Not to be picky, but I would have left this as Reserved1 and then made the below entries Reserved2 and Reserved3.
Hi Tom,
I updated those to match how the reserved fields are numbered in the kernel since it seemed like it could cause confusion otherwise. I should have noted that in the commit log though as it's a somewhat unrelated change.