| /linux/tools/testing/selftests/kvm/x86/ |
| H A D | sev_init2_tests.c | 50 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() 97 void test_flags(uint32_t vm_type) in test_flags() argument 102 test_init2_invalid(vm_type, in test_flags() 107 void test_features(uint32_t vm_type, uint64_t supported_features) in test_features() argument 113 test_init2_invalid(vm_type, in test_features() 117 test_init2(vm_type, in test_features()
|
| /linux/tools/testing/selftests/kvm/ |
| H A D | pre_fault_memory_test.c | 162 static void __test_pre_fault_memory(unsigned long vm_type, bool private) in __test_pre_fault_memory() argument 167 .type = vm_type, in __test_pre_fault_memory() 219 static void test_pre_fault_memory(unsigned long vm_type, bool private) in test_pre_fault_memory() argument 221 if (vm_type && !(kvm_check_cap(KVM_CAP_VM_TYPES) & BIT(vm_type))) { in test_pre_fault_memory() 222 pr_info("Skipping tests for vm_type 0x%lx\n", vm_type); in test_pre_fault_memory() 226 __test_pre_fault_memory(vm_type, private); in test_pre_fault_memory()
|
| H A D | guest_memfd_test.c | 388 static void test_guest_memfd(unsigned long vm_type) in test_guest_memfd() argument 390 struct kvm_vm *vm = vm_create_barebones_type(vm_type); in test_guest_memfd() 474 unsigned long vm_types, vm_type; in main() local 488 for_each_set_bit(vm_type, &vm_types, BITS_PER_TYPE(vm_types)) in main() 489 test_guest_memfd(vm_type); in main()
|
| /linux/drivers/accel/habanalabs/common/ |
| H A D | memory.c | 134 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 D | debugfs.c | 247 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 D | device.c | 2723 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()
|
| H A D | habanalabs.h | 471 enum vm_type { enum 1992 enum vm_type vm_type; /* must be first */ member 2235 enum vm_type vm_type; /* must be first */ member
|
| /linux/arch/x86/kvm/vmx/ |
| H A D | common.h | 62 return kvm->arch.vm_type == KVM_X86_TDX_VM; in is_td()
|
| /linux/arch/x86/kvm/svm/ |
| H A D | sev.c | 201 static int sev_asid_new(struct kvm_sev_info *sev, unsigned long vm_type) in sev_asid_new() argument 211 if (vm_type == KVM_X86_SNP_VM) { in sev_asid_new() 443 unsigned long vm_type) in __sev_guest_init() argument 447 bool es_active = vm_type != KVM_X86_SEV_VM; in __sev_guest_init() 448 bool snp_active = vm_type == KVM_X86_SNP_VM; in __sev_guest_init() 489 ret = sev_asid_new(sev, vm_type); in __sev_guest_init() 537 unsigned long vm_type; in sev_guest_init() local 539 if (kvm->arch.vm_type != KVM_X86_DEFAULT_VM) in sev_guest_init() 542 vm_type = (argp->id == KVM_SEV_INIT ? KVM_X86_SEV_VM : KVM_X86_SEV_ES_VM); in sev_guest_init() 548 if (vm_type == KVM_X86_SEV_ES_VM) in sev_guest_init() [all …]
|
| H A D | svm.c | 3316 char *vm_type; in dump_vmcb() local 3325 vm_type = sev_snp_guest(vcpu->kvm) ? "SEV-SNP" : in dump_vmcb() 3330 vm_type, vcpu->vcpu_id, svm->current_vmcb->ptr, vcpu->arch.last_vmentry_cpu); in dump_vmcb() 5093 int type = kvm->arch.vm_type; in svm_vm_init()
|
| /linux/arch/x86/kvm/ |
| H A D | mmu.h | 306 return kvm->arch.vm_type == KVM_X86_TDX_VM; in kvm_has_mirrored_tdp()
|
| H A D | x86.c | 13228 kvm->arch.vm_type = type; in kvm_arch_init_vm()
|
| /linux/arch/x86/kvm/mmu/ |
| H A D | page_track.c | 175 if (kvm->arch.vm_type == KVM_X86_TDX_VM) in kvm_enable_external_write_tracking()
|
| H A D | mmu.c | 5757 if (vcpu->kvm->arch.vm_type == KVM_X86_TDX_VM) in kvm_mmu_get_tdp_level() 6417 vcpu->kvm->arch.vm_type == KVM_X86_SW_PROTECTED_VM && in kvm_mmu_page_fault() 7431 return kvm->arch.vm_type == KVM_X86_DEFAULT_VM && in kvm_memslot_flush_zap_all()
|
| /linux/arch/x86/include/asm/ |
| H A D | kvm_host.h | 1405 u8 vm_type; member
|