diff options
author | Gavin Shan <gshan@redhat.com> | 2022-01-11 14:33:28 +0800 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2022-01-20 11:47:52 +0000 |
commit | 1263615efe51e5f1f38f4818f0de88abc33b49a6 (patch) | |
tree | c31c393ffb1aa26f67f6a57db8e00673b85f0024 /hw/arm | |
parent | 87f14eaa5198373e8716d6e71ad10d48ea2e7ec6 (diff) | |
download | qemu-1263615efe51e5f1f38f4818f0de88abc33b49a6.zip qemu-1263615efe51e5f1f38f4818f0de88abc33b49a6.tar.gz qemu-1263615efe51e5f1f38f4818f0de88abc33b49a6.tar.bz2 |
virtio-mem: Correct default THP size for ARM64
The default block size is same as to the THP size, which is either
retrieved from "/sys/kernel/mm/transparent_hugepage/hpage_pmd_size"
or hardcoded to 2MB. There are flaws in both mechanisms and this
intends to fix them up.
* When "/sys/kernel/mm/transparent_hugepage/hpage_pmd_size" is
used to getting the THP size, 32MB and 512MB are valid values
when we have 16KB and 64KB page size on ARM64.
* When the hardcoded THP size is used, 2MB, 32MB and 512MB are
valid values when we have 4KB, 16KB and 64KB page sizes on
ARM64.
Co-developed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Gavin Shan <gshan@redhat.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@Huawei.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Message-id: 20220111063329.74447-2-gshan@redhat.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/arm')
0 files changed, 0 insertions, 0 deletions