Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make vmm type configurable #5

Merged
merged 4 commits into from
May 30, 2024
Merged

make vmm type configurable #5

merged 4 commits into from
May 30, 2024

Conversation

derpsteb
Copy link
Member

Copy of #4, rebased onto main.

Github says #4 has a conflict, so I can't merge it.

jraman567 added 4 commits May 30, 2024 09:44
The LaunchDigest* routines assume that the VMM is EC2. This patch
allows these routines to take the VMM type as a parameter
instead, allowing measurement for QEMU.

Signed-off-by: Jagannathan Raman <jag.raman@oracle.com>
Reviewed-by: Ian Chin Wang <ian.chin.wang@oracle.com>
The launch digest should also include the vcpu_signature to match the
hardware measurement. This patch adds a vcpu_type parameter to the
LaunchDigest* routines, which is used to look up the CPU signature from
the existing CpuSigs table.

If vcpu_type is unspecified, it defaults to using a signature value of
0.

Signed-off-by: Jagannathan Raman <jag.raman@oracle.com>
Reviewed-by: Ian Chin Wang <ian.chin.wang@oracle.com>
OVMF hash formatting for JSON needs to be more consistent. The
Marshaling routing adds a '0x' prefix, which the unmarshaling routine
doesn't account for. This change discards the '0x' prefix when
marshaling.

Signed-off-by: Jagannathan Raman <jag.raman@oracle.com>
Reviewed-by: Ian Chin Wang <ian.chin.wang@oracle.com>
CpuSigs is missing the signature for AMD Genoa processors; this patch
adds it.

Signed-off-by: Jagannathan Raman <jag.raman@oracle.com>
Reviewed-by: Ian Chin Wang <ian.chin.wang@oracle.com>
@derpsteb derpsteb changed the title Sev snp enhancements v1 make vmm type configurable May 30, 2024
@derpsteb derpsteb merged commit 3aff4a8 into main May 30, 2024
2 checks passed
@derpsteb derpsteb mentioned this pull request May 30, 2024
@derpsteb derpsteb deleted the sev-snp-enhancements-v1 branch May 30, 2024 08:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants