/arch/arm/mm/ |
D | ioremap.c | 52 struct vm_struct *vm; in find_static_vm_paddr() local 55 vm = &svm->vm; in find_static_vm_paddr() 56 if (!(vm->flags & VM_ARM_STATIC_MAPPING)) in find_static_vm_paddr() 58 if ((vm->flags & VM_ARM_MTYPE_MASK) != VM_ARM_MTYPE(mtype)) in find_static_vm_paddr() 61 if (vm->phys_addr > paddr || in find_static_vm_paddr() 62 paddr + size - 1 > vm->phys_addr + vm->size - 1) in find_static_vm_paddr() 74 struct vm_struct *vm; in find_static_vm_vaddr() local 77 vm = &svm->vm; in find_static_vm_vaddr() 80 if (vm->addr > vaddr) in find_static_vm_vaddr() 83 if (vm->addr <= vaddr && vm->addr + vm->size > vaddr) in find_static_vm_vaddr() [all …]
|
D | mmu.c | 1003 struct vm_struct *vm; in iotable_init() local 1017 vm = &svm->vm; in iotable_init() 1018 vm->addr = (void *)(md->virtual & PAGE_MASK); in iotable_init() 1019 vm->size = PAGE_ALIGN(md->length + (md->virtual & ~PAGE_MASK)); in iotable_init() 1020 vm->phys_addr = __pfn_to_phys(md->pfn); in iotable_init() 1021 vm->flags = VM_IOREMAP | VM_ARM_STATIC_MAPPING; in iotable_init() 1022 vm->flags |= VM_ARM_MTYPE(md->type); in iotable_init() 1023 vm->caller = iotable_init; in iotable_init() 1031 struct vm_struct *vm; in vm_reserve_area_early() local 1039 vm = &svm->vm; in vm_reserve_area_early() [all …]
|
D | mm.h | 69 struct vm_struct vm; member
|
/arch/mips/math-emu/ |
D | ieee754int.h | 54 #define EXPLODESP(v, vc, vs, ve, vm) \ argument 58 vm = SPMANT(v); \ 60 if (vm == 0) \ 62 else if (ieee754_csr.nan2008 ^ !(vm & SP_MBIT(SP_FBITS - 1))) \ 67 if (vm) { \ 74 vm |= SP_HIDDEN_BIT; \ 92 #define EXPLODEDP(v, vc, vs, ve, vm) \ argument 94 vm = DPMANT(v); \ 98 if (vm == 0) \ 100 else if (ieee754_csr.nan2008 ^ !(vm & DP_MBIT(DP_FBITS - 1))) \ [all …]
|
/arch/arm64/kvm/hyp/nvhe/ |
D | pkvm.c | 274 struct kvm_shadow_vm *vm; in get_shadow_vcpu() local 278 vm = find_shadow_by_handle(shadow_handle); in get_shadow_vcpu() 279 if (!vm || vm->nr_vcpus <= vcpu_idx) in get_shadow_vcpu() 281 vcpu = &vm->shadow_vcpus[vcpu_idx]->vcpu; in get_shadow_vcpu() 302 hyp_page_ref_inc(hyp_virt_to_page(vm)); in get_shadow_vcpu() 315 struct kvm_shadow_vm *vm = vcpu->arch.pkvm.shadow_vm; in put_shadow_vcpu() local 319 hyp_page_ref_dec(hyp_virt_to_page(vm)); in put_shadow_vcpu() 402 static void init_shadow_vm(struct kvm *kvm, struct kvm_shadow_vm *vm, in init_shadow_vm() argument 405 vm->host_kvm = kvm; in init_shadow_vm() 406 vm->created_vcpus = nr_vcpus; in init_shadow_vm() [all …]
|
D | mem_protect.c | 41 static void __guest_lock(struct kvm_shadow_vm *vm) in __guest_lock() argument 43 hyp_spin_lock(&vm->lock); in __guest_lock() 44 current_vm = vm; in __guest_lock() 47 static void __guest_unlock(struct kvm_shadow_vm *vm) in __guest_unlock() argument 50 hyp_spin_unlock(&vm->lock); in __guest_unlock() 246 int kvm_guest_prepare_stage2(struct kvm_shadow_vm *vm, void *pgd) in kvm_guest_prepare_stage2() argument 248 struct kvm_s2_mmu *mmu = &vm->arch.mmu; in kvm_guest_prepare_stage2() 252 nr_pages = kvm_pgtable_stage2_pgd_size(vm->arch.vtcr) >> PAGE_SHIFT; in kvm_guest_prepare_stage2() 254 ret = hyp_pool_init(&vm->pool, hyp_virt_to_pfn(pgd), nr_pages, 0); in kvm_guest_prepare_stage2() 258 hyp_spin_lock_init(&vm->lock); in kvm_guest_prepare_stage2() [all …]
|
D | hyp-main.c | 85 struct kvm_shadow_vm *vm = shadow_vcpu->arch.pkvm.shadow_vm; in handle_pvm_entry_psci() local 87 struct kvm_vcpu *vcpu = pvm_mpidr_to_vcpu(vm, cpu_id); in handle_pvm_entry_psci()
|
/arch/arm64/kvm/hyp/include/nvhe/ |
D | pkvm.h | 19 struct kvm_shadow_vm *vm; member 91 struct kvm_vcpu *pvm_mpidr_to_vcpu(struct kvm_shadow_vm *vm, unsigned long mpidr); 93 static inline bool pvm_has_pvmfw(struct kvm_shadow_vm *vm) in pvm_has_pvmfw() argument 95 return vm->arch.pkvm.pvmfw_load_addr != PVMFW_INVALID_LOAD_ADDR; in pvm_has_pvmfw() 98 static inline bool ipa_in_pvmfw_region(struct kvm_shadow_vm *vm, u64 ipa) in ipa_in_pvmfw_region() argument 100 struct kvm_protected_vm *pkvm = &vm->arch.pkvm; in ipa_in_pvmfw_region() 102 if (!pvm_has_pvmfw(vm)) in ipa_in_pvmfw_region() 108 int pkvm_load_pvmfw_pages(struct kvm_shadow_vm *vm, u64 ipa, phys_addr_t phys,
|
D | mem_protect.h | 86 int kvm_guest_prepare_stage2(struct kvm_shadow_vm *vm, void *pgd); 93 void reclaim_guest_pages(struct kvm_shadow_vm *vm, struct kvm_hyp_memcache *mc);
|
/arch/s390/kernel/ |
D | early.c | 85 if (!memcmp(vmms->vm[0].cpi, "\xd2\xe5\xd4", 3)) in detect_machine_type() 87 else if (!memcmp(vmms->vm[0].cpi, "\xa9\x61\xe5\xd4", 4)) in detect_machine_type() 112 struct sysinfo_3_2_2 *vm = (struct sysinfo_3_2_2 *)&sysinfo_page; in setup_arch_string() local 125 if (stsi(vm, 3, 2, 2) == 0 && vm->count) { in setup_arch_string() 126 EBCASC(vm->vm[0].cpi, sizeof(vm->vm[0].cpi)); in setup_arch_string() 127 sprintf(hvstr, "%-16.16s", vm->vm[0].cpi); in setup_arch_string()
|
D | lgr.c | 44 } vm[VM_LEVEL_MAX]; member 106 cpascii(lgr_info->vm[i].name, si->vm[i].name, in lgr_stsi_3_2_2() 107 sizeof(si->vm[i].name)); in lgr_stsi_3_2_2() 108 cpascii(lgr_info->vm[i].cpi, si->vm[i].cpi, in lgr_stsi_3_2_2() 109 sizeof(si->vm[i].cpi)); in lgr_stsi_3_2_2()
|
D | sysinfo.c | 245 if (!convert_ext_name(info->vm[lvl].evmne, info->ext_names[lvl], len)) in print_ext_name() 253 if (uuid_is_null(&info->vm[i].uuid)) in print_uuid() 255 seq_printf(m, "VM%02d UUID: %pUb\n", i, &info->vm[i].uuid); in print_uuid() 265 EBCASC(info->vm[i].name, sizeof(info->vm[i].name)); in stsi_3_2_2() 266 EBCASC(info->vm[i].cpi, sizeof(info->vm[i].cpi)); in stsi_3_2_2() 268 seq_printf(m, "VM%02d Name: %-8.8s\n", i, info->vm[i].name); in stsi_3_2_2() 269 seq_printf(m, "VM%02d Control Program: %-16.16s\n", i, info->vm[i].cpi); in stsi_3_2_2() 270 seq_printf(m, "VM%02d Adjustment: %d\n", i, info->vm[i].caf); in stsi_3_2_2() 271 seq_printf(m, "VM%02d CPUs Total: %d\n", i, info->vm[i].cpus_total); in stsi_3_2_2() 272 seq_printf(m, "VM%02d CPUs Configured: %d\n", i, info->vm[i].cpus_configured); in stsi_3_2_2() [all …]
|
D | setup.c | 879 add_device_randomness(&vmms->vm, sizeof(vmms->vm[0]) * vmms->count); in setup_randomness()
|
/arch/x86/xen/ |
D | p2m.c | 413 static struct vm_struct vm; in xen_vmalloc_p2m_tree() local 419 vm.flags = VM_ALLOC; in xen_vmalloc_p2m_tree() 420 vm.size = ALIGN(sizeof(unsigned long) * max(xen_max_p2m_pfn, p2m_limit), in xen_vmalloc_p2m_tree() 422 vm_area_register_early(&vm, PMD_SIZE * PMDS_PER_MID_PAGE); in xen_vmalloc_p2m_tree() 423 pr_notice("p2m virtual area at %p, size is %lx\n", vm.addr, vm.size); in xen_vmalloc_p2m_tree() 425 xen_max_p2m_pfn = vm.size / sizeof(unsigned long); in xen_vmalloc_p2m_tree() 427 xen_rebuild_p2m_list(vm.addr); in xen_vmalloc_p2m_tree() 429 xen_p2m_addr = vm.addr; in xen_vmalloc_p2m_tree()
|
/arch/arm64/boot/dts/mediatek/ |
D | mt6380.dtsi | 41 mt6380_vm_reg: ldo-vm { 42 regulator-name = "vm";
|
/arch/s390/kvm/ |
D | priv.c | 836 memcpy(&mem->vm[n], &mem->vm[n - 1], sizeof(mem->vm[0])); in handle_stsi_3_2_2() 838 memset(&mem->vm[0], 0, sizeof(mem->vm[0])); in handle_stsi_3_2_2() 839 mem->vm[0].cpus_total = cpus; in handle_stsi_3_2_2() 840 mem->vm[0].cpus_configured = cpus; in handle_stsi_3_2_2() 841 mem->vm[0].cpus_standby = 0; in handle_stsi_3_2_2() 842 mem->vm[0].cpus_reserved = 0; in handle_stsi_3_2_2() 843 mem->vm[0].caf = 1000; in handle_stsi_3_2_2() 844 memcpy(mem->vm[0].name, "KVMguest", 8); in handle_stsi_3_2_2() 845 ASCEBC(mem->vm[0].name, 8); in handle_stsi_3_2_2() 846 memcpy(mem->vm[0].cpi, "KVM/Linux ", 16); in handle_stsi_3_2_2() [all …]
|
/arch/s390/include/asm/ |
D | sysinfo.h | 136 } vm[8]; member
|
/arch/x86/events/ |
D | perf_event.h | 557 #define EVENT_EXTRA_REG(e, ms, m, vm, i) { \ argument 561 .valid_mask = (vm), \ 566 #define INTEL_EVENT_EXTRA_REG(event, msr, vm, idx) \ argument 567 EVENT_EXTRA_REG(event, msr, ARCH_PERFMON_EVENTSEL_EVENT, vm, idx) 569 #define INTEL_UEVENT_EXTRA_REG(event, msr, vm, idx) \ argument 571 ARCH_PERFMON_EVENTSEL_UMASK, vm, idx)
|
/arch/powerpc/kvm/ |
D | Kconfig | 128 kvm/vm#/vcpu#/timings. The overhead is of the order of 30 - 40 141 report is available in debugfs kvm/vm#_vcpu#_timing.
|
/arch/arm/boot/dts/ |
D | mt6323.dtsi | 210 regulator-name = "vm";
|
/arch/arm64/kvm/vgic/ |
D | vgic-v4.c | 440 .vm = &kvm->arch.vgic.its_vm, in kvm_vgic_v4_set_forwarding()
|
/arch/ |
D | Kconfig | 949 /proc/sys/vm/mmap_rnd_bits tunable 984 /proc/sys/vm/mmap_rnd_compat_bits tunable
|
/arch/arm64/boot/dts/nvidia/ |
D | tegra186.dtsi | 1254 reg-names = "hypervisor", "vm";
|
D | tegra194.dtsi | 1397 reg-names = "hypervisor", "vm";
|