Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/kvm/x86_64/
H A Dsev_init2_tests.c
/linux/tools/testing/selftests/kvm/
H A Dpre_fault_memory_test.c66 static void __test_pre_fault_memory(unsigned long vm_type, bool private) in __test_pre_fault_memory() argument
70 .type = vm_type, in __test_pre_fault_memory()
126 static void test_pre_fault_memory(unsigned long vm_type, bool private) in test_pre_fault_memory() argument
128 if (vm_type && !(kvm_check_cap(KVM_CAP_VM_TYPES) & BIT(vm_type))) { in test_pre_fault_memory()
129 pr_info("Skipping tests for vm_type 0x%lx\n", vm_type); in test_pre_fault_memory()
133 __test_pre_fault_memory(vm_type, private); in test_pre_fault_memory()
/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()
1061 enum vm_type *vm_type; in map_device_va() local
1090 vm_type = (enum vm_type *) userptr; in map_device_va()
1132 vm_type = (enum vm_type *) phys_pg_pack; in map_device_va()
1195 rc = hl_mmu_invalidate_cache_range(hdev, false, *vm_type | MMU_OP_SKIP_LOW_CACHE_INV, in map_device_va()
1206 rc = hl_mmu_prefetch_cache_range(ctx, *vm_type, ctx->asid, ret_vaddr, in map_device_va()
1214 hnode->ptr = vm_type; in map_device_va()
1282 enum vm_type *vm_type; in unmap_device_va() local
[all …]
H A Ddebugfs.c246 enum vm_type *vm_type; in vm_show() local
264 vm_type = hnode->ptr; in vm_show()
266 if (*vm_type == VM_TYPE_USERPTR) { in vm_show()
690 enum vm_type *vm_type; in device_va_to_pa() local
704 vm_type = hnode->ptr; in device_va_to_pa()
706 if (*vm_type == VM_TYPE_USERPTR) { in device_va_to_pa()
H A Ddevice.c2732 enum vm_type *vm_type; in hl_capture_user_mappings() local
2748 vm_type = hnode->ptr; in hl_capture_user_mappings()
2749 if (((*vm_type == VM_TYPE_USERPTR) && is_pmmu) || in hl_capture_user_mappings()
2750 ((*vm_type == VM_TYPE_PHYS_PACK) && !is_pmmu)) in hl_capture_user_mappings()
2770 vm_type = hnode->ptr; in hl_capture_user_mappings()
2771 if ((*vm_type == VM_TYPE_USERPTR) && (is_pmmu)) { in hl_capture_user_mappings()
2776 } else if ((*vm_type == VM_TYPE_PHYS_PACK) && (!is_pmmu)) { in hl_capture_user_mappings()
H A Dhabanalabs.h469 enum vm_type { enum
1988 enum vm_type vm_type; /* must be first */ member
2231 enum vm_type vm_type; /* must be first */ member
/linux/arch/x86/kvm/svm/
H A Dsev.c404 unsigned long vm_type) in __sev_guest_init() argument
408 bool es_active = vm_type != KVM_X86_SEV_VM; in __sev_guest_init()
440 if (vm_type == KVM_X86_SNP_VM) in __sev_guest_init()
453 if (vm_type == KVM_X86_SNP_VM) { in __sev_guest_init()
484 unsigned long vm_type; in sev_guest_init() local
486 if (kvm->arch.vm_type != KVM_X86_DEFAULT_VM) in sev_guest_init()
489 vm_type = (argp->id == KVM_SEV_INIT ? KVM_X86_SEV_VM : KVM_X86_SEV_ES_VM); in sev_guest_init()
495 if (vm_type == KVM_X86_SEV_ES_VM) in sev_guest_init()
498 return __sev_guest_init(kvm, argp, &data, vm_type); in sev_guest_init()
509 if (kvm->arch.vm_type != KVM_X86_SEV_VM && in sev_guest_init2()
[all …]
H A Dsvm.c5014 int type = kvm->arch.vm_type; in svm_vm_init()
/linux/arch/x86/include/asm/
H A Dkvm_host.h1326 u8 vm_type; member
/linux/arch/x86/kvm/mmu/
H A Dmmu.c6077 vcpu->kvm->arch.vm_type == KVM_X86_SW_PROTECTED_VM && in kvm_mmu_page_fault()
7079 return kvm->arch.vm_type == KVM_X86_DEFAULT_VM && in kvm_memslot_flush_zap_all()
/linux/arch/x86/kvm/
H A Dx86.c12690 kvm->arch.vm_type = type; in kvm_arch_init_vm()