mirror of https://github.com/xqemu/xqemu.git
qxl: don't assert on guest create_guest_primary
Signed-off-by: Alon Levy <alevy@redhat.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
4763e2cadd
commit
ddf9f4b707
5
hw/qxl.c
5
hw/qxl.c
|
@ -1191,7 +1191,10 @@ static void qxl_create_guest_primary(PCIQXLDevice *qxl, int loadvm,
|
||||||
QXLDevSurfaceCreate surface;
|
QXLDevSurfaceCreate surface;
|
||||||
QXLSurfaceCreate *sc = &qxl->guest_primary.surface;
|
QXLSurfaceCreate *sc = &qxl->guest_primary.surface;
|
||||||
|
|
||||||
assert(qxl->mode != QXL_MODE_NATIVE);
|
if (qxl->mode == QXL_MODE_NATIVE) {
|
||||||
|
qxl_guest_bug(qxl, "%s: nop since already in QXL_MODE_NATIVE",
|
||||||
|
__func__);
|
||||||
|
}
|
||||||
qxl_exit_vga_mode(qxl);
|
qxl_exit_vga_mode(qxl);
|
||||||
|
|
||||||
surface.format = le32_to_cpu(sc->format);
|
surface.format = le32_to_cpu(sc->format);
|
||||||
|
|
Loading…
Reference in New Issue