accel/tcg: Assert one page in tb_invalidate_phys_page_range__locked
commite665cf72fe6357945fdbecf747dac58c0c7c7c66
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Thu, 29 Jun 2023 08:25:22 +0000 (29 09:25 +0100)
committerRichard Henderson <richard.henderson@linaro.org>
Sat, 1 Jul 2023 06:26:54 +0000 (1 08:26 +0200)
tree5a870bfeb29b38dbdda1fe3e059eb328abbe72a5
parent3307e08c6f142bb3d2406cfbc0ee19359748b51a
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>
accel/tcg/tb-maint.c