| /qemu/ebpf/ |
| A D | ebpf_rss.c | 52 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 D | mmap-alloc.c | 81 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 D | oslib-posix.c | 667 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 D | vfio-helpers.c | 168 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 D | osdep.h | 560 # 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 D | vhost-iova-tree.c | 14 #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 D | virtio-mem.c | 57 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 D | vhost-shadow-virtqueue.c | 611 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 D | nvme.c | 175 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 D | region.c | 515 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 D | perf.c | 214 perf_marker_size = qemu_real_host_page_size(); in perf_enable_jitdump()
|
| /qemu/tests/ |
| A D | vhost-user-bridge.c | 469 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 D | tpm_ppi.c | 50 size_t host_page_size = qemu_real_host_page_size(); in tpm_ppi_init()
|
| /qemu/linux-user/ |
| A D | mmap.c | 169 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 D | main.c | 341 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 D | main.c | 363 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 D | common.c | 509 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 D | container.c | 90 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 D | spapr.c | 294 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 D | iommufd.c | 157 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 D | kvm-all.c | 66 #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 D | cpu-common.h | 29 #define REAL_HOST_PAGE_ALIGN(addr) ROUND_UP((addr), qemu_real_host_page_size())
|
| /qemu/contrib/vhost-user-gpu/ |
| A D | vugbm.c | 56 return ROUND_UP(buf->width * buf->height * 4, qemu_real_host_page_size()); in udmabuf_get_size()
|
| /qemu/hw/nvram/ |
| A D | fw_cfg.c | 613 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 D | hmp-cmds-target.c | 328 uintptr_t pagesize = qemu_real_host_page_size(); in vtop()
|