mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 02:24:58 -06:00
qxl: stop using non revision 4 rom fields for revision < 4
Signed-off-by: Alon Levy <alevy@redhat.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
1356b98d3e
commit
e0ac6097b6
2 changed files with 13 additions and 0 deletions
11
hw/qxl.c
11
hw/qxl.c
|
@ -945,6 +945,12 @@ static void interface_set_client_capabilities(QXLInstance *sin,
|
|||
{
|
||||
PCIQXLDevice *qxl = container_of(sin, PCIQXLDevice, ssd.qxl);
|
||||
|
||||
if (qxl->revision < 4) {
|
||||
trace_qxl_set_client_capabilities_unsupported_by_revision(qxl->id,
|
||||
qxl->revision);
|
||||
return;
|
||||
}
|
||||
|
||||
if (runstate_check(RUN_STATE_INMIGRATE) ||
|
||||
runstate_check(RUN_STATE_POSTMIGRATE)) {
|
||||
return;
|
||||
|
@ -979,6 +985,11 @@ static int interface_client_monitors_config(QXLInstance *sin,
|
|||
QXLRom *rom = memory_region_get_ram_ptr(&qxl->rom_bar);
|
||||
int i;
|
||||
|
||||
if (qxl->revision < 4) {
|
||||
trace_qxl_client_monitors_config_unsupported_by_device(qxl->id,
|
||||
qxl->revision);
|
||||
return 0;
|
||||
}
|
||||
/*
|
||||
* Older windows drivers set int_mask to 0 when their ISR is called,
|
||||
* then later set it to ~0. So it doesn't relate to the actual interrupts
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue