summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2024-01-02 12:57:48 +1100
committerRichard Henderson <richard.henderson@linaro.org>2024-02-29 11:35:36 -1000
commit80c3aeef7f31e2bbac621521e72434e87fd0e64f (patch)
treeceeb2d65510b58b4f4d5356bd3659050761e2f4c
parentb61af9b0d192c23bf5bcf01f206d87b8518f216e (diff)
downloadfocaccia-qemu-80c3aeef7f31e2bbac621521e72434e87fd0e64f.tar.gz
focaccia-qemu-80c3aeef7f31e2bbac621521e72434e87fd0e64f.zip
softmmu/physmem: Remove qemu_host_page_size
Use qemu_real_host_page_size() instead.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Ilya Leoshkevich <iii@linux.ibm.com>
Acked-by: Helge Deller <deller@gmx.de>
Message-Id: <20240102015808.132373-14-richard.henderson@linaro.org>
-rw-r--r--system/physmem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/physmem.c b/system/physmem.c
index e3ebc19eef..3b08e064ff 100644
--- a/system/physmem.c
+++ b/system/physmem.c
@@ -3511,7 +3511,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