]> git.ipfire.org Git - thirdparty/qemu.git/commit
accel/tcg: Assert one page in tb_invalidate_phys_page_range__locked
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Thu, 29 Jun 2023 08:25:22 +0000 (09:25 +0100)
committerMichael Tokarev <mjt@tls.msk.ru>
Sun, 2 Jul 2023 19:10:28 +0000 (22:10 +0300)
commitd2402a83a7c9e714f03d954f3074eab504b49b9d
tree9e02ccb31357f04f6a6ffde0cff73ab18c271a08
parent78e8c9c1a12551b6c8e8909310b9250fcc86830d
accel/tcg: Assert one page in tb_invalidate_phys_page_range__locked

Ensure that that both the start and last addresses are within
the same guest page.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20230629082522.606219-3-mark.cave-ayland@ilande.co.uk>
[rth: Use tcg_debug_assert, simplify the expression]
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
(cherry picked from commit e665cf72fe6357945fdbecf747dac58c0c7c7c66)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
accel/tcg/tb-maint.c