qxl: fix vga port initialization.
commitf67ab77a43cbaca27a39c69223ec6d5dc850f22d
authorGerd Hoffmann <kraxel@redhat.com>
Thu, 3 Nov 2011 17:21:54 +0000 (3 18:21 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 7 Nov 2011 16:57:37 +0000 (7 10:57 -0600)
tree5ebd50fb43e441d0140e76a0eac084c42d771857
parent25a21c94c0055e078acb7f7455e66c8a15f32385
qxl: fix vga port initialization.

Commit 0a039dc70096b768d3810afa50ba1d214768aaf4 broke vga modes for
qxl-vga by loosing vga_ioport_read windup.  qxl needs to hook into
vga port writes only and used to realize that by letting vga_init() do
the work for both reads and writes, then overwrite the write function.
That little detail was missed while doing the conversion ...

This patch fixes it.  It also switch qxl vga ioport registration to
portio lists while being at it.

Cc: Hans de Goede <hdegoede@redhat.com>
Acked-by: Alon Levy <alevy@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/qxl.c