qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/9] target/i386: SEV: Add support for enabling VMSA SEV features
@ 2025-10-28 10:43 Naveen N Rao (AMD)
  2025-10-28 10:43 ` [PATCH v3 1/9] target/i386: SEV: Generalize handling of SVM_SEV_FEAT_SNP_ACTIVE Naveen N Rao (AMD)
                   ` (8 more replies)
  0 siblings, 9 replies; 16+ messages in thread
From: Naveen N Rao (AMD) @ 2025-10-28 10:43 UTC (permalink / raw)
  To: qemu-devel
  Cc: Paolo Bonzini, Daniel P. Berrangé, Eduardo Habkost,
	Eric Blake, Markus Armbruster, Marcelo Tosatti, Zhao Liu,
	Nikunj A Dadhania, Tom Lendacky, Michael Roth, Roy Hopkins,
	Srikanth Aithal

This series adds support for enabling VMSA SEV features for SEV-ES and 
SEV-SNP guests through the Qemu command line. This is already supported 
for IGVM files, so some of that code has been generalized and reused.

Debug-swap is already supported in KVM today, while patches for enabling 
Secure TSC have been accepted for the upcoming kernel release.

I have tested this with a simple IGVM file generated by the buildigvm 
tool, and it did not show any issues with IGVM compatibility.


- Naveen

---
v2: http://lore.kernel.org/r/cover.1758794556.git.naveen@kernel.org

Changes since v2:
- Clarify that debug-swap property only works for SEV-ES/SEV-SNP guests, 
  and update commit log to clarify the same (Markus)
- Update commit log to clarify need for a new tsc-frequency property and 
  its interaction with the one on the cpu object (Tom)


Naveen N Rao (AMD) (9):
  target/i386: SEV: Generalize handling of SVM_SEV_FEAT_SNP_ACTIVE
  target/i386: SEV: Ensure SEV features are only set through qemu cli or
    IGVM
  target/i386: SEV: Consolidate SEV feature validation to common init
    path
  target/i386: SEV: Validate that SEV-ES is enabled when VMSA features
    are used
  target/i386: SEV: Enable use of KVM_SEV_INIT2 for SEV-ES guests
  target/i386: SEV: Add support for enabling debug-swap SEV feature
  target/i386: SEV: Add support for enabling Secure TSC SEV feature
  target/i386: SEV: Add support for setting TSC frequency for Secure TSC
  target/i386: SEV: Refactor check_sev_features()

 target/i386/sev.h |   4 +-
 target/i386/sev.c | 171 +++++++++++++++++++++++++++++++++++++---------
 qapi/qom.json     |  17 ++++-
 3 files changed, 157 insertions(+), 35 deletions(-)


base-commit: 36076d24f04ea9dc3357c0fbe7bb14917375819c
-- 
2.51.0



^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2025-11-10 10:40 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-28 10:43 [PATCH v3 0/9] target/i386: SEV: Add support for enabling VMSA SEV features Naveen N Rao (AMD)
2025-10-28 10:43 ` [PATCH v3 1/9] target/i386: SEV: Generalize handling of SVM_SEV_FEAT_SNP_ACTIVE Naveen N Rao (AMD)
2025-10-28 10:43 ` [PATCH v3 2/9] target/i386: SEV: Ensure SEV features are only set through qemu cli or IGVM Naveen N Rao (AMD)
2025-10-28 10:43 ` [PATCH v3 3/9] target/i386: SEV: Consolidate SEV feature validation to common init path Naveen N Rao (AMD)
2025-10-28 10:43 ` [PATCH v3 4/9] target/i386: SEV: Validate that SEV-ES is enabled when VMSA features are used Naveen N Rao (AMD)
2025-10-28 10:43 ` [PATCH v3 5/9] target/i386: SEV: Enable use of KVM_SEV_INIT2 for SEV-ES guests Naveen N Rao (AMD)
2025-10-28 10:43 ` [PATCH v3 6/9] target/i386: SEV: Add support for enabling debug-swap SEV feature Naveen N Rao (AMD)
2025-10-28 10:43 ` [PATCH v3 7/9] target/i386: SEV: Add support for enabling Secure TSC " Naveen N Rao (AMD)
2025-10-28 10:43 ` [PATCH v3 8/9] target/i386: SEV: Add support for setting TSC frequency for Secure TSC Naveen N Rao (AMD)
2025-11-06 12:09   ` Markus Armbruster
2025-11-07  8:51     ` Naveen N Rao
2025-11-07  9:49       ` Markus Armbruster
2025-11-10 10:18         ` Naveen N Rao
2025-11-07  9:59       ` Daniel P. Berrangé
2025-11-10 10:12         ` Naveen N Rao
2025-10-28 10:43 ` [PATCH v3 9/9] target/i386: SEV: Refactor check_sev_features() Naveen N Rao (AMD)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).