You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix: Update FFI WrappedVlekHashstick and SnpVlekLoad
WrappedVlekHashstick now owns the VLEK byte data ([u8; 432]) instead of borrowing it via a reference.
This change ensures that the structure is self-contained and safely passed to the kernel, which expects a pointer to a buffer that includes the full hashstick data.
Referencing the buffer (even with careful lifetime management) was not working reliably and added complexity. Owning the data is simpler, safer, and easier to maintain.
SnpVlekLoad.len is now correctly set to the size of the SnpVlekLoad struct, not the size of the hashstick.
According to the SEV-SNP spec, this field represents the size of the command buffer, not the size of the payload.
Signed-off-by: DGonzalezVillal <Diego.GonzalezVillalobos@amd.com>
0 commit comments