qemu-e2k/hw/display
Gerd Hoffmann 4fa7b4cc50 virtio-gpu: move scanout_id sanity check
Checking scanout_id in virtio_gpu_do_set_scanout() is too late, for the
"resource_id == 0" case (aka disable scanout) the scanout_id is used
unchecked.  Move the check into the callers to fix that.

Fixes: e64d4b6a9b ("virtio-gpu: Refactor virtio_gpu_set_scanout")
Fixes: 32db3c63ae ("virtio-gpu: Add virtio_gpu_set_scanout_blob")
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/383
Reported-by: Alexander Bulekov <alxndr@bu.edu>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Vivek Kasireddy <vivek.kasireddy@intel.com>
Reviewed-by: Li Qiang <liq3ea@gmail.com>
Message-Id: <20210604075029.1201478-1-kraxel@redhat.com>
2021-06-15 07:16:56 +02:00
..
artist.c Clean up includes 2020-12-10 17:16:44 +01:00
ati_2d.c
ati_dbg.c
ati_int.h
ati_regs.h
ati.c
bcm2835_fb.c
blizzard.c
bochs-display.c
cg3.c vl: extract softmmu/datadir.c 2020-12-10 12:15:18 -05:00
cirrus_vga_internal.h
cirrus_vga_isa.c
cirrus_vga_rop2.h
cirrus_vga_rop.h
cirrus_vga.c
dpcd.c
edid-generate.c edid: add support for DisplayID extension (5k resolution) 2021-05-10 11:41:02 +02:00
edid-region.c
exynos4210_fimd.c
framebuffer.c
framebuffer.h
g364fb.c
i2c-ddc.c
jazz_led.c
Kconfig Drop the deprecated lm32 target 2021-05-12 18:20:25 +02:00
macfb.c hw/display/macfb: Classify the "nubus-macfb" as display device 2021-06-05 21:21:56 +02:00
meson.build virtio-gpu: Add udmabuf helpers 2021-05-27 12:06:37 +02:00
next-fb.c Do not include hw/boards.h if it's not really necessary 2021-05-02 17:24:51 +02:00
omap_dss.c
omap_lcdc.c hw/display/omap_lcdc: Delete unnecessary macro 2021-03-06 13:30:38 +00:00
pl110_template.h hw/display/pl110: Remove use of BITS from pl110_template.h 2021-03-14 13:14:55 +00:00
pl110.c hw/display/pl110: Remove use of BITS from pl110_template.h 2021-03-14 13:14:55 +00:00
pxa2xx_lcd.c hw/display/pxa2xx: Inline template header 2021-03-14 13:14:56 +00:00
qxl-logger.c hw/display/qxl: Fix bad printf format specifiers 2021-02-04 14:32:40 +01:00
qxl-render.c qxl: also notify the rendering is done when skipping it 2021-02-04 14:32:40 +01:00
qxl.c hw/display/qxl: Set pci rom address aligned with page size 2021-05-27 11:55:59 +02:00
qxl.h
ramfb-standalone.c
ramfb.c
sii9022.c
sm501.c hw/display/sm501: Inline template header into C file 2021-03-10 09:07:08 +11:00
ssd0303.c
ssd0323.c hw/ssi: Rename SSI 'slave' as 'peripheral' 2020-12-10 12:15:03 -05:00
tc6393xb.c hw/display/tc6393xb: Inline tc6393xb_draw_graphic32() at its callsite 2021-03-06 13:30:38 +00:00
tcx.c hw: Replace anti-social QOM type names 2021-03-19 15:18:43 +01:00
trace-events docs: fix references to docs/devel/tracing.rst 2021-06-02 06:51:09 +02:00
trace.h
vga_int.h
vga_regs.h
vga-access.h
vga-helpers.h
vga-isa-mm.c
vga-isa.c
vga-pci.c edid: add support for DisplayID extension (5k resolution) 2021-05-10 11:41:02 +02:00
vga.c vga: Allow writing VBE_DISPI_ID5 to ID register 2021-06-15 07:11:03 +02:00
vhost-user-gpu-pci.c
vhost-user-gpu.c vhost_user_gpu: Drop dead check for g_malloc() failure 2021-03-09 21:41:52 +01:00
vhost-user-vga.c
virtio-gpu-base.c virtio-gpu: Add initial definitions for blob resources 2021-05-27 12:07:37 +02:00
virtio-gpu-gl.c virtio-gpu: move fields to struct VirtIOGPUGL 2021-05-10 13:55:28 +02:00
virtio-gpu-pci-gl.c virtio-gpu: add virtio-gpu-gl-pci 2021-05-10 13:55:28 +02:00
virtio-gpu-pci.c
virtio-gpu-udmabuf.c virtio-gpu: Add helpers to create and destroy dmabuf objects 2021-05-27 12:07:37 +02:00
virtio-gpu-virgl.c virtio-gpu: Refactor virtio_gpu_create_mapping_iov 2021-05-27 12:07:37 +02:00
virtio-gpu.c virtio-gpu: move scanout_id sanity check 2021-06-15 07:16:56 +02:00
virtio-vga-gl.c virtio-gpu: add virtio-vga-gl 2021-05-10 13:55:28 +02:00
virtio-vga.c display/ui: add a callback to indicate GL state is flushed 2021-02-04 15:58:54 +01:00
virtio-vga.h
vmware_vga.c hw/display/vmware_vga: Remove dependency on VNC header 2021-01-27 09:48:04 +01:00
xenfb.c
xlnx_dp.c hw/display/xlnx_dp: Free FIFOs adding xlnx_dp_finalize() 2021-03-30 14:05:33 +01:00