xemu/hw/display
Hans de Goede 0a2b5e3a78 qxl: Call spice_qxl_driver_unload from qxl_enter_vga_mode
With a SPICE_DISPLAY_CAP_MONITORS_CONFIG capable client, the client needs to
know what part of the primary to use for each monitor. If the guest driver
does not support this, the server sends messages to the client for a
single monitor spanning the entire primary.

As soon as the guest calls spice_qxl_monitors_config_async once, the server
sets the red_worker driver_has_monitors_config flag and stops doing this.

This is a problem when the driver gets unloaded, for example after a reboot
or when switching to a text vc with usermode mode-setting under Linux.

To reproduce this start a multi-mon capable Linux guest which uses
usermode mode-setting and then once X has started switch to a text vc. Note
how the client window does not only not resize, if you try to resize it
manually you always keep blackborders since the aspect is wrong.

This patch calls a new spice-server method called spice_qxl_driver_unload
which clears the driver_has_monitors_config flag inside the server, thereby
fixing this.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
2013-05-09 11:46:53 +02:00
..
ads7846.c
blizzard_template.h hw: move private headers to hw/ subdirectories. 2013-04-08 18:13:16 +02:00
blizzard.c console: add device link to QemuConsoles 2013-04-25 14:45:46 -05:00
cirrus_vga_rop2.h hw: move private headers to hw/ subdirectories. 2013-04-08 18:13:16 +02:00
cirrus_vga_rop.h hw: move private headers to hw/ subdirectories. 2013-04-08 18:13:16 +02:00
cirrus_vga_template.h hw: move private headers to hw/ subdirectories. 2013-04-08 18:13:16 +02:00
cirrus_vga.c cirrus_vga: QOM'ify ISA Cirrus VGA 2013-04-29 08:27:47 -05:00
exynos4210_fimd.c console: add device link to QemuConsoles 2013-04-25 14:45:46 -05:00
framebuffer.c hw: move private headers to hw/ subdirectories. 2013-04-08 18:13:16 +02:00
framebuffer.h hw: move private headers to hw/ subdirectories. 2013-04-08 18:13:16 +02:00
g364fb.c console: add device link to QemuConsoles 2013-04-25 14:45:46 -05:00
jazz_led.c console: add device link to QemuConsoles 2013-04-25 14:45:46 -05:00
Makefile.objs configure: eliminate target_libs_softmmu 2013-04-18 14:12:31 +02:00
milkymist-tmu2.c hw: move display devices to hw/display/, configure via default-configs/ 2013-04-08 18:13:13 +02:00
milkymist-vgafb_template.h hw: move private headers to hw/ subdirectories. 2013-04-08 18:13:16 +02:00
milkymist-vgafb.c console: add device link to QemuConsoles 2013-04-25 14:45:46 -05:00
omap_dss.c hw: move display devices to hw/display/, configure via default-configs/ 2013-04-08 18:13:13 +02:00
omap_lcd_template.h hw: move private headers to hw/ subdirectories. 2013-04-08 18:13:16 +02:00
omap_lcdc.c console: add device link to QemuConsoles 2013-04-25 14:45:46 -05:00
pl110_template.h hw: move private headers to hw/ subdirectories. 2013-04-08 18:13:16 +02:00
pl110.c console: add device link to QemuConsoles 2013-04-25 14:45:46 -05:00
pxa2xx_lcd.c console: add device link to QemuConsoles 2013-04-25 14:45:46 -05:00
pxa2xx_template.h hw: move private headers to hw/ subdirectories. 2013-04-08 18:13:16 +02:00
qxl-logger.c hw: move private headers to hw/ subdirectories. 2013-04-08 18:13:16 +02:00
qxl-render.c hw: move private headers to hw/ subdirectories. 2013-04-08 18:13:16 +02:00
qxl.c qxl: Call spice_qxl_driver_unload from qxl_enter_vga_mode 2013-05-09 11:46:53 +02:00
qxl.h hw: move private headers to hw/ subdirectories. 2013-04-08 18:13:16 +02:00
sm501_template.h hw: move private headers to hw/ subdirectories. 2013-04-08 18:13:16 +02:00
sm501.c console: add device link to QemuConsoles 2013-04-25 14:45:46 -05:00
ssd0303.c console: add device link to QemuConsoles 2013-04-25 14:45:46 -05:00
ssd0323.c console: add device link to QemuConsoles 2013-04-25 14:45:46 -05:00
tc6393xb_template.h hw: move private headers to hw/ subdirectories. 2013-04-08 18:13:16 +02:00
tc6393xb.c console: add device link to QemuConsoles 2013-04-25 14:45:46 -05:00
tcx.c console: add device link to QemuConsoles 2013-04-25 14:45:46 -05:00
vga_int.h console: add GraphicHwOps 2013-04-16 09:03:49 +02:00
vga_template.h hw: move private headers to hw/ subdirectories. 2013-04-08 18:13:16 +02:00
vga-isa-mm.c console: add device link to QemuConsoles 2013-04-25 14:45:46 -05:00
vga-isa.c vga-isa: QOM'ify ISA VGA 2013-04-29 08:27:49 -05:00
vga-pci.c console: add device link to QemuConsoles 2013-04-25 14:45:46 -05:00
vga.c console: add GraphicHwOps 2013-04-16 09:03:49 +02:00
vga.h hw: move private headers to hw/ subdirectories. 2013-04-08 18:13:16 +02:00
vmware_vga.c console: add device link to QemuConsoles 2013-04-25 14:45:46 -05:00
xenfb.c console: qom-ify QemuConsole 2013-04-25 14:45:46 -05:00