Home
last modified time | relevance | path

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

12345678910>>...20

/openbmc/qemu/tests/qemu-iotests/
H A D03037 qemu_img('create', '-f', iotests.imgfmt,
38 '-o', 'backing_file=%s' % backing_img,
39 '-F', 'raw', mid_img)
40 qemu_img('create', '-f', iotests.imgfmt,
41 '-o', 'backing_file=%s' % mid_img,
42 '-F', iotests.imgfmt, test_img)
43 qemu_io('-f', 'raw', '-c', 'write -P 0x1 0 512', backing_img)
44 qemu_io('-f', iotests.imgfmt, '-c', 'write -P 0x1 524288 512', mid_img)
45 self.vm = iotests.VM().add_drive("blkdebug::" + test_img,
46 "backing.node-name=mid," +
[all …]
H A D27431 size_diff = size_long - size_short
33 def create_chain() -> None:
34 iotests.qemu_img_create('-f', iotests.imgfmt, base, str(size_long))
35 iotests.qemu_img_create('-f', iotests.imgfmt, '-b', base,
36 '-F', iotests.imgfmt, mid, str(size_short))
37 iotests.qemu_img_create('-f', iotests.imgfmt, '-b', mid,
38 '-F', iotests.imgfmt, top, str(size_long))
40 iotests.qemu_io_log('-c', 'write -P 1 0 %d' % size_long, base)
42 def create_vm() -> iotests.VM:
43 vm = iotests.VM()
[all …]
/openbmc/linux/drivers/irqchip/
H A 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 …]
/openbmc/linux/tools/testing/selftests/mm/
H A 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 …]
/openbmc/linux/drivers/virt/acrn/
H A 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 …]
/openbmc/linux/Documentation/devicetree/bindings/hwmon/
H A 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 …]
/openbmc/linux/tools/testing/selftests/kvm/x86_64/
H A 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 …]
H A 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 …]
/openbmc/linux/tools/testing/selftests/kvm/lib/x86_64/
H A 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 …]
H A 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 …]
/openbmc/linux/arch/arm/mm/
H A 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 …]
/openbmc/linux/drivers/gpu/drm/i915/selftests/
H A 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 …]
/openbmc/linux/drivers/gpu/drm/lima/
H A 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 …]
/openbmc/linux/Documentation/mm/
H A 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 …]
/openbmc/linux/sound/pci/ctxfi/
H A 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 …]
/openbmc/linux/include/linux/irqchip/
H A 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 …]
/openbmc/linux/drivers/gpu/drm/i915/gem/selftests/
H A 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 …]
/openbmc/qemu/tests/qtest/
H A Ddbus-display-test.c13 #include "ui/dbus-display1.h"
48 *qts = qtest_init("-display dbus,p2p=yes -name dbus-test"); in test_setup()
52 qtest_qmp_add_client(*qts, "@dbus-display", pair[1]); in test_setup()
63 g_autoptr(QemuDBusDisplay1VMProxy) vm = NULL; in test_dbus_display_vm()
68 vm = QEMU_DBUS_DISPLAY1_VM_PROXY( in test_dbus_display_vm()
73 DBUS_DISPLAY1_ROOT "/VM", in test_dbus_display_vm()
79 qemu_dbus_display1_vm_get_name(QEMU_DBUS_DISPLAY1_VM(vm)), in test_dbus_display_vm()
81 "dbus-test"); in test_dbus_display_vm()
103 if (!test->with_map) { in listener_handle_scanout()
104 g_main_loop_quit(test->loop); in listener_handle_scanout()
[all …]
/openbmc/linux/Documentation/arch/s390/
H A 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 …]
/openbmc/linux/mm/
H A Dvmalloc.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * SMP-safe vmalloc/vfree/ioremap, Tigran Aivazian <tigran@veritas.com>, May 2000
50 #include "pgalloc-track.h"
53 static unsigned int __ro_after_init ioremap_max_page_shift = BITS_PER_LONG - 1;
104 return -ENOMEM; in vmap_pte_range()
136 if ((end - addr) != PMD_SIZE) in vmap_try_huge_pmd()
160 return -ENOME in vmap_pmd_range()
2441 vm_area_page_order(struct vm_struct * vm) vm_area_page_order() argument
2450 set_vm_area_page_order(struct vm_struct * vm,unsigned int order) set_vm_area_page_order() argument
2469 vm_area_add_early(struct vm_struct * vm) vm_area_add_early() argument
2497 vm_area_register_early(struct vm_struct * vm,size_t align) vm_area_register_early() argument
2558 setup_vmalloc_vm_locked(struct vm_struct * vm,struct vmap_area * va,unsigned long flags,const void * caller) setup_vmalloc_vm_locked() argument
2568 setup_vmalloc_vm(struct vm_struct * vm,struct vmap_area * va,unsigned long flags,const void * caller) setup_vmalloc_vm() argument
2576 clear_vm_uninitialized_flag(struct vm_struct * vm) clear_vm_uninitialized_flag() argument
2704 struct vm_struct *vm; remove_vm_area() local
2826 struct vm_struct *vm; vfree() local
2879 struct vm_struct *vm; vunmap() local
3754 struct vm_struct *vm; vread_iter() local
4292 struct vm_struct *vm; vmalloc_dump_obj() local
[all...]
/openbmc/linux/Documentation/gpu/rfc/
H A 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 …]
/openbmc/u-boot/drivers/bios_emulator/
H A Datibios.c9 * Copyright (C) 1991-2004 SciTech Software, Inc. All rights reserved.
45 * Jason ported this file to u-boot to run the ATI video card
46 * BIOS in u-boot.
77 return vga_info->BIOSImage + flat - 0xc0000; in bios_ptr()
79 return buf + (flat - vbe_offset); in bios_ptr()
88 struct vesa_mode_info *vm; in atibios_debug_mode() local
95 regs->e.eax = VESA_GET_INFO; in atibios_debug_mode()
96 regs->e.esi = buffer_seg; in atibios_debug_mode()
97 regs->e.edi = buffer_adr; in atibios_debug_mode()
100 strcpy(info->signature, "VBE2"); in atibios_debug_mode()
[all …]
/openbmc/linux/tools/testing/selftests/kvm/aarch64/
H A 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
12 #include <linux/arm-smccc.h>
27 uint64_t max_feat_bit; /* Bit that represents the upper limit of the feature-map */
102 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, stage); in guest_test_hvc()
114 res.a0, hc_info->func_id, hc_info->arg1, stage); in guest_test_hvc()
160 vm_userspace_mem_region_add(vcpu->vm, VM_MEM_SRC_ANONYMOUS, ST_GPA_BASE, 1, gpages, 0); in steal_time_init()
[all …]
/openbmc/linux/tools/testing/selftests/proc/
H A 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 …]
/openbmc/linux/tools/testing/selftests/kvm/include/
H A Dmemstress.h1 // SPDX-License-Identifier: GPL-2.0
33 struct kvm_vm *vm; member
47 /* The vCPU=>pCPU pinning map. Only valid if pin_vcpus is true. */
62 void memstress_destroy_vm(struct kvm_vm *vm);
64 void memstress_set_write_percent(struct kvm_vm *vm, uint32_t write_percent);
65 void memstress_set_random_seed(struct kvm_vm *vm, uint32_t random_seed);
66 void memstress_set_random_access(struct kvm_vm *vm, bool random_access);
73 void memstress_setup_nested(struct kvm_vm *vm, int nr_vcpus, struct kvm_vcpu *vcpus[]);
75 void memstress_enable_dirty_logging(struct kvm_vm *vm, int slots);
76 void memstress_disable_dirty_logging(struct kvm_vm *vm, int slots);
[all …]

12345678910>>...20