qxl: fix range check for rev3 io commands.
Enables QXL_IO_FLUSH_SURFACES_ASYNC and QXL_IO_FLUSH_RELEASE which are part of the qxl rev3 feature set. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
36a03e0ba5
commit
ffe01e599f
2
hw/qxl.c
2
hw/qxl.c
@ -1466,7 +1466,7 @@ static void ioport_write(void *opaque, target_phys_addr_t addr,
|
||||
}
|
||||
|
||||
if (d->revision <= QXL_REVISION_STABLE_V10 &&
|
||||
io_port >= QXL_IO_FLUSH_SURFACES_ASYNC) {
|
||||
io_port > QXL_IO_FLUSH_RELEASE) {
|
||||
qxl_set_guest_bug(d, "unsupported io %d for revision %d\n",
|
||||
io_port, d->revision);
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user