Skip to content

hw/display/exynos4210_find: Clamp windows to screen

Peter Maydell qemu-arm qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3hw/display/exynos4210_fimd: Factor out finding screen width/heighthw/display/exynos4210_fimd.c+16 -60 replies
2/3hw/display/exynos4210_fimd: Pass width to draw_line functionshw/display/exynos4210_fimd.c+10 -80 replies
3/3hw/display/exynos4210_fimd: Clamp windows to screen sizehw/display/exynos4210_fimd.c+15 -30 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchMarc-André Lureau
SeriesR-b
1/3
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] hw/display/exynos4210_find: Clamp windows to screen

The exynos4210_fimd device has a setup where the guest can program both the overall size of the LCD screen and also the corners of "windows" that define where the guest memory should appear on that screen. The current code assumes that the guest is sensible and puts the corners of windows inside the overall screen. If it doesn't then we will try to copy data to an address that is outside the interfal framebuffer memory that we allocate to be the size of the screen.

This patchset clamps the window coordinates to be within the screen size. Patches 1 and 2 are simple refactorings to make the third patch easier to read.

This fixes https://gitlab.com/qemu-project/qemu/-/work_items/3795

thanks
-- PMM

Peter Maydell (3):
hw/display/exynos4210_fimd: Factor out finding screen width/height hw/display/exynos4210_fimd: Pass width to draw_line functions hw/display/exynos4210_fimd: Clamp windows to screen size

 hw/display/exynos4210_fimd.c | 54 ++++++++++++++++++++++++++----------
 1 file changed, 39 insertions(+), 15 deletions(-)
Signature · 1 line
2.43.0