KVM_X86_SEV_ES_VM
kvm_caps.supported_vm_types |= BIT(KVM_X86_SEV_ES_VM);
vm_type = (argp->id == KVM_SEV_INIT ? KVM_X86_SEV_VM : KVM_X86_SEV_ES_VM);
if (vm_type == KVM_X86_SEV_ES_VM)
kvm->arch.vm_type != KVM_X86_SEV_ES_VM &&
(type == KVM_X86_SEV_ES_VM || type == KVM_X86_SNP_VM);
return is_sev_snp_vm(vm) || vm->type == KVM_X86_SEV_ES_VM;
TEST_ASSERT_EQ(vm->type, KVM_X86_SEV_ES_VM);
TEST_ASSERT(have_sev_es == !!(kvm_check_cap(KVM_CAP_VM_TYPES) & BIT(KVM_X86_SEV_ES_VM)),
kvm_check_cap(KVM_CAP_VM_TYPES), 1 << KVM_X86_SEV_ES_VM);
test_flags(KVM_X86_SEV_ES_VM);
test_features(KVM_X86_SEV_ES_VM, supported_vmsa_features);
test_init2(KVM_X86_SEV_ES_VM, &(struct kvm_sev_init){});
test_sev_smoke(guest_sev_es_code, KVM_X86_SEV_ES_VM, SEV_POLICY_ES);