This series adds support for enabling VMSA SEV features for SEV-ES and SEV-SNP guests. Since that is already supported for IGVM files, some of that code is moved to generic path and reused.
Debug-swap is already supported in KVM today, while patches for enabling Secure TSC have been accepted for the upcoming kernel release. Changes since RFC (http://lkml.kernel.org/r/cover.1757589490.git.nav...@kernel.org): - Split the first patch up into the initial three patches (Tom) - Fix up indents in qom.json (Markus) - Drop Secure-AVIC flag enablement pending KVM enablement (Tom) - Collect Tom's reviewed-by tag for patch 4 - Naveen Naveen N Rao (AMD) (8): 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: Add support for enabling debug-swap SEV feature target/i386: SEV: Enable use of KVM_SEV_INIT2 for SEV-ES guests 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.h | 4 +- target/i386/sev.c | 126 ++++++++++++++++++++++++++++++++++++++++------ qapi/qom.json | 16 +++++- 3 files changed, 128 insertions(+), 18 deletions(-) base-commit: 6a9fa5ef3230a7d51e0d953a59ee9ef10af705b8 -- 2.51.0