Home
last modified time | relevance | path

Searched refs:qemu_real_host_page_size (Results 1 – 25 of 58) sorted by relevance

123

/qemu/ebpf/
A Debpf_rss.c52 ctx->mmap_configuration = mmap(NULL, qemu_real_host_page_size(), in ebpf_rss_mmap()
60 ctx->mmap_toeplitz_key = mmap(NULL, qemu_real_host_page_size(), in ebpf_rss_mmap()
68 ctx->mmap_indirections_table = mmap(NULL, qemu_real_host_page_size(), in ebpf_rss_mmap()
84 munmap(ctx->mmap_toeplitz_key, qemu_real_host_page_size()); in ebpf_rss_mmap()
87 munmap(ctx->mmap_configuration, qemu_real_host_page_size()); in ebpf_rss_mmap()
96 munmap(ctx->mmap_indirections_table, qemu_real_host_page_size()); in ebpf_rss_munmap()
97 munmap(ctx->mmap_toeplitz_key, qemu_real_host_page_size()); in ebpf_rss_munmap()
98 munmap(ctx->mmap_configuration, qemu_real_host_page_size()); in ebpf_rss_munmap()
/qemu/util/
A Dmmap-alloc.c81 return qemu_real_host_page_size(); in qemu_fd_getpagesize()
101 if (qemu_fd_getpagesize(fd) != qemu_real_host_page_size()) { in map_noreserve_effective()
166 if (fd == -1 || qemu_fd_getpagesize(fd) == qemu_real_host_page_size()) { in mmap_reserve()
243 return qemu_real_host_page_size(); in mmap_guard_pagesize()
A Doslib-posix.c667 size_t pagesz = qemu_real_host_page_size(); in qemu_alloc_stack()
720 for (ptr = stack + qemu_real_host_page_size(); ptr < stack + sz; in qemu_free_stack()
783 if (pages > SIZE_MAX / qemu_real_host_page_size()) { in qemu_get_host_physmem()
786 return pages * qemu_real_host_page_size(); in qemu_get_host_physmem()
795 size_t align_mask = ~(qemu_real_host_page_size() - 1); in qemu_msync()
803 length += ((uintptr_t)addr & (qemu_real_host_page_size() - 1)); in qemu_msync()
A Dvfio-helpers.c168 assert(QEMU_IS_ALIGNED(offset, qemu_real_host_page_size())); in qemu_vfio_pci_map_bar()
596 assert(QEMU_IS_ALIGNED(size, qemu_real_host_page_size())); in qemu_vfio_add_mapping()
597 assert(QEMU_IS_ALIGNED(s->low_water_mark, qemu_real_host_page_size())); in qemu_vfio_add_mapping()
598 assert(QEMU_IS_ALIGNED(s->high_water_mark, qemu_real_host_page_size())); in qemu_vfio_add_mapping()
649 assert(QEMU_IS_ALIGNED(mapping->size, qemu_real_host_page_size())); in qemu_vfio_undo_mapping()
757 assert(QEMU_PTR_IS_ALIGNED(host, qemu_real_host_page_size())); in qemu_vfio_dma_map()
758 assert(QEMU_IS_ALIGNED(size, qemu_real_host_page_size())); in qemu_vfio_dma_map()
/qemu/include/qemu/
A Dosdep.h560 # define QEMU_VMALLOC_ALIGN MAX(qemu_real_host_page_size(), SHMLBA)
567 # define QEMU_VMALLOC_ALIGN (qemu_real_host_page_size() * \
568 qemu_real_host_page_size() / sizeof(long))
570 # define QEMU_VMALLOC_ALIGN qemu_real_host_page_size()
737 static inline uintptr_t qemu_real_host_page_size(void) in qemu_real_host_page_size() function
744 return -(intptr_t)qemu_real_host_page_size(); in qemu_real_host_page_mask()
/qemu/hw/virtio/
A Dvhost-iova-tree.c14 #define iova_min_addr qemu_real_host_page_size()
89 hwaddr iova_first = tree->iova_first ?: qemu_real_host_page_size(); in vhost_iova_tree_map_alloc()
A Dvirtio-mem.c57 if (qemu_real_host_page_size() == 4 * KiB) { in virtio_mem_default_thp_size()
59 } else if (qemu_real_host_page_size() == 16 * KiB) { in virtio_mem_default_thp_size()
61 } else if (qemu_real_host_page_size() == 64 * KiB) { in virtio_mem_default_thp_size()
138 if (page_size == qemu_real_host_page_size()) { in virtio_mem_default_block_size()
153 qemu_ram_pagesize(rb) == qemu_real_host_page_size(); in virtio_mem_has_shared_zeropage()
A Dvhost-shadow-virtqueue.c611 return ROUND_UP(desc_size + avail_size, qemu_real_host_page_size()); in vhost_svq_driver_area_size()
618 return ROUND_UP(used_size, qemu_real_host_page_size()); in vhost_svq_device_area_size()
/qemu/block/
A Dnvme.c175 bytes = ROUND_UP(nentries * entry_bytes, qemu_real_host_page_size()); in nvme_init_queue()
177 q->queue = qemu_try_memalign(qemu_real_host_page_size(), bytes); in nvme_init_queue()
239 qemu_real_host_page_size()); in nvme_create_queue_pair()
240 q->prp_list_pages = qemu_try_memalign(qemu_real_host_page_size(), bytes); in nvme_create_queue_pair()
555 size_t id_size = QEMU_ALIGN_UP(sizeof(*id), qemu_real_host_page_size()); in nvme_identify()
557 id = qemu_try_memalign(qemu_real_host_page_size(), id_size); in nvme_identify()
1070 qemu_real_host_page_size()); in nvme_cmd_map_qiov()
1246 qemu_real_host_page_size()) || in nvme_qiov_aligned()
1247 !QEMU_IS_ALIGNED(qiov->iov[i].iov_len, qemu_real_host_page_size())) { in nvme_qiov_aligned()
1265 size_t len = QEMU_ALIGN_UP(bytes, qemu_real_host_page_size()); in nvme_co_prw()
[all …]
/qemu/tcg/
A Dregion.c515 buf = QEMU_ALIGN_PTR_UP(buf, qemu_real_host_page_size()); in alloc_code_gen_buffer()
516 end = QEMU_ALIGN_PTR_DOWN(end, qemu_real_host_page_size()); in alloc_code_gen_buffer()
522 size = QEMU_ALIGN_DOWN(tb_size, qemu_real_host_page_size()); in alloc_code_gen_buffer()
754 const size_t page_size = qemu_real_host_page_size(); in tcg_region_init()
A Dperf.c214 perf_marker_size = qemu_real_host_page_size(); in perf_enable_jitdump()
/qemu/tests/
A Dvhost-user-bridge.c469 qemu_real_host_page_size(), in vubr_queue_set_started()
470 qidx * qemu_real_host_page_size()); in vubr_queue_set_started()
602 int pagesize = qemu_real_host_page_size(); in notifier_thread()
637 length = qemu_real_host_page_size() * VHOST_USER_BRIDGE_MAX_QUEUES; in vubr_host_notifier_setup()
/qemu/hw/tpm/
A Dtpm_ppi.c50 size_t host_page_size = qemu_real_host_page_size(); in tpm_ppi_init()
/qemu/linux-user/
A Dmmap.c169 int host_page_size = qemu_real_host_page_size(); in target_mprotect()
333 int host_page_size = qemu_real_host_page_size(); in mmap_frag()
436 int host_page_size = qemu_real_host_page_size(); in mmap_find_vma()
905 int host_page_size = qemu_real_host_page_size(); in target_mmap__locked()
1018 int host_page_size = qemu_real_host_page_size(); in mmap_reserve_or_unmap()
1308 h_pagesize = qemu_real_host_page_size(); in target_shmat()
A Dmain.c341 unsigned size, want = qemu_real_host_page_size(); in handle_arg_pagesize()
818 host_page_size = qemu_real_host_page_size(); in main()
/qemu/bsd-user/
A Dmain.c363 unsigned size, want = qemu_real_host_page_size(); in main()
472 host_page_size = qemu_real_host_page_size(); in main()
/qemu/hw/vfio/
A Dcommon.c509 qemu_real_host_page_size()); in vfio_known_safe_misalignment()
534 qemu_real_host_page_size()); in vfio_listener_valid_section()
589 qemu_real_host_page_size()); in vfio_listener_region_add()
972 control->page_size = qemu_real_host_page_size(); in vfio_device_feature_dma_logging_start_create()
1120 report->page_size = qemu_real_host_page_size(); in vfio_device_dma_logging_report()
A Dcontainer.c90 bitmap->pgsize = qemu_real_host_page_size(); in vfio_dma_unmap_bitmap()
260 range->bitmap.pgsize = qemu_real_host_page_size(); in vfio_legacy_query_dirty_bitmap()
504 if (cap_mig->pgsize_bitmap & qemu_real_host_page_size()) { in vfio_get_iommu_info_migration()
527 bcontainer->pgsizes = qemu_real_host_page_size(); in vfio_legacy_setup()
A Dspapr.c294 bits_per_level = ctz64(qemu_real_host_page_size()) + 8; in vfio_spapr_create_window()
299 max_levels = (64 - create.page_shift) / ctz64(qemu_real_host_page_size()); in vfio_spapr_create_window()
A Diommufd.c157 unsigned long page_size = qemu_real_host_page_size(); in iommufd_query_dirty_bitmap()
555 bcontainer->pgsizes = qemu_real_host_page_size(); in iommufd_cdev_attach()
/qemu/accel/kvm/
A Dkvm-all.c66 #define PAGE_SIZE qemu_real_host_page_size()
319 qemu_real_host_page_size()); in kvm_align_section()
695 ram_addr_t pages = slot->memory_size / qemu_real_host_page_size(); in kvm_slot_sync_dirty_pages()
731 hwaddr bitmap_size = ALIGN(mem->memory_size / qemu_real_host_page_size(), in kvm_slot_init_dirty_bitmap()
776 (mem->memory_size / qemu_real_host_page_size())) { in kvm_dirty_ring_mark_page()
1005 unsigned long *bmap_clear = NULL, psize = qemu_real_host_page_size(); in kvm_log_clear_one_slot()
1403 ROUND_UP(max_slot_size, qemu_real_host_page_size()) == max_slot_size in kvm_set_max_memslot_size()
2576 assert(TARGET_PAGE_SIZE <= qemu_real_host_page_size()); in kvm_init()
3006 if (!QEMU_PTR_IS_ALIGNED(start, qemu_real_host_page_size()) || in kvm_convert_memory()
3007 !QEMU_PTR_IS_ALIGNED(size, qemu_real_host_page_size())) { in kvm_convert_memory()
[all …]
/qemu/include/exec/
A Dcpu-common.h29 #define REAL_HOST_PAGE_ALIGN(addr) ROUND_UP((addr), qemu_real_host_page_size())
/qemu/contrib/vhost-user-gpu/
A Dvugbm.c56 return ROUND_UP(buf->width * buf->height * 4, qemu_real_host_page_size()); in udmabuf_get_size()
/qemu/hw/nvram/
A Dfw_cfg.c613 mr_aligned = QEMU_IS_ALIGNED(s->table_mr_size, qemu_real_host_page_size()) && in fw_cfg_acpi_mr_restore()
614 QEMU_IS_ALIGNED(s->linker_mr_size, qemu_real_host_page_size()) && in fw_cfg_acpi_mr_restore()
615 QEMU_IS_ALIGNED(s->rsdp_mr_size, qemu_real_host_page_size()); in fw_cfg_acpi_mr_restore()
/qemu/monitor/
A Dhmp-cmds-target.c328 uintptr_t pagesize = qemu_real_host_page_size(); in vtop()

Completed in 78 milliseconds

123