As discussed here[1]: Refactor SEV's GHCB version handling to improve clarity and ABI stability. * Set the default GHCB version (2) for SEV-ES guests earlier in the flow * Remove the GHCB_VERSION_DEFAULT macro in favor of hardcoded values to prevent potential ABI issues * Improve comments to better explain version requirements. * Enforce minimum GHCB version for SEV-SNP guests. Patches are based on kvm/next 1. https://lore.kernel.org/kvm/aHp9EGExmlq9Kx9T@xxxxxxxxxx/ Nikunj A Dadhania (2): KVM: SEV: Drop GHCB_VERSION_DEFAULT and open code it KVM: SEV: Enforce minimum GHCB version requirement for SEV-SNP guests arch/x86/kvm/svm/sev.c | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) base-commit: 196d9e72c4b0bd68b74a4ec7f52d248f37d0f030 -- 2.43.0