cirrus: Properly re-register cirrus_linear_io_addr on vram unmap
commit4516e45f82b7ee0cedce875477e785989a719b67
authorJan Kiszka <jan.kiszka@siemens.com>
Fri, 29 Jan 2010 14:12:48 +0000 (29 15:12 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 29 Jan 2010 15:53:00 +0000 (29 09:53 -0600)
treebf0747551c5827f15cf8b5b096ebeb0057dc17c5
parent9ae84f0a6d4b71efff6b830eb7cab408cf613dbc
cirrus: Properly re-register cirrus_linear_io_addr on vram unmap

This fixes CONFIG_FB_CIRRUS for Linux guests and probably much more:

When switching away from linearly mapped vram, we also have to restore
the I/O handlers for the LFB.

This regression was once introduced by commit 2bec46dc97.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/cirrus_vga.c