Home
last modified time | relevance | path

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

12345678910>>...30

/kernel/linux/linux-5.10/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>
18 - description: PVT common registers
19 - description: PVT temprature sensor registers
20 - description: PVT process detector registers
21 - description: PVT voltage monitor registers
23 reg-names:
25 - const: common
[all …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-6.6/tools/testing/selftests/mm/
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()
65 ksft_print_msg("Failed to open /proc/sys/vm/compact_unevictable_allowed: %s\n", in prereq()
67 return -1; in prereq()
71 ksft_print_msg("Failed to read from /proc/sys/vm/compact_unevictable_allowed: %s\n", in prereq()
[all …]
/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-5.10/tools/testing/selftests/kvm/x86_64/
Dvmx_dirty_log_test.c1 // SPDX-License-Identifier: GPL-2.0
55 GUEST_ASSERT(vmx->vmcs_gpa); in l1_guest_code()
76 struct kvm_vm *vm; in main() local
83 /* Create VM */ in main()
84 vm = vm_create_default(VCPU_ID, 0, l1_guest_code); in main()
85 vcpu_set_cpuid(vm, VCPU_ID, kvm_get_supported_cpuid()); in main()
86 vmx = vcpu_alloc_vmx(vm, &vmx_pages_gva); in main()
87 vcpu_args_set(vm, VCPU_ID, 1, vmx_pages_gva); in main()
88 run = vcpu_state(vm, VCPU_ID); in main()
91 vm_userspace_mem_region_add(vm, VM_MEM_SRC_ANONYMOUS, in main()
[all …]
/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-6.6/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()
88 vm_userspace_mem_region_add(vm, VM_MEM_SRC_ANONYMOUS, in main()
95 * Add an identity map for GVA range [0xc0000000, 0xc0002000). This in main()
98 virt_map(vm, GUEST_TEST_MEM, GUEST_TEST_MEM, TEST_MEM_PAGES); in main()
101 * ... pages in the L2 GPA range [0xc0001000, 0xc0003000) will map to in main()
[all …]
Dnx_huge_pages_test.c1 // SPDX-License-Identifier: GPL-2.0-only
44 * Exit the VM after each memory access so that the userspace component of the
45 * test can make assertions about the pages backing the VM.
75 static void check_2m_page_count(struct kvm_vm *vm, int expected_pages_2m) in check_2m_page_count() argument
79 actual_pages_2m = vm_get_stat(vm, "pages_2m"); in check_2m_page_count()
86 static void check_split_count(struct kvm_vm *vm, int expected_splits) in check_split_count() argument
90 actual_splits = vm_get_stat(vm, "nx_lpage_splits"); in check_split_count()
104 ts.tv_nsec = (reclaim_wait_ms - (ts.tv_sec * 1000)) * 1000000; in wait_for_reclaim()
112 struct kvm_vm *vm; in run_test() local
117 vm = vm_create(1); in run_test()
[all …]
/kernel/linux/linux-5.10/arch/arm/mm/
Dmmu.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 1995-2005 Russell King
35 #include <asm/mach/map.h>
47 * zero-initialized data and COW.
53 * The pmd table for the upper-most set of pages.
144 int i, selected = -1; in early_cachepolicy()
155 if (selected == -1) in early_cachepolicy()
241 [MT_DEVICE_NONSHARED] = { /* ARMv6 non-shared device */
449 pr_warn("Forcing write-allocate cache policy for SMP\n"); in build_mem_type_table()
460 * Pre-ARMv5 CPUs don't have TEX bits. Pre-ARMv6 CPUs or those in build_mem_type_table()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/selftests/
Di915_vma.c42 if (vma->vm != rcu_access_pointer(ctx->vm)) { in assert_vma()
43 pr_err("VMA created with wrong VM\n"); in assert_vma()
47 if (vma->size != obj->base.size) { in assert_vma()
49 vma->size, obj->base.size); in assert_vma()
53 if (vma->ggtt_view.type != I915_GGTT_VIEW_NORMAL) { in assert_vma()
55 vma->ggtt_view.type); in assert_vma()
64 struct i915_address_space *vm, in checked_vma_instance() argument
70 vma = i915_vma_instance(obj, vm, view); in checked_vma_instance()
75 if (vma->vm != vm) { in checked_vma_instance()
76 pr_err("VMA's vm [%p] does not match request [%p]\n", in checked_vma_instance()
[all …]
/kernel/linux/linux-6.6/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 …]
Dmemstress.c1 // SPDX-License-Identifier: GPL-2.0
3 * x86_64-specific extensions to memstress.c.
38 GUEST_ASSERT(vmx->vmcs_gpa); in memstress_l1_guest_code()
43 rsp = &l2_guest_stack[L2_GUEST_STACK_SIZE - 1]; in memstress_l1_guest_code()
55 * 513 page tables is enough to identity-map 256 TiB of L2 with 1G in memstress_nested_pages()
56 * pages and 4-level paging, plus a few pages per-vCPU for data in memstress_nested_pages()
62 void memstress_setup_ept(struct vmx_pages *vmx, struct kvm_vm *vm) in memstress_setup_ept() argument
66 prepare_eptp(vmx, vm, 0); in memstress_setup_ept()
69 * Identity map the first 4G and the test region with 1G pages so that in memstress_setup_ept()
73 nested_identity_map_1g(vmx, vm, 0, 0x100000000ULL); in memstress_setup_ept()
[all …]
/kernel/linux/linux-6.6/arch/arm/mm/
Dmmu.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 1995-2005 Russell King
35 #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 …]
/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-5.10/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
116 struct its_vlpi_map *map; member
130 int its_alloc_vcpu_irqs(struct its_vm *vm);
131 void its_free_vcpu_irqs(struct its_vm *vm);
[all …]
/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/mm/
Dvmalloc.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * SMP-safe vmalloc/vfree/ioremap, Tigran Aivazian <tigran@veritas.com>, May 2000
43 #include "pgalloc-track.h"
66 llist_for_each_safe(llnode, t, llist_del_all(&p->list)) in free_work()
157 * unmap_kernel_range_noflush - unmap kernel VM area
158 * @start: start of the VM area to unmap
159 * @size: size of the VM area to unmap
161 * Unmap PFN_UP(@size) pages at @addr. The VM area @addr and @size specify
166 * for calling flush_cache_vunmap() on to-be-mapped areas before calling this
205 return -ENOMEM; in vmap_pte_range()
[all …]
/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-6.6/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()
96 intel_gt_set_wedged(engine->gt); 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()
[all …]
/kernel/linux/linux-6.6/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 */
69 * vPE and vLPI operations using vpe->col_idx.
78 /* Unique (system-wide) VPE identifier */
90 * @vm: Pointer to the GICv4 notion of a VM
97 struct its_vm *vm; member
119 struct its_vlpi_map *map; member
133 int its_alloc_vcpu_irqs(struct its_vm *vm);
134 void its_free_vcpu_irqs(struct its_vm *vm);
[all …]
/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gem/selftests/
Di915_gem_context.c2 * SPDX-License-Identifier: MIT
33 return rcu_dereference_protected(ctx->vm, true); in ctx_vm()
45 int err = -ENODEV; in live_nop_switch()
55 if (!DRIVER_CAPS(i915)->has_logical_contexts) in live_nop_switch()
64 err = -ENOMEM; in live_nop_switch()
91 i915_request_await_dma_fence(this, &rq->fence); in live_nop_switch()
99 intel_gt_set_wedged(&i915->gt); in live_nop_switch()
101 err = -EIO; in live_nop_switch()
109 nctx, engine->name, ktime_to_ns(times[1] - times[0])); in live_nop_switch()
111 err = igt_live_test_begin(&t, i915, __func__, engine->name); in live_nop_switch()
[all …]

12345678910>>...30