Home
last modified time | relevance | path

Searched refs:vm_type (Results 1 – 13 of 13) sorted by relevance

/linux/tools/testing/selftests/kvm/x86/
H A Dsev_init2_tests.c50 static void test_init2(unsigned long vm_type, struct kvm_sev_init *init) in test_init2() argument
55 vm = vm_create_barebones_type(vm_type); in test_init2()
63 static void test_init2_invalid(unsigned long vm_type, struct kvm_sev_init *init, const char *msg) in test_init2_invalid() argument
68 vm = vm_create_barebones_type(vm_type); in test_init2_invalid()
93 void test_flags(u32 vm_type) in test_vm_types()
98 test_init2_invalid(vm_type, in test_flags()
103 void test_features(u32 vm_type, u64 supported_features) in test_flags()
109 test_init2_invalid(vm_type, in test_features()
113 test_init2(vm_type, in test_features()
97 test_flags(u32 vm_type) test_flags() argument
107 test_features(u32 vm_type,u64 supported_features) test_features() argument
/linux/tools/testing/selftests/kvm/
H A Dpre_fault_memory_test.c178 unsigned long vm_type; in __test_pre_fault_memory()
190 .type = p->vm_type, in __test_pre_fault_memory()
267 static void test_pre_fault_memory(unsigned long vm_type, enum vm_mem_backing_src_type backing_src,
271 .vm_type = vm_type,
276 if (vm_type && !(kvm_check_cap(KVM_CAP_VM_TYPES) & BIT(vm_type))) {
277 pr_info("Skipping tests for vm_type 0x%lx\n", vm_type);
162 __test_pre_fault_memory(unsigned long vm_type,bool private) __test_pre_fault_memory() argument
215 test_pre_fault_memory(unsigned long vm_type,bool private) test_pre_fault_memory() argument
H A Dguest_memfd_test.c472 static void test_guest_memfd(unsigned long vm_type)
474 struct kvm_vm *vm = vm_create_barebones_type(vm_type); in guest_code()
563 unsigned long vm_types, vm_type;
577 for_each_set_bit(vm_type, &vm_types, BITS_PER_TYPE(vm_types))
578 test_guest_memfd(vm_type);
452 test_guest_memfd(unsigned long vm_type) test_guest_memfd() argument
543 unsigned long vm_types, vm_type; main() local
/linux/drivers/accel/habanalabs/common/
H A Dmemory.c134 phys_pg_pack->vm_type = VM_TYPE_PHYS_PACK; in alloc_device_memory()
243 userptr->vm_type = VM_TYPE_USERPTR; in dma_map_host_va()
857 phys_pg_pack->vm_type = userptr->vm_type; in init_phys_pg_pack_from_userptr()
1060 enum vm_type *vm_type; in map_device_va()
1089 vm_type = (enum vm_type *) userptr; in map_device_va()
1131 vm_type = (enum vm_type *) phys_pg_pac in map_device_va()
1061 enum vm_type *vm_type; map_device_va() local
1282 enum vm_type *vm_type; unmap_device_va() local
[all...]
H A Ddebugfs.c247 enum vm_type *vm_type; in vm_show() local
265 vm_type = hnode->ptr; in vm_show()
267 if (*vm_type == VM_TYPE_USERPTR) { in vm_show()
883 enum vm_type *vm_type; in device_va_to_pa() local
897 vm_type = hnode->ptr; in device_va_to_pa()
899 if (*vm_type == VM_TYPE_USERPTR) { in device_va_to_pa()
H A Ddevice.c2723 enum vm_type *vm_type; in hl_capture_user_mappings() local
2739 vm_type = hnode->ptr; in hl_capture_user_mappings()
2740 if (((*vm_type == VM_TYPE_USERPTR) && is_pmmu) || in hl_capture_user_mappings()
2741 ((*vm_type == VM_TYPE_PHYS_PACK) && !is_pmmu)) in hl_capture_user_mappings()
2761 vm_type = hnode->ptr; in hl_capture_user_mappings()
2762 if ((*vm_type == VM_TYPE_USERPTR) && (is_pmmu)) { in hl_capture_user_mappings()
2767 } else if ((*vm_type == VM_TYPE_PHYS_PACK) && (!is_pmmu)) { in hl_capture_user_mappings()
/linux/arch/x86/kvm/svm/
H A Dsev.c265 static int sev_asid_new(struct kvm_sev_info *sev, unsigned long vm_type) in sev_asid_new() argument
274 if (vm_type == KVM_X86_SNP_VM) { in sev_asid_new()
507 unsigned long vm_type) in __sev_guest_init() argument
511 bool es_active = vm_type != KVM_X86_SEV_VM; in __sev_guest_init()
512 bool snp_active = vm_type == KVM_X86_SNP_VM; in __sev_guest_init()
553 ret = sev_asid_new(sev, vm_type); in __sev_guest_init()
601 unsigned long vm_type; in sev_guest_init()
603 if (kvm->arch.vm_type != KVM_X86_DEFAULT_VM) in sev_guest_init()
606 vm_type = (argp->id == KVM_SEV_INIT ? KVM_X86_SEV_VM : KVM_X86_SEV_ES_VM); in sev_guest_init()
612 if (vm_type in sev_guest_init()
600 unsigned long vm_type; sev_guest_init() local
[all...]
H A Dsvm.c3538 char *vm_type; in dump_vmcb()
3547 vm_type = is_sev_snp_guest(vcpu) ? "SEV-SNP" : in dump_vmcb()
3552 vm_type, vcpu->vcpu_id, svm->current_vmcb->ptr, vcpu->arch.last_vmentry_cpu); in dump_vmcb()
3426 char *vm_type; dump_vmcb() local
/linux/arch/x86/kvm/mmu/
H A Dpage_track.c197 if (kvm->arch.vm_type == KVM_X86_TDX_VM) in kvm_enable_external_write_tracking()
H A Dmmu.c6681 vcpu->kvm->arch.vm_type == KVM_X86_SW_PROTECTED_VM && in __kvm_mmu_invalidate_addr()
7720 bool zap_all = kvm->arch.vm_type == KVM_X86_DEFAULT_VM && in __set_nx_huge_pages()
/linux/arch/x86/kvm/
H A Dmmu.h402 return kvm->arch.vm_type == KVM_X86_TDX_VM; in kvm_has_mirrored_tdp()
H A Dx86.c9954 kvm->arch.vm_type = type; in __x86_set_memory_region()
/linux/arch/x86/include/asm/
H A Dkvm_host.h1165 u8 vm_type;
1157 u8 vm_type; global() member