summaryrefslogtreecommitdiffstats
path: root/hw/qxl.c
Commit message (Collapse)AuthorAgeFilesLines
...
* qxl: add io_port_to_stringAlon Levy2011-08-011-1/+39
| | | | | Signed-off-by: Alon Levy <alevy@redhat.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
* qxl: fix surface tracking & lockingGerd Hoffmann2011-08-011-1/+12
| | | | | | | | Surface tracking needs proper locking since it is used from vcpu and spice worker threads, add it. Also reset the surface counter when zapping all surfaces. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
* spice/qxl: move worker wrappersGerd Hoffmann2011-08-011-10/+57
| | | | | | | | Move the wrapper functions which are used by qxl only to qxl.c. Rename them from qemu_spice_* to qxl_spice_*. Also pass in a qxl state pointer instead of a SimpleSpiceDisplay pointer. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
* spice: add qemu_spice_display_init_commonGerd Hoffmann2011-08-011-6/+1
| | | | | | | | Factor out SimpleSpiceDisplay initialization into qemu_spice_display_init_common() and call it from both qxl.c (for vga mode) and spice-display.c Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
* spice: add worker wrapper functions.Gerd Hoffmann2011-08-011-16/+16
| | | | | | Add wrapper functions for all spice worker calls. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
* qxl: upon reset, if spice worker is stopped, the command rings can be not emptyYonit Halperin2011-07-201-2/+2
| | | | | | | | | | Spice worker does no longer process commands when it is stopped. Otherwise, it might crash during migration when attempting to process commands while the guest is not completely loaded. Cc: Alon Levy <alevy@redhat.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
* qxl: allow QXL_IO_LOG also in vgaAlon Levy2011-07-041-0/+1
| | | | | | | The driver may change us to vga mode and still issue a QXL_IO_LOG, which we can easily support. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
* qxl: put QXL_IO_UPDATE_IRQ into vgamode whitelistGerd Hoffmann2011-07-041-0/+1
| | | | Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
* qxl: make sure primary surface is saved on migrationYonit Halperin2011-07-041-3/+6
| | | | Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
* qxl: add dev id to guest printsAlon Levy2011-07-041-1/+2
| | | | Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
* qxl: interface_get_command: fix reported modeAlon Levy2011-07-041-4/+21
| | | | | | | report correct mode when in undefined mode. introduces qxl_mode_to_string(), and uses it in other places too. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
* qxl: device id fixupGerd Hoffmann2011-07-041-8/+3
| | | | | | | Move device ID to PCIDeviceInfo. Remove support for the unused unstable device ID. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
* Merge remote-tracking branch 'origin/master' into pciMichael S. Tsirkin2011-06-151-15/+16
|\ | | | | | | | | Conflicts: hw/virtio-pci.c
| * qxl: fix cmdlog for vgaAlon Levy2011-06-061-1/+3
| | | | | | | | | | Signed-off-by: Alon Levy <alevy@redhat.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
| * spice: drop obsolete iothread lockingGerd Hoffmann2011-05-031-8/+0
| | | | | | | | | | | | | | | | | | We don't use qemu internals from spice server context any more. Thus we don't also need to grab the iothread mutex from spice server context. And we don't have to temporarely release the lock to avoid deadlocks. Drop all the calls. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
| * spice: don't call displaystate callbacks from spice server context.Gerd Hoffmann2011-05-031-0/+2
| | | | | | | | | | | | | | | | This patch moves the displaystate callback calls for setting the cursor and the mouse pointer from spice server to qemu (iothread) context. This allows us to simplify locking. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
| * spice: don't create updates in spice server context.Gerd Hoffmann2011-05-031-6/+11
| | | | | | | | | | | | | | | | | | This patch moves the creation of spice screen updates from the spice server context to qemu iothread context (display refresh timer to be exact). This way we avoid accessing qemu internals (display surface) from spice thread context which in turn allows us to simplify locking. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
* | hw/qxl.c: convert to PCIDeviceInfo to initialize idsIsaku Yamahata2011-06-121-3/+4
|/ | | | | | | use PCIDeviceInfo to initialize ids. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
* qxl: locking fixGerd Hoffmann2011-01-241-0/+2
| | | | | | | One spice worker call lacks the unlock/relock calls, which may lead to deadlocks, add them. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
* spice/qxl: zap spice 0.4 migration compatibility bitsGerd Hoffmann2011-01-241-69/+10
| | | | | | | | | Live migration from and to spice 0.4 qxl devices isn't going to work. Rip out the bits which attempt to support that. Zap the subsection logic which is obsolete now. Bumb the version to make a clean cut. This should obviously go in before 0.14 is released. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
* qxl: tag as not hotpluggableGerd Hoffmann2011-01-101-0/+1
| | | | | Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
* spice: add qxl deviceGerd Hoffmann2010-12-091-0/+1587
qxl is a paravirtual graphics card. The qxl device is the bridge between the guest and the spice server (aka libspice-server). The spice server will send the rendering commands to the spice client, which will actually render them. The spice server is also able to render locally, which is done in case the guest wants read something from video memory. Local rendering is also used to support display over vnc and sdl. qxl is activated using "-vga qxl". qxl supports multihead, additional cards can be added via '-device qxl". [ v2: add copyright to files ] [ v2: use qemu-common.h for standard includes ] [ v2: create separate qxl-vga device for primary ] Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
OpenPOWER on IntegriCloud