[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 13/33] softmmu/physmem: Remove qemu_host_page_size
|
From: |
Richard Henderson |
|
Subject: |
[PATCH v3 13/33] softmmu/physmem: Remove qemu_host_page_size |
|
Date: |
Tue, 2 Jan 2024 12:57:48 +1100 |
Use qemu_real_host_page_size() instead.
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
system/physmem.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/system/physmem.c b/system/physmem.c
index a63853a7bc..c09953270f 100644
--- a/system/physmem.c
+++ b/system/physmem.c
@@ -3520,7 +3520,7 @@ int ram_block_discard_range(RAMBlock *rb, uint64_t start,
size_t length)
* fallocate works on hugepages and shmem
* shared anonymous memory requires madvise REMOVE
*/
- need_madvise = (rb->page_size == qemu_host_page_size);
+ need_madvise = (rb->page_size == qemu_real_host_page_size());
need_fallocate = rb->fd != -1;
if (need_fallocate) {
/* For a file, this causes the area of the file to be zero'd
--
2.34.1
- Re: [PATCH v3 09/33] linux-user: Remove REAL_HOST_PAGE_ALIGN from mmap.c, (continued)
- [PATCH v3 10/33] linux-user: Remove HOST_PAGE_ALIGN from mmap.c, Richard Henderson, 2024/01/01
- [PATCH v3 11/33] migration: Remove qemu_host_page_size, Richard Henderson, 2024/01/01
- [PATCH v3 12/33] hw/tpm: Remove HOST_PAGE_ALIGN from tpm_ppi_init, Richard Henderson, 2024/01/01
- [PATCH v3 13/33] softmmu/physmem: Remove qemu_host_page_size,
Richard Henderson <=
- [PATCH v3 14/33] softmmu/physmem: Remove HOST_PAGE_ALIGN, Richard Henderson, 2024/01/01
- [PATCH v3 15/33] linux-user: Remove qemu_host_page_size from main, Richard Henderson, 2024/01/01
- [PATCH v3 16/33] linux-user: Split out target_mmap__locked, Richard Henderson, 2024/01/01