/openbmc/linux/drivers/virtio/ |
H A D | virtio_mem.c | 847 return start < vm->addr + vm->region_size && vm->addr < start + size; in virtio_mem_overlaps_range() 857 return start >= vm->addr && start + size <= vm->addr + vm->region_size; in virtio_mem_contains_range() 1375 sg_init_one(&sg_req, &vm->req, sizeof(vm->req)); in virtio_mem_send_request() 1391 return virtio16_to_cpu(vm->vdev, vm->resp.type); in virtio_mem_send_request() 2425 if (vm->requested_size > vm->plugged_size) { in virtio_mem_run_wq() 2426 diff = vm->requested_size - vm->plugged_size; in virtio_mem_run_wq() 2550 vm->sbm.next_mb_id = vm->sbm.first_mb_id; in virtio_mem_init_hotplug() 2572 vm->bbm.next_bb_id = vm->bbm.first_bb_id; in virtio_mem_init_hotplug() 2742 dev_info(&vm->vdev->dev, "nid: %d", vm->nid); in virtio_mem_init() 2765 vm->parent_resource = __request_mem_region(vm->addr, vm->region_size, in virtio_mem_create_resource() [all …]
|
/openbmc/qemu/tests/avocado/ |
H A D | mem-addr-space-check.py | 48 self.vm.launch() 49 self.vm.wait() 68 self.vm.launch() 69 self.vm.wait() 87 self.vm.launch() 107 self.vm.launch() 149 self.vm.wait() 179 self.vm.wait() 202 self.vm.wait() 288 self.vm.wait() [all …]
|
/openbmc/linux/tools/testing/selftests/kvm/lib/aarch64/ |
H A D | processor.c | 97 size_t nr_pages = page_align(vm, ptrs_per_pgd(vm) * 8) / vm->page_size; in virt_arch_pgd_alloc() 126 paddr, vm->max_gfn, vm->page_size); in _virt_pg_map() 128 ptep = addr_gpa2hva(vm, vm->pgd) + pgd_index(vm, vaddr) * 8; in _virt_pg_map() 134 ptep = addr_gpa2hva(vm, pte_addr(vm, *ptep)) + pud_index(vm, vaddr) * 8; in _virt_pg_map() 139 ptep = addr_gpa2hva(vm, pte_addr(vm, *ptep)) + pmd_index(vm, vaddr) * 8; in _virt_pg_map() 167 ptep = addr_gpa2hva(vm, vm->pgd) + pgd_index(vm, gva) * 8; in virt_get_pte_hva() 173 ptep = addr_gpa2hva(vm, pte_addr(vm, *ptep)) + pud_index(vm, gva) * 8; in virt_get_pte_hva() 178 ptep = addr_gpa2hva(vm, pte_addr(vm, *ptep)) + pmd_index(vm, gva) * 8; in virt_get_pte_hva() 183 ptep = addr_gpa2hva(vm, pte_addr(vm, *ptep)) + pte_index(vm, gva) * 8; in virt_get_pte_hva() 232 for (pgd = vm->pgd; pgd < vm->pgd + ptrs_per_pgd(vm) * 8; pgd += 8) { in virt_arch_dump() [all …]
|
/openbmc/qemu/tests/qemu-iotests/ |
H A D | 206 | 45 vm.launch() 58 vm.shutdown() 71 vm.launch() 102 vm.launch() 130 vm.launch() 155 vm.launch() 182 vm.launch() 204 vm.launch() 217 vm.launch() 239 vm.launch() [all …]
|
H A D | 219 | 29 def pause_wait(vm, job_id): argument 32 result = vm.qmp('query-jobs') 38 def test_pause_resume(vm): argument 46 pause_wait(vm, 'job0') 82 result = vm.qmp('query-jobs') 100 test_pause_resume(vm) 123 test_pause_resume(vm) 186 iotests.VM() as vm: 193 vm.add_blockdev(vm.qmp_to_opts({ 201 vm.launch() [all …]
|
H A D | 246 | 32 def query_bitmaps(vm): argument 39 iotests.VM() as vm: 43 vm.add_drive(img_path) 47 vm.launch() 61 vm.shutdown() 65 vm.launch() 78 vm.shutdown() 82 vm.launch() 101 vm.shutdown() 105 vm.launch() [all …]
|
H A D | 213 | 43 vm.launch() 54 vm.shutdown() 67 vm.launch() 81 vm.shutdown() 94 vm.launch() 118 vm.launch() 131 vm.launch() 145 vm.launch() 170 vm.launch() 184 vm.launch() [all …]
|
H A D | 237 | 44 vm.launch() 55 vm.shutdown() 68 vm.launch() 84 vm.shutdown() 97 vm.launch() 122 vm.launch() 141 vm.launch() 153 vm.launch() 178 vm.launch() 189 vm.launch() [all …]
|
H A D | 240 | 35 self.vm = iotests.VM() 36 self.vm.launch() 39 self.vm.shutdown() 47 self.vm.qmp_log('device_del', id='scsi-hd0') 48 self.vm.event_wait('DEVICE_DELETED') 51 self.vm.event_wait('DEVICE_DELETED') 63 self.vm.event_wait('DEVICE_DELETED') 65 self.vm.event_wait('DEVICE_DELETED') 83 self.vm.event_wait('DEVICE_DELETED') 87 self.vm.event_wait('DEVICE_DELETED') [all …]
|
H A D | 212 | 43 vm.launch() 54 vm.shutdown() 67 vm.launch() 78 vm.shutdown() 91 vm.launch() 102 vm.shutdown() 112 vm.launch() 125 vm.launch() 139 vm.launch() 165 vm.launch() [all …]
|
H A D | 218 | 42 vm.launch() 44 vm.cmd('blockdev-add', 77 with iotests.VM() as vm: 91 with iotests.VM() as vm: 109 with iotests.VM() as vm: 110 start_mirror(vm) 125 with iotests.VM() as vm: 126 start_mirror(vm) 147 vm.launch() 177 log(vm.qmp('quit')) [all …]
|
H A D | 118 | 285 self.vm.launch() 322 self.vm.launch() 376 self.vm.launch() 395 self.vm.launch() 415 self.vm.launch() 437 self.vm.launch() 457 self.vm.launch() 476 self.vm.launch() 497 self.vm.launch() 518 self.vm.launch() [all …]
|
H A D | 211 | 48 vm.launch() 59 vm.shutdown() 72 vm.launch() 83 vm.shutdown() 96 vm.launch() 107 vm.shutdown() 118 vm.launch() 122 vm.shutdown() 131 vm.launch() 145 vm.launch() [all …]
|
H A D | 307 | 36 iotests.VM() as vm: 50 vm.launch() 52 vm.qmp_log('nbd-server-start', 55 vm.qmp_log('query-block-exports') 60 vm.qmp_log('query-block-exports') 71 vm.qmp_log('query-block-exports') 76 vm.qmp_log('query-block-exports') 111 vm.qmp_log('query-block-exports') 129 vm.qmp_log('query-block-exports') 142 vm.qmp_log('query-block-exports') [all …]
|
H A D | 283 | 74 vm = iotests.VM() variable 75 vm.launch() 77 vm.qmp_log('blockdev-add', **{ 83 vm.qmp_log('blockdev-add', **{ 89 vm.qmp_log('blockdev-add', **{ 99 vm.shutdown() 106 vm = iotests.VM() variable 107 vm.launch() 109 vm.qmp_log('blockdev-add', **{ 119 vm.qmp_log('blockdev-backup', [all …]
|
H A D | 210 | 45 vm.launch() 58 vm.shutdown() 75 vm.launch() 92 vm.shutdown() 109 vm.launch() 113 vm.shutdown() 122 vm.launch() 128 vm.shutdown() 152 vm.launch() 158 vm.shutdown() [all …]
|
/openbmc/linux/tools/testing/selftests/kvm/s390x/ |
H A D | cmma_test.c | 158 struct kvm_vm *vm; in create_vm_two_memslots() local 160 vm = create_vm(); in create_vm_two_memslots() 166 return vm; in create_vm_two_memslots() 243 enable_cmma(vm); in test_get_cmma_basic() 266 kvm_vm_free(vm); in test_get_cmma_basic() 294 enable_cmma(vm); in test_migration_mode() 372 kvm_vm_free(vm); in test_migration_mode() 457 enable_cmma(vm); in test_get_inital_dirty() 475 kvm_vm_free(vm); in test_get_inital_dirty() 516 enable_cmma(vm); in test_get_skip_holes() [all …]
|
/openbmc/linux/drivers/virt/acrn/ |
H A D | vm.c | 40 vm->vmid = vm_param->vmid; in acrn_vm_create() 53 acrn_ioeventfd_init(vm); in acrn_vm_create() 54 acrn_irqfd_init(vm); in acrn_vm_create() 56 return vm; in acrn_vm_create() 77 list_del_init(&vm->list); in acrn_vm_destroy() 80 acrn_ioeventfd_deinit(vm); in acrn_vm_destroy() 81 acrn_irqfd_deinit(vm); in acrn_vm_destroy() 82 acrn_ioreq_deinit(vm); in acrn_vm_destroy() 84 if (vm->monitor_page) { in acrn_vm_destroy() 86 vm->monitor_page = NULL; in acrn_vm_destroy() [all …]
|
/openbmc/linux/drivers/gpu/drm/i915/gt/ |
H A D | intel_ggtt.c | 68 ggtt->vm.cleanup(&ggtt->vm); in ggtt_init_hw() 114 drm_WARN_ON(&vm->i915->drm, !vm->is_ggtt && !vm->is_dpt); in i915_ggtt_suspend_vm() 165 vm->clear_range(vm, 0, vm->total); in i915_ggtt_suspend_vm() 646 ggtt->vm.scratch_range(&ggtt->vm, start, size); in init_ggtt() 666 ggtt->vm.clear_range(&ggtt->vm, hole_start, in init_ggtt() 671 ggtt->vm.clear_range(&ggtt->vm, ggtt->vm.total - PAGE_SIZE, PAGE_SIZE); in init_ggtt() 694 ppgtt_bind_vma(&i915_vm_to_ggtt(vm)->alias->vm, in aliasing_gtt_bind_vma() 744 ppgtt->vm.allocate_va_range(&ppgtt->vm, &stash, 0, ggtt->vm.total); in init_aliasing_ppgtt() 826 ggtt->vm.cleanup(&ggtt->vm); in ggtt_cleanup_hw() 1306 drm_WARN_ON(&vm->i915->drm, !vm->is_ggtt && !vm->is_dpt); in i915_ggtt_resume_vm() [all …]
|
H A D | intel_gtt.c | 169 if (vm->scratch[0]->base.resv == &vm->_resv) { in i915_vm_lock_objects() 200 kfree(vm); in i915_vm_resv_release() 208 __i915_vm_close(vm); in __i915_vm_release() 213 vm->cleanup(vm); in __i915_vm_release() 216 i915_vm_resv_put(vm); in __i915_vm_release() 227 queue_work(vm->i915->wq, &vm->release_work); in i915_vm_release() 232 kref_init(&vm->ref); in i915_address_space_init() 253 i915_gem_shrinker_taints_mutex(vm->i915, &vm->mutex); in i915_address_space_init() 270 drm_mm_init(&vm->mm, 0, vm->total); in i915_address_space_init() 352 obj = vm->alloc_scratch_dma(vm, size); in setup_scratch_page() [all …]
|
/openbmc/linux/tools/testing/selftests/kvm/lib/s390x/ |
H A D | processor.c | 18 vm->page_size); in virt_arch_pgd_alloc() 20 if (vm->pgd_created) in virt_arch_pgd_alloc() 26 memset(addr_gpa2hva(vm, paddr), 0xff, PAGES_PER_REGION * vm->page_size); in virt_arch_pgd_alloc() 28 vm->pgd = paddr; in virt_arch_pgd_alloc() 29 vm->pgd_created = true; in virt_arch_pgd_alloc() 43 memset(addr_gpa2hva(vm, taddr), 0xff, PAGES_PER_REGION * vm->page_size); in virt_alloc_region() 67 TEST_ASSERT((gpa >> vm->page_shift) <= vm->max_gfn, in virt_arch_pg_map() 70 gva, vm->max_gfn, vm->page_size); in virt_arch_pg_map() 73 entry = addr_gpa2hva(vm, vm->pgd); in virt_arch_pg_map() 97 entry = addr_gpa2hva(vm, vm->pgd); in addr_arch_gva2gpa() [all …]
|
/openbmc/linux/drivers/gpu/drm/lima/ |
H A D | lima_vm.c | 18 struct lima_vm *vm; member 82 if (bo_va->vm == vm) { in lima_vm_bo_find() 118 bo_va->vm = vm; in lima_vm_bo_add() 204 vm = kzalloc(sizeof(*vm), GFP_KERNEL); in lima_vm_create() 205 if (!vm) in lima_vm_create() 208 vm->dev = dev; in lima_vm_create() 226 return vm; in lima_vm_create() 231 kfree(vm); in lima_vm_create() 245 vm->bts[i].cpu, vm->bts[i].dma); in lima_vm_release() 249 dma_free_wc(vm->dev->dev, LIMA_PAGE_SIZE, vm->pd.cpu, vm->pd.dma); in lima_vm_release() [all …]
|
/openbmc/linux/drivers/gpu/drm/i915/selftests/ |
H A D | mock_gtt.c | 73 ppgtt->vm.gt = to_gt(i915); in mock_ppgtt() 74 ppgtt->vm.i915 = i915; in mock_ppgtt() 76 ppgtt->vm.dma = i915->drm.dev; in mock_ppgtt() 86 ppgtt->vm.cleanup = mock_cleanup; in mock_ppgtt() 111 ggtt->vm.gt = gt; in mock_init_ggtt() 112 ggtt->vm.i915 = gt->i915; in mock_init_ggtt() 113 ggtt->vm.is_ggtt = true; in mock_init_ggtt() 117 ggtt->vm.total = 4096 * PAGE_SIZE; in mock_init_ggtt() 119 ggtt->vm.alloc_pt_dma = alloc_pt_dma; in mock_init_ggtt() 125 ggtt->vm.cleanup = mock_cleanup; in mock_init_ggtt() [all …]
|
/openbmc/linux/tools/testing/selftests/kvm/lib/ |
H A D | kvm_util.c | 143 vm->fd = __kvm_ioctl(vm->kvm_fd, KVM_CREATE_VM, (void *)vm->type); in vm_open() 206 0, (1ULL << (vm->va_bits - 1)) >> vm->page_shift); in vm_vaddr_populate_bitmap() 209 (1ULL << (vm->va_bits - 1)) >> vm->page_shift); in vm_vaddr_populate_bitmap() 216 vm = calloc(1, sizeof(*vm)); in ____vm_create() 293 vm->type = KVM_VM_TYPE_ARM_IPA_SIZE(vm->pa_bits); in ____vm_create() 303 vm->max_gfn = vm_compute_max_gfn(vm); in ____vm_create() 308 return vm; in ____vm_create() 802 amt = vm->page_size - (ptr1 % vm->page_size); in kvm_memcmp_hva_gva() 804 amt = vm->page_size - (ptr2 % vm->page_size); in kvm_memcmp_hva_gva() 1227 vcpu->vm = vm; in __vm_vcpu_add() [all …]
|
/openbmc/linux/sound/pci/ctxfi/ |
H A D | ctvmem.c | 36 if (size > vm->size) { in get_vm_block() 42 mutex_lock(&vm->lock); in get_vm_block() 54 vm->size -= size; in get_vm_block() 68 vm->size -= size; in get_vm_block() 171 struct ct_vm *vm; in ct_vm_create() local 177 vm = kzalloc(sizeof(*vm), GFP_KERNEL); in ct_vm_create() 178 if (!vm) in ct_vm_create() 193 ct_vm_destroy(vm); in ct_vm_create() 209 *rvm = vm; in ct_vm_create() 239 vm->size = 0; in ct_vm_destroy() [all …]
|