v1 -> v2: 1. Patch# 2 is the new addition. It adds the hardware-enforced cache coherency as a CPUID feature. 2. Patch# 3 (which was pach# 2 in v1) also adds the check to __set_memory_enc_dec() so that cache/TLB is flushed only if hardware doesn't enforce cache coherency. [PATCH 1/3 v2] KVM: SVM: Replace numeric value for SME CPUID leaf with a [PATCH 2/3 v2] KVM: SVM: Add hardware-enforced cache coherency as a [PATCH 3/3 v2] KVM: SVM: Don't flush cache of encrypted pages if arch/x86/boot/compressed/mem_encrypt.S | 5 +++-- arch/x86/include/asm/cpufeatures.h | 6 ++++++ arch/x86/kernel/cpu/amd.c | 5 ++++- arch/x86/kernel/cpu/scattered.c | 4 ++-- arch/x86/kvm/cpuid.c | 2 +- arch/x86/kvm/svm/sev.c | 3 ++- arch/x86/kvm/svm/svm.c | 4 ++-- arch/x86/mm/mem_encrypt_identity.c | 4 ++-- arch/x86/mm/pat/set_memory.c | 6 ++++-- 9 files changed, 26 insertions(+), 13 deletions(-) Krish Sadhukhan (3): KVM: SVM: Replace numeric value for SME CPUID leaf with a #define KVM: SVM: Add hardware-enforced cache coherency as a CPUID feature KVM: SVM: Don't flush cache of encrypted pages if hardware enforces cache coherenc