KVM_X86_SEV_VM
kvm_caps.supported_vm_types |= BIT(KVM_X86_SEV_VM);
bool es_active = vm_type != KVM_X86_SEV_VM;
vm_type = (argp->id == KVM_SEV_INIT ? KVM_X86_SEV_VM : KVM_X86_SEV_ES_VM);
if (kvm->arch.vm_type != KVM_X86_SEV_VM &&
return is_sev_es_vm(vm) || vm->type == KVM_X86_SEV_VM;
TEST_ASSERT_EQ(vm->type, KVM_X86_SEV_VM);
TEST_ASSERT(have_sev == !!(kvm_check_cap(KVM_CAP_VM_TYPES) & BIT(KVM_X86_SEV_VM)),
kvm_check_cap(KVM_CAP_VM_TYPES), 1 << KVM_X86_SEV_VM);
TEST_REQUIRE(kvm_check_cap(KVM_CAP_VM_TYPES) & BIT(KVM_X86_SEV_VM));
test_flags(KVM_X86_SEV_VM);
test_features(KVM_X86_SEV_VM, 0);
test_init2(KVM_X86_SEV_VM, &(struct kvm_sev_init){});
if (type == KVM_X86_SEV_VM)
test_sev_smoke(guest_sev_code, KVM_X86_SEV_VM, 0);