Skip to content

i386/sev: Enhanced SMT Protection for SEV-SNP guests

Pratik R. Sampat kvm qemu-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2i386/sev: Introduce Enhanced SMT Protection for SEV-SNPqapi/qom.json target/i386/sev.c target/i386/sev.h+24 -10 replies
2/2i386/sev: Add core scheduling for ESMTP enabled gueststarget/i386/sev.c+47 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] i386/sev: Enhanced SMT Protection for SEV-SNP guests

Enhanced SMT Protection (ESMTP) is an SEV-SNP feature that lets a guest constrain what runs on the sibling thread of the core its vCPUs execute on. Each vCPU's VMSA carries a VCPU_ID and a VCPU_SIBLING_MASK, and hardware admits a VMRUN only when the sibling thread is idle in host mode or is running a vCPU that the mask permits.

This series adds support for to opt-in esmtp support from KVM and engages core scheduling onto the vCPUs to bundle trusted siblings in one group.

Usage
-----
Requires patched Linux and edk2 builds. Launch an SEV-SNP guest with ESMTP enabled on the sev-snp-guest object:

-object sev-snp-guest,id=sev0,cbitpos=51,reduced-phys-bits=1,esmtp=on

ESMTP is opt-in because it carries a performance cost as VMRUN stalls until the sibling runs work from a trusted vCPU or is in idle.

The guest reports the feature in dmesg among the SNP feature names:

  # dmesg | grep -i SEV

Pratik R. Sampat (2):
i386/sev: Introduce Enhanced SMT Protection for SEV-SNP i386/sev: Add core scheduling for ESMTP enabled guests

 qapi/qom.json     |  9 ++++++-
 target/i386/sev.c | 62 +++++++++++++++++++++++++++++++++++++++++++++++
 target/i386/sev.h |  1 +
 3 files changed, 71 insertions(+), 1 deletion(-)
Signature · 1 line
2.43.0