KVM_X86_SNP_VM
if (vm_type == KVM_X86_SNP_VM) {
case KVM_X86_SNP_VM:
vm_types |= BIT(KVM_X86_SNP_VM);
sev_str_feature_state(sev_snp_supported, vm_types & BIT(KVM_X86_SNP_VM)),
bool snp_active = vm_type == KVM_X86_SNP_VM;
kvm->arch.vm_type != KVM_X86_SNP_VM)
supported_vm_types |= BIT(KVM_X86_SNP_VM);
return vm->type == KVM_X86_SNP_VM;
return shape.type == KVM_X86_SNP_VM;
TEST_ASSERT_EQ(vm->type, KVM_X86_SNP_VM);
have_snp = kvm_check_cap(KVM_CAP_VM_TYPES) & BIT(KVM_X86_SNP_VM);
test_flags(KVM_X86_SNP_VM);
test_features(KVM_X86_SNP_VM, supported_vmsa_features);
test_init2(KVM_X86_SNP_VM, &(struct kvm_sev_init){});
src_vm = vm_create_barebones_type(KVM_X86_SNP_VM);
dst_vm = vm_create_barebones_type(KVM_X86_SNP_VM);
src_vm = vm_create_barebones_type(KVM_X86_SNP_VM);
if (type == KVM_X86_SNP_VM)
if (type == KVM_X86_SNP_VM)
if (kvm_check_cap(KVM_CAP_VM_TYPES) & BIT(KVM_X86_SNP_VM))
test_sev_smoke(guest_snp_code, KVM_X86_SNP_VM, snp_default_policy());