/openbmc/linux/tools/testing/selftests/kvm/ |
H A D | max_guest_memory_test.c | 21 static void guest_code(uint64_t start_gpa, uint64_t end_gpa, uint64_t stride) in guest_code() argument 25 for (gpa = start_gpa; gpa < end_gpa; gpa += stride) in guest_code() 33 uint64_t start_gpa; member 69 vcpu_args_set(vcpu, 3, info->start_gpa, info->end_gpa, vm->page_size); in vcpu_worker() 93 uint64_t start_gpa, uint64_t end_gpa) in spawn_workers() argument 106 nr_bytes = ((end_gpa - start_gpa) / nr_vcpus) & in spawn_workers() 110 for (i = 0, gpa = start_gpa; i < nr_vcpus; i++, gpa += nr_bytes) { in spawn_workers() 112 info[i].start_gpa = gpa; in spawn_workers() 166 const uint64_t start_gpa = SZ_4G; in main() local 234 gpa = start_gpa + ((slot - first_slot) * slot_size); in main() [all …]
|
/openbmc/linux/arch/mips/kvm/ |
H A D | mmu.c | 154 static bool kvm_mips_flush_gpa_pte(pte_t *pte, unsigned long start_gpa, in kvm_mips_flush_gpa_pte() argument 157 int i_min = pte_index(start_gpa); in kvm_mips_flush_gpa_pte() 171 static bool kvm_mips_flush_gpa_pmd(pmd_t *pmd, unsigned long start_gpa, in kvm_mips_flush_gpa_pmd() argument 176 int i_min = pmd_index(start_gpa); in kvm_mips_flush_gpa_pmd() 181 for (i = i_min; i <= i_max; ++i, start_gpa = 0) { in kvm_mips_flush_gpa_pmd() 189 if (kvm_mips_flush_gpa_pte(pte, start_gpa, end)) { in kvm_mips_flush_gpa_pmd() 199 static bool kvm_mips_flush_gpa_pud(pud_t *pud, unsigned long start_gpa, in kvm_mips_flush_gpa_pud() argument 204 int i_min = pud_index(start_gpa); in kvm_mips_flush_gpa_pud() 209 for (i = i_min; i <= i_max; ++i, start_gpa = 0) { in kvm_mips_flush_gpa_pud() 217 if (kvm_mips_flush_gpa_pmd(pmd, start_gpa, end)) { in kvm_mips_flush_gpa_pud() [all …]
|
/openbmc/qemu/hw/virtio/ |
H A D | virtio-mem.c | 417 uint64_t start_gpa, uint64_t size) in virtio_mem_is_range_plugged() argument 419 const unsigned long first_bit = (start_gpa - vmem->addr) / vmem->block_size; in virtio_mem_is_range_plugged() 429 uint64_t start_gpa, uint64_t size) in virtio_mem_is_range_unplugged() argument 431 const unsigned long first_bit = (start_gpa - vmem->addr) / vmem->block_size; in virtio_mem_is_range_unplugged() 440 static void virtio_mem_set_range_plugged(VirtIOMEM *vmem, uint64_t start_gpa, in virtio_mem_set_range_plugged() argument 443 const unsigned long bit = (start_gpa - vmem->addr) / vmem->block_size; in virtio_mem_set_range_plugged() 449 static void virtio_mem_set_range_unplugged(VirtIOMEM *vmem, uint64_t start_gpa, in virtio_mem_set_range_unplugged() argument 452 const unsigned long bit = (start_gpa - vmem->addr) / vmem->block_size; in virtio_mem_set_range_unplugged() 586 static int virtio_mem_set_block_state(VirtIOMEM *vmem, uint64_t start_gpa, in virtio_mem_set_block_state() argument 589 const uint64_t offset = start_gpa - vmem->addr; in virtio_mem_set_block_state() [all …]
|
/openbmc/linux/arch/powerpc/include/asm/ |
H A D | ultravisor.h | 63 static inline int uv_register_mem_slot(u64 lpid, u64 start_gpa, u64 size, in uv_register_mem_slot() argument 66 return ucall_norets(UV_REGISTER_MEM_SLOT, lpid, start_gpa, in uv_register_mem_slot()
|
/openbmc/linux/drivers/gpu/drm/i915/gvt/ |
H A D | dmabuf.h | 37 __u64 start_gpa; member
|
H A D | dmabuf.c | 269 info->start_gpa = p.base_gpa; in vgpu_get_plane_info() 299 info->start_gpa = c.base_gpa; in vgpu_get_plane_info() 355 (fb_info->start_gpa == latest_info->start_gpa) && in pick_dmabuf_by_info()
|
/openbmc/qemu/subprojects/libvhost-user/ |
H A D | libvhost-user.c | 378 const uint64_t start_gpa = msg_region->guest_phys_addr; in _vu_add_mem_reg() local 379 const uint64_t end_gpa = start_gpa + msg_region->memory_size; in _vu_add_mem_reg() 417 if (start_gpa < cur->gpa + cur->size && cur->gpa < end_gpa) { in _vu_add_mem_reg() 421 if (start_gpa >= cur->gpa + cur->size) { in _vu_add_mem_reg() 424 if (start_gpa < cur->gpa) { in _vu_add_mem_reg()
|
/openbmc/linux/Documentation/powerpc/ |
H A D | ultravisor.rst | 567 uint64_t start_gpa, /* start guest physical address */ 579 * U_P2 if ``start_gpa`` is invalid. 591 guest physical address ``start_gpa`` and is ``size`` bytes long.
|