KVM_X86_SEV_VM
case KVM_X86_SEV_VM:
vm_types |= BIT(KVM_X86_SEV_VM);
sev_str_feature_state(sev_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 &&
supported_vm_types |= BIT(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_sev_dbg(KVM_X86_SEV_VM, 0);
have_sev = 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)
if (kvm_check_cap(KVM_CAP_VM_TYPES) & BIT(KVM_X86_SEV_VM))
test_sev_smoke(guest_sev_code, KVM_X86_SEV_VM, 0);