Home
last modified time | relevance | path

Searched +full:vm +full:- +full:map (Results 1 – 25 of 382) sorted by relevance

12345678910>>...16

/Linux-v6.1/drivers/irqchip/
Dirq-gic-v4.c1 // SPDX-License-Identifier: GPL-2.0-only
13 #include <linux/irqchip/arm-gic-v4.h>
25 * agnostic actually means KVM-specific - what were you thinking?).
30 * - Any guest-visible VLPI is backed by a Linux interrupt (and a
36 * - Enabling/disabling a VLPI is done by issuing mask/unmask calls.
38 * - Guest INT/CLEAR commands are implemented through
41 * - The *bizarre* stuff (mapping/unmapping an interrupt to a VLPI, or
45 * confines the crap to a single location. And map/unmap really is
61 * interrupts which are delivered when a VLPI targeting a non-running
70 * - VMs (or rather the VM abstraction that matters to the GIC)
[all …]
/Linux-v6.1/tools/testing/selftests/vm/
Dcompaction_test.c1 // SPDX-License-Identifier: GPL-2.0
25 void *map; member
32 char *cmd = "cat /proc/meminfo | grep -i memfree | grep -o '[0-9]*'"; in read_memory_info()
37 return -1; in read_memory_info()
43 cmd = "cat /proc/meminfo | grep -i hugepagesize | grep -o '[0-9]*'"; in read_memory_info()
48 return -1; in read_memory_info()
62 fd = open("/proc/sys/vm/compact_unevictable_allowed", in prereq()
66 "/proc/sys/vm/compact_unevictable_allowed\n"); in prereq()
67 return -1; in prereq()
72 "/proc/sys/vm/compact_unevictable_allowed\n"); in prereq()
[all …]
/Linux-v6.1/drivers/virt/acrn/
Dmm.c1 // SPDX-License-Identifier: GPL-2.0
18 static int modify_region(struct acrn_vm *vm, struct vm_memory_region_op *region) in modify_region() argument
25 return -ENOMEM; in modify_region()
27 regions->vmid = vm->vmid; in modify_region()
28 regions->regions_num = 1; in modify_region()
29 regions->regions_gpa = virt_to_phys(region); in modify_region()
34 "Failed to set memory region for VM[%u]!\n", vm->vmid); in modify_region()
41 * acrn_mm_region_add() - Set up the EPT mapping of a memory region.
42 * @vm: User VM.
43 * @user_gpa: A GPA of User VM.
[all …]
/Linux-v6.1/Documentation/devicetree/bindings/hwmon/
Dmoortec,mr75203.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Rahul Tanwar <rtanwar@maxlinear.com>
19 *) Temperature Sensor (TS) - used to monitor core temperature (e.g. mr74137).
20 *) Voltage Monitor (VM) - used to monitor voltage levels (e.g. mr74138).
21 *) Process Detector (PD) - used to assess silicon speed (e.g. mr74139).
22 *) Delay Chain - ring oscillator connected to the PD, used to measure IO
25 *) Pre Scaler - provides divide-by-X scaling of input voltage, which can then
26 be presented for VM for measurement within its range (e.g. mr76006 -
[all …]
/Linux-v6.1/tools/testing/selftests/kvm/x86_64/
Dvmx_dirty_log_test.c1 // SPDX-License-Identifier: GPL-2.0
53 GUEST_ASSERT(vmx->vmcs_gpa); in l1_guest_code()
75 struct kvm_vm *vm; in main() local
82 /* Create VM */ in main()
83 vm = vm_create_with_one_vcpu(&vcpu, l1_guest_code); in main()
84 vmx = vcpu_alloc_vmx(vm, &vmx_pages_gva); in main()
86 run = vcpu->run; in main()
89 vm_userspace_mem_region_add(vm, VM_MEM_SRC_ANONYMOUS, in main()
96 * Add an identity map for GVA range [0xc0000000, 0xc0002000). This in main()
99 virt_map(vm, GUEST_TEST_MEM, GUEST_TEST_MEM, TEST_MEM_PAGES); in main()
[all …]
Dnx_huge_pages_test.c1 // SPDX-License-Identifier: GPL-2.0-only
46 * Exit the VM after each memory access so that the userspace component of the
47 * test can make assertions about the pages backing the VM.
77 static void check_2m_page_count(struct kvm_vm *vm, int expected_pages_2m) in check_2m_page_count() argument
81 actual_pages_2m = vm_get_stat(vm, "pages_2m"); in check_2m_page_count()
88 static void check_split_count(struct kvm_vm *vm, int expected_splits) in check_split_count() argument
92 actual_splits = vm_get_stat(vm, "nx_lpage_splits"); in check_split_count()
106 ts.tv_nsec = (reclaim_wait_ms - (ts.tv_sec * 1000)) * 1000000; in wait_for_reclaim()
114 struct kvm_vm *vm; in run_test() local
119 vm = vm_create(1); in run_test()
[all …]
/Linux-v6.1/tools/testing/selftests/kvm/lib/x86_64/
Dvmx.c1 // SPDX-License-Identifier: GPL-2.0-only
8 #include <asm/msr-index.h>
66 * vm - The VM to allocate guest-virtual addresses in.
69 * p_vmx_gva - The guest virtual address for the struct vmx_pages.
75 vcpu_alloc_vmx(struct kvm_vm *vm, vm_vaddr_t *p_vmx_gva) in vcpu_alloc_vmx() argument
77 vm_vaddr_t vmx_gva = vm_vaddr_alloc_page(vm); in vcpu_alloc_vmx()
78 struct vmx_pages *vmx = addr_gva2hva(vm, vmx_gva); in vcpu_alloc_vmx()
81 vmx->vmxon = (void *)vm_vaddr_alloc_page(vm); in vcpu_alloc_vmx()
82 vmx->vmxon_hva = addr_gva2hva(vm, (uintptr_t)vmx->vmxon); in vcpu_alloc_vmx()
83 vmx->vmxon_gpa = addr_gva2gpa(vm, (uintptr_t)vmx->vmxon); in vcpu_alloc_vmx()
[all …]
Dperf_test_util.c1 // SPDX-License-Identifier: GPL-2.0
3 * x86_64-specific extensions to perf_test_util.c.
38 GUEST_ASSERT(vmx->vmcs_gpa); in perf_test_l1_guest_code()
43 rsp = &l2_guest_stack[L2_GUEST_STACK_SIZE - 1]; in perf_test_l1_guest_code()
55 * 513 page tables is enough to identity-map 256 TiB of L2 with 1G in perf_test_nested_pages()
56 * pages and 4-level paging, plus a few pages per-vCPU for data in perf_test_nested_pages()
62 void perf_test_setup_ept(struct vmx_pages *vmx, struct kvm_vm *vm) in perf_test_setup_ept() argument
66 prepare_eptp(vmx, vm, 0); in perf_test_setup_ept()
69 * Identity map the first 4G and the test region with 1G pages so that in perf_test_setup_ept()
73 nested_identity_map_1g(vmx, vm, 0, 0x100000000ULL); in perf_test_setup_ept()
[all …]
/Linux-v6.1/arch/arm/mm/
Dmmu.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 1995-2005 Russell King
34 #include <asm/mach/map.h>
46 * zero-initialized data and COW.
52 * The pmd table for the upper-most set of pages.
143 int i, selected = -1; in early_cachepolicy()
154 if (selected == -1) in early_cachepolicy()
240 [MT_DEVICE_NONSHARED] = { /* ARMv6 non-shared device */
467 pr_warn("Forcing write-allocate cache policy for SMP\n"); in build_mem_type_table()
478 * Pre-ARMv5 CPUs don't have TEX bits. Pre-ARMv6 CPUs or those in build_mem_type_table()
[all …]
/Linux-v6.1/drivers/gpu/drm/i915/selftests/
Di915_vma.c43 if (vma->vm != ctx->vm) { in assert_vma()
44 pr_err("VMA created with wrong VM\n"); in assert_vma()
48 if (vma->size != obj->base.size) { in assert_vma()
50 vma->size, obj->base.size); in assert_vma()
54 if (vma->gtt_view.type != I915_GTT_VIEW_NORMAL) { in assert_vma()
56 vma->gtt_view.type); in assert_vma()
65 struct i915_address_space *vm, in checked_vma_instance() argument
71 vma = i915_vma_instance(obj, vm, view); in checked_vma_instance()
76 if (vma->vm != vm) { in checked_vma_instance()
77 pr_err("VMA's vm [%p] does not match request [%p]\n", in checked_vma_instance()
[all …]
/Linux-v6.1/drivers/gpu/drm/i915/gem/selftests/
Di915_gem_context.c2 * SPDX-License-Identifier: MIT
42 int err = -ENODEV; in live_nop_switch()
52 if (!DRIVER_CAPS(i915)->has_logical_contexts) in live_nop_switch()
61 err = -ENOMEM; in live_nop_switch()
88 i915_request_await_dma_fence(this, &rq->fence); in live_nop_switch()
98 err = -EIO; in live_nop_switch()
106 nctx, engine->name, ktime_to_ns(times[1] - times[0])); in live_nop_switch()
108 err = igt_live_test_begin(&t, i915, __func__, engine->name); in live_nop_switch()
127 i915_request_await_dma_fence(this, &rq->fence); in live_nop_switch()
137 * and submission of our breadcrumbs - in live_nop_switch()
[all …]
Di915_gem_coherency.c2 * SPDX-License-Identifier: MIT
27 void *map; in cpu_set() local
31 i915_gem_object_lock(ctx->obj, NULL); in cpu_set()
32 err = i915_gem_object_prepare_write(ctx->obj, &needs_clflush); in cpu_set()
36 page = i915_gem_object_get_page(ctx->obj, offset >> PAGE_SHIFT); in cpu_set()
37 map = kmap_atomic(page); in cpu_set()
38 cpu = map + offset_in_page(offset); in cpu_set()
48 kunmap_atomic(map); in cpu_set()
49 i915_gem_object_finish_access(ctx->obj); in cpu_set()
52 i915_gem_object_unlock(ctx->obj); in cpu_set()
[all …]
/Linux-v6.1/drivers/gpu/drm/lima/
Dlima_gem.c1 // SPDX-License-Identifier: GPL-2.0 OR MIT
2 /* Copyright 2017-2019 Qiang Yu <yuq825@gmail.com> */
5 #include <linux/iosys-map.h>
9 #include <linux/dma-mapping.h>
21 int lima_heap_alloc(struct lima_bo *bo, struct lima_vm *vm) in lima_heap_alloc() argument
24 struct address_space *mapping = bo->base.base.filp->f_mapping; in lima_heap_alloc()
25 struct device *dev = bo->base.base.dev->dev; in lima_heap_alloc()
26 size_t old_size = bo->heap_size; in lima_heap_alloc()
27 size_t new_size = bo->heap_size ? bo->heap_size * 2 : in lima_heap_alloc()
32 if (bo->heap_size >= bo->base.base.size) in lima_heap_alloc()
[all …]
Dlima_sched.c1 // SPDX-License-Identifier: GPL-2.0 OR MIT
2 /* Copyright 2017-2019 Qiang Yu <yuq825@gmail.com> */
4 #include <linux/iosys-map.h>
34 return -ENOMEM; in lima_sched_slab_init()
43 if (!--lima_fence_slab_refcnt) { in lima_sched_slab_fini()
63 return f->pipe->base.name; in lima_fence_get_timeline_name()
78 call_rcu(&f->base.rcu, lima_fence_release_rcu); in lima_fence_release()
95 fence->pipe = pipe; in lima_fence_create()
96 dma_fence_init(&fence->base, &lima_fence_ops, &pipe->fence_lock, in lima_fence_create()
97 pipe->fence_context, ++pipe->fence_seqno); in lima_fence_create()
[all …]
/Linux-v6.1/sound/pci/ctxfi/
Dctvmem.c1 // SPDX-License-Identifier: GPL-2.0-only
26 * Find or create vm block based on requested @size.
30 get_vm_block(struct ct_vm *vm, unsigned int size, struct ct_atc *atc) in get_vm_block() argument
36 if (size > vm->size) { in get_vm_block()
37 dev_err(atc->card->dev, in get_vm_block()
42 mutex_lock(&vm->lock); in get_vm_block()
43 list_for_each(pos, &vm->unused) { in get_vm_block()
45 if (entry->size >= size) in get_vm_block()
48 if (pos == &vm->unused) in get_vm_block()
51 if (entry->size == size) { in get_vm_block()
[all …]
/Linux-v6.1/include/linux/irqchip/
Darm-gic-v4.h1 /* SPDX-License-Identifier: GPL-2.0-only */
14 * ITSList mechanism to perform inter-ITS synchronization.
35 /* per-vPE VLPI tracking */
67 * vPE and vLPI operations using vpe->col_idx.
76 /* Unique (system-wide) VPE identifier */
88 * @vm: Pointer to the GICv4 notion of a VM
95 struct its_vm *vm; member
117 struct its_vlpi_map *map; member
131 int its_alloc_vcpu_irqs(struct its_vm *vm);
132 void its_free_vcpu_irqs(struct its_vm *vm);
[all …]
/Linux-v6.1/Documentation/mm/
Dovercommit-accounting.rst32 The overcommit policy is set via the sysctl ``vm.overcommit_memory``.
34 The overcommit amount can be set via ``vm.overcommit_ratio`` (percentage)
35 or ``vm.overcommit_kbytes`` (absolute value). These only have an effect
36 when ``vm.overcommit_memory`` is set to 2.
57 For a file backed map
58 | SHARED or READ-only - 0 cost (the file is the map not swap)
59 | PRIVATE WRITABLE - size of mapping per instance
61 For an anonymous or ``/dev/zero`` map
62 | SHARED - size of mapping
63 | PRIVATE READ-only - 0 cost (but of little use)
[all …]
/Linux-v6.1/mm/
Dvmalloc.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * SMP-safe vmalloc/vfree/ioremap, Tigran Aivazian <tigran@veritas.com>, May 2000
47 #include "pgalloc-track.h"
50 static unsigned int __ro_after_init ioremap_max_page_shift = BITS_PER_LONG - 1;
96 llist_for_each_safe(llnode, t, llist_del_all(&p->list)) in free_work()
112 return -ENOMEM; in vmap_pte_range()
144 if ((end - addr) != PMD_SIZE) in vmap_try_huge_pmd()
168 return -ENOMEM; in vmap_pmd_range()
179 return -ENOMEM; in vmap_pmd_range()
180 } while (pmd++, phys_addr += (next - addr), addr = next, addr != end); in vmap_pmd_range()
[all …]
/Linux-v6.1/Documentation/s390/
Dmonreader.rst2 Linux API for read access to z/VM Monitor Records
5 Date : 2004-Nov-26
15 usable from user space and allows read access to the z/VM Monitor Records
16 collected by the `*MONITOR` System Service of z/VM.
21 The z/VM guest on which you want to access this API needs to be configured in
25 This item will use the IUCV device driver to access the z/VM services, so you
26 need a kernel with IUCV support. You also need z/VM version 4.4 or 5.1.
30 location of the monitor DCSS with the Class E privileged CP command Q NSS MAP
33 See also "CP Command and Utility Reference" (SC24-6081-00) for more information
34 on the DEF STOR and Q NSS MAP commands, as well as "Saved Segments Planning
[all …]
/Linux-v6.1/tools/testing/selftests/kvm/aarch64/
Dhypercalls.c1 // SPDX-License-Identifier: GPL-2.0-only
3 /* hypercalls: Check the ARM64's psuedo-firmware bitmap register interface.
6 * via the psuedo-firmware bitmap register. This includes the registers'
7 * read/write behavior before and after the VM has started, and if the
13 #include <linux/arm-smccc.h>
28 uint64_t max_feat_bit; /* Bit that represents the upper limit of the feature-map */
103 smccc_hvc(hc_info->func_id, hc_info->arg1, 0, 0, 0, 0, 0, 0, &res); in guest_test_hvc()
109 res.a0, hc_info->func_id, hc_info->arg1); in guest_test_hvc()
113 res.a0, hc_info->func_id, hc_info->arg1); in guest_test_hvc()
159 vm_userspace_mem_region_add(vcpu->vm, VM_MEM_SRC_ANONYMOUS, ST_GPA_BASE, 1, gpages, 0); in steal_time_init()
[all …]
/Linux-v6.1/Documentation/gpu/rfc/
Di915_vm_bind.rst9 specified address space (VM). These mappings (also referred to as persistent
18 User has to opt-in for VM_BIND mode of binding for an address space (VM)
19 during VM creation time via I915_VM_CREATE_FLAGS_USE_VM_BIND extension.
27 * Multiple Virtual Address (VA) mappings can map to the same physical pages
29 * VA mapping can map to a partial section of the BO (partial binding).
34 ------------------------
38 submissions on that VM and will not be in the working set for currently running
42 -------------------------------
43 A VM in VM_BIND mode will not support older execbuf mode of binding.
52 "dma-buf: Add an API for exporting sync files"
[all …]
/Linux-v6.1/drivers/gpu/drm/amd/amdgpu/
Damdgpu_amdkfd_gpuvm.c1 // SPDX-License-Identifier: MIT
3 * Copyright 2014-2018 Advanced Micro Devices, Inc.
23 #include <linux/dma-buf.h>
38 /* Userptr restore delay, just long enough to allow consecutive VM
67 #define domain_string(domain) domain_bit_to_string[ffs(domain)-1]
76 list_for_each_entry(entry, &mem->attachments, list) in kfd_mem_is_attached()
77 if (entry->bo_va->base.vm == avm) in kfd_mem_is_attached()
84 * System (TTM + userptr) memory - 15/16th System RAM
85 * TTM memory - 3/8th System RAM
93 mem = si.freeram - si.freehigh; in amdgpu_amdkfd_gpuvm_init_mem_limits()
[all …]
/Linux-v6.1/drivers/hwmon/
Dmr75203.c1 // SPDX-License-Identifier: GPL-2.0
8 * voltage monitor(VM) & process detector(PD) modules.
73 /* VM Individual Macro Register */
75 #define VM_SDIF_DONE(vm) (VM_COM_REG_SIZE + 0x34 + 0x200 * (vm)) argument
76 #define VM_SDIF_DATA(vm, ch) \ argument
77 (VM_COM_REG_SIZE + 0x40 + 0x200 * (vm) + 0x4 * (ch))
110 #define PVT_TEMP_MIN_mC -40000
116 #define PVT_SERIES5_J_CONST -100
132 * struct voltage_device - VM single input parameters.
133 * @vm_map: Map channel number to VM index.
[all …]
/Linux-v6.1/drivers/gpu/drm/omapdrm/
Domap_encoder.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2011 Texas Instruments Incorporated - https://www.ti.com/
22 /* The encoder and connector both map to same dssdev.. the encoder
24 * of the hw, and the connector handles the 'read-only' parts, like
44 static void omap_encoder_update_videomode_flags(struct videomode *vm, in omap_encoder_update_videomode_flags() argument
47 if (!(vm->flags & (DISPLAY_FLAGS_DE_LOW | in omap_encoder_update_videomode_flags()
50 vm->flags |= DISPLAY_FLAGS_DE_LOW; in omap_encoder_update_videomode_flags()
52 vm->flags |= DISPLAY_FLAGS_DE_HIGH; in omap_encoder_update_videomode_flags()
55 if (!(vm->flags & (DISPLAY_FLAGS_PIXDATA_POSEDGE | in omap_encoder_update_videomode_flags()
58 vm->flags |= DISPLAY_FLAGS_PIXDATA_POSEDGE; in omap_encoder_update_videomode_flags()
[all …]
/Linux-v6.1/tools/testing/selftests/proc/
D.gitignore1 # SPDX-License-Identifier: GPL-2.0-only
2 /fd-001-lookup
3 /fd-002-posix-eq
4 /fd-003-kthread
5 /proc-fsconfig-hidepid
6 /proc-loadavg-001
7 /proc-multiple-procfs
8 /proc-empty-vm
9 /proc-pid-vm
10 /proc-self-map-files-001
[all …]

12345678910>>...16