]> git.proxmox.com Git - mirror_qemu.git/commit
tcg: Round the tb_size default from qemu_get_host_physmem
authorRichard Henderson <richard.henderson@linaro.org>
Sun, 14 Mar 2021 19:32:18 +0000 (13:32 -0600)
committerRichard Henderson <richard.henderson@linaro.org>
Mon, 14 Jun 2021 00:42:40 +0000 (17:42 -0700)
commitba22783d6ef821551360890a025cd29b2444e948
tree24c65e2f9b932d5885b04723880145ce0b0ec69a
parentd7107fc00aff819338e1d2683eabcbb2ff4ef61b
tcg: Round the tb_size default from qemu_get_host_physmem

If qemu_get_host_physmem returns an odd number of pages,
then physmem / 8 will not be a multiple of the page size.

The following was observed on a gitlab runner:

ERROR qtest-arm/boot-serial-test - Bail out!
ERROR:../util/osdep.c:80:qemu_mprotect__osdep: \
  assertion failed: (!(size & ~qemu_real_host_page_mask))

Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Luis Pires <luis.pires@eldorado.org.br>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
tcg/region.c