Home
last modified time | relevance | path

Searched refs:vm_types (Results 1 – 2 of 2) sorted by relevance

/linux/tools/testing/selftests/kvm/
H A Dguest_memfd_test.c563 unsigned long vm_types, vm_type;
573 vm_types = kvm_check_cap(KVM_CAP_VM_TYPES);
574 if (!vm_types)
575 vm_types = BIT(VM_TYPE_DEFAULT);
577 for_each_set_bit(vm_type, &vm_types, BITS_PER_TYPE(vm_types))
543 unsigned long vm_types, vm_type; main() local
/linux/arch/x86/kvm/svm/
H A Dsev.c3111 u32 vm_types = 0; in sev_hardware_setup() local
3246 vm_types |= BIT(KVM_X86_SEV_VM); in sev_hardware_setup()
3248 vm_types |= BIT(KVM_X86_SEV_ES_VM); in sev_hardware_setup()
3250 vm_types |= BIT(KVM_X86_SNP_VM); in sev_hardware_setup()
3251 vm_types &= sev_firmware_supported_vm_types(); in sev_hardware_setup()
3253 kvm_caps.supported_vm_types |= vm_types; in sev_hardware_setup()
3257 sev_str_feature_state(sev_supported, vm_types & BIT(KVM_X86_SEV_VM)), in sev_hardware_setup()
3261 sev_str_feature_state(sev_es_supported, vm_types & BIT(KVM_X86_SEV_ES_VM)), in sev_hardware_setup()
3265 sev_str_feature_state(sev_snp_supported, vm_types & BIT(KVM_X86_SNP_VM)), in sev_hardware_setup()