]> git.proxmox.com Git - qemu.git/commit
qxl: create slots on post_load in vga state
authorAlon Levy <alevy@redhat.com>
Tue, 25 Oct 2011 13:39:50 +0000 (15:39 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 1 Nov 2011 12:24:55 +0000 (13:24 +0100)
commit54825d2e39b0a809332b5fee837f456d5d9befee
tree28b657a8fb661f4b5406cd98076ad37a437bef66
parenta053f1b1fb63cb57483354db7b154e9a2e585b5a
qxl: create slots on post_load in vga state

RHBZ 740547

If we migrate when the device is in vga state the guest
still believes the slots are created, and will cause operations
that reference the slots, causing a "panic: virtual address out of range"
on the first of them. Easy to see by migrating in vga mode with
a driver loaded, for instance windows cmd window in full screen mode,
and then exiting vga mode back to native mode will cause said panic.

Fixed by doing the slot recreation in post_load for vga mode as well.
Note that compat does not require any changes because it creates it's
only slot by a side effect of QXL_IO_SET_MODE.

Signed-off-by: Alon Levy <alevy@redhat.com>
hw/qxl.c