KVM: selftests: Add a basic SEV-ES smoke test
[linux-block.git] / tools / testing / selftests / kvm / lib / x86_64 / processor.c
index f1139ba35112801b90713f8ce2612e5feefbe4a4..49288fe10cd34eeb84a252260d4acbc271b1d5ac 100644 (file)
@@ -1072,7 +1072,7 @@ void kvm_get_cpu_address_width(unsigned int *pa_bits, unsigned int *va_bits)
 
 void kvm_init_vm_address_properties(struct kvm_vm *vm)
 {
-       if (vm->subtype == VM_SUBTYPE_SEV) {
+       if (vm->subtype == VM_SUBTYPE_SEV || vm->subtype == VM_SUBTYPE_SEV_ES) {
                vm->arch.c_bit = BIT_ULL(this_cpu_property(X86_PROPERTY_SEV_C_BIT));
                vm->gpa_tag_mask = vm->arch.c_bit;
        }