Skip to contentSkip to conversation

Vga 20200213 patches

GIT PULL Applied Gerd Hoffmann 4 participants 10 messages Feb 13, 2020 – Mar 5, 2020

lore
Share & tools
lore
#0 lore raw

The following changes since commit e18e5501d8ac692d32657a3e1ef545b14e72b730:

Merge remote-tracking branch 'remotes/dgilbert-gitlab/tags/pull-virtiofs-20200210' into staging (2020-02-10 18:09:14 +0000)

are available in the Git repository at:

git://git.kraxel.org/qemu tags/vga-20200213-pull-request

for you to fetch changes up to ed71c09ffd6fbd01c2a487d47291ae57b08671ea:

qxl: introduce hardware revision 5 (2020-02-13 08:31:40 +0100)

----------------------------------------------------------------
qxl: introduce hardware revision 5

----------------------------------------------------------------

Gerd Hoffmann (1):
qxl: introduce hardware revision 5

 hw/display/qxl.h  | 2 +-
 hw/core/machine.c | 2 ++
 hw/display/qxl.c  | 7 ++++++-
 3 files changed, 9 insertions(+), 2 deletions(-)
Signature · 1 line
2.18.2
#1 lore raw

[PULL 1/1] qxl: introduce hardware revision 5

The only difference to hardware revision 4 is that the device doesn't switch to VGA mode in case someone happens to touch a VGA register, which should make things more robust in configurations with multiple vga devices.

Swtiching back to VGA mode happens on reset, either full machine reset or qxl device reset (QXL_IO_RESET ioport command).

Message-id: [email protected]

---
 hw/display/qxl.h  | 2 +-
 hw/core/machine.c | 2 ++
 hw/display/qxl.c  | 7 ++++++-
 3 files changed, 9 insertions(+), 2 deletions(-)
hw/display/qxl.h +1 -1
index 80eb0d267269..707631a1f573 100644
@@ -144,7 +144,7 @@ typedef struct PCIQXLDevice {
         }                                                               \
     } while (0)
 
-#define QXL_DEFAULT_REVISION QXL_REVISION_STABLE_V12
+#define QXL_DEFAULT_REVISION (QXL_REVISION_STABLE_V12 + 1)
 
 /* qxl.c */
 void *qxl_phys2virt(PCIQXLDevice *qxl, QXLPHYSICAL phys, int group_id);
hw/core/machine.c +2 -0
index d8e30e4895d8..84812a1d1cc1 100644
@@ -34,6 +34,8 @@ GlobalProperty hw_compat_4_2[] = {
     { "vhost-blk-device", "seg_max_adjust", "off"},
     { "usb-host", "suppress-remote-wake", "off" },
     { "usb-redir", "suppress-remote-wake", "off" },
+    { "qxl", "revision", "4" },
+    { "qxl-vga", "revision", "4" },
 };
 const size_t hw_compat_4_2_len = G_N_ELEMENTS(hw_compat_4_2);
 
hw/display/qxl.c +6 -1
index c33b1915a52c..64884da70857 100644
@@ -1309,7 +1309,8 @@ static void qxl_vga_ioport_write(void *opaque, uint32_t addr, uint32_t val)
     PCIQXLDevice *qxl = container_of(vga, PCIQXLDevice, vga);
 
     trace_qxl_io_write_vga(qxl->id, qxl_mode_to_string(qxl->mode), addr, val);
-    if (qxl->mode != QXL_MODE_VGA) {
+    if (qxl->mode != QXL_MODE_VGA &&
+        qxl->revision <= QXL_REVISION_STABLE_V12) {
         qxl_destroy_primary(qxl, QXL_SYNC);
         qxl_soft_reset(qxl);
     }
@@ -2121,6 +2122,10 @@ static void qxl_realize_common(PCIQXLDevice *qxl, Error **errp)
         pci_device_rev = QXL_REVISION_STABLE_V12;
         io_size = pow2ceil(QXL_IO_RANGE_SIZE);
         break;
+    case 5: /* qxl-5 */
+        pci_device_rev = QXL_REVISION_STABLE_V12 + 1;
+        io_size = pow2ceil(QXL_IO_RANGE_SIZE);
+        break;
     default:
         error_setg(errp, "Invalid revision %d for qxl device (max %d)",
                    qxl->revision, QXL_DEFAULT_REVISION);
Signature · 1 line
2.18.2
#9 lore raw
In reply to Gerd Hoffmann
Quoted 13 lines · Gerd Hoffmann

The following changes since commit e18e5501d8ac692d32657a3e1ef545b14e72b730:

Merge remote-tracking branch 'remotes/dgilbert-gitlab/tags/pull-virtiofs-20200210' into staging (2020-02-10 18:09:14 +0000)

are available in the Git repository at:

git://git.kraxel.org/qemu tags/vga-20200213-pull-request

for you to fetch changes up to ed71c09ffd6fbd01c2a487d47291ae57b08671ea:

qxl: introduce hardware revision 5 (2020-02-13 08:31:40 +0100)

Quoted 7 lines

----------------------------------------------------------------
qxl: introduce hardware revision 5

----------------------------------------------------------------

Gerd Hoffmann (1):
qxl: introduce hardware revision 5

Applied, thanks.

Please update the changelog at https://wiki.qemu.org/ChangeLog/5.0
for any user-visible changes.

-- PMM

#2 lore raw

Re: [PULL 1/1] qxl: introduce hardware revision 5

In reply to Gerd Hoffmann

Hi Gerd,

Quoted 59 lines · Gerd Hoffmann

The only difference to hardware revision 4 is that the device doesn't switch to VGA mode in case someone happens to touch a VGA register, which should make things more robust in configurations with multiple vga devices.

Swtiching back to VGA mode happens on reset, either full machine reset or qxl device reset (QXL_IO_RESET ioport command).

Message-id: [email protected]

---
 hw/display/qxl.h  | 2 +-
 hw/core/machine.c | 2 ++
 hw/display/qxl.c  | 7 ++++++-
 3 files changed, 9 insertions(+), 2 deletions(-)
hw/display/qxl.h +1 -1
index 80eb0d267269..707631a1f573 100644
@@ -144,7 +144,7 @@ typedef struct PCIQXLDevice {
         }                                                               \
     } while (0)
 
-#define QXL_DEFAULT_REVISION QXL_REVISION_STABLE_V12
+#define QXL_DEFAULT_REVISION (QXL_REVISION_STABLE_V12 + 1)
 
 /* qxl.c */
 void *qxl_phys2virt(PCIQXLDevice *qxl, QXLPHYSICAL phys, int group_id);
hw/core/machine.c +2 -0
index d8e30e4895d8..84812a1d1cc1 100644
@@ -34,6 +34,8 @@ GlobalProperty hw_compat_4_2[] = {
     { "vhost-blk-device", "seg_max_adjust", "off"},
     { "usb-host", "suppress-remote-wake", "off" },
     { "usb-redir", "suppress-remote-wake", "off" },
+    { "qxl", "revision", "4" },
+    { "qxl-vga", "revision", "4" },
 };
 const size_t hw_compat_4_2_len = G_N_ELEMENTS(hw_compat_4_2);
 
hw/display/qxl.c +2 -1
index c33b1915a52c..64884da70857 100644
@@ -1309,7 +1309,8 @@ static void qxl_vga_ioport_write(void *opaque, uint32_t addr, uint32_t val)
     PCIQXLDevice *qxl = container_of(vga, PCIQXLDevice, vga);
 
     trace_qxl_io_write_vga(qxl->id, qxl_mode_to_string(qxl->mode), addr, val);
-    if (qxl->mode != QXL_MODE_VGA) {
+    if (qxl->mode != QXL_MODE_VGA &&
+        qxl->revision <= QXL_REVISION_STABLE_V12) {
         qxl_destroy_primary(qxl, QXL_SYNC);
         qxl_soft_reset(qxl);
     }

hw/display/qxl.c static void qxl_realize_common(PCIQXLDevice *qxl, Error **errp) · line 2131

Quoted 10 lines
hw/display/qxl.c +4 -0
@@ -2121,6 +2122,10 @@ static void qxl_realize_common(PCIQXLDevice *qxl, Error **errp)
         pci_device_rev = QXL_REVISION_STABLE_V12;
         io_size = pow2ceil(QXL_IO_RANGE_SIZE);
         break;
+    case 5: /* qxl-5 */
+        pci_device_rev = QXL_REVISION_STABLE_V12 + 1;
+        io_size = pow2ceil(QXL_IO_RANGE_SIZE);
+        break;
     default:
         error_setg(errp, "Invalid revision %d for qxl device (max %d)",
                    qxl->revision, QXL_DEFAULT_REVISION);

this patch -- commit ed71c09ffd6f -- disables ACPI S3 in the Windows 10 guest for me, using OVMF and QXL.

The "Sleep" menu entry disappears from the power button icon/menu at the login screen, and "psshutdown -d -t 3" (from the pstools package) also stops working (it reports that the computer does not support S3).

At the parent commit (e18e5501d8ac), S3 suspend/resume works.

Here's the bisection log:

Quoted 25 lines

git bisect start
# good: [928173659d6e5dc368284f73f90ea1d129e1f57d] Merge remote-tracking branch 'remotes/pmaydell/tags/pull-target-arm-20200130' into staging git bisect good 928173659d6e5dc368284f73f90ea1d129e1f57d
# good: [93c86fff53a267f657e79ec07dcd04b63882e330] Merge remote-tracking branch 'remotes/pmaydell/tags/pull-target-arm-20200207' into staging git bisect good 93c86fff53a267f657e79ec07dcd04b63882e330
# bad: [db736e0437aa6fd7c1b7e4599c17f9619ab6b837] Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into staging git bisect bad db736e0437aa6fd7c1b7e4599c17f9619ab6b837
# bad: [8ee06e4ccb0f447caf9dc884b98986c155915e5c] ppc/mac_oldworld: use memdev for RAM
git bisect bad 8ee06e4ccb0f447caf9dc884b98986c155915e5c
# good: [dc7a88d0810ad272bdcd2e0869359af78fdd9114] target/arm: Implement ARMv8.1-VMID16 extension
git bisect good dc7a88d0810ad272bdcd2e0869359af78fdd9114
# bad: [652c5bbd7e7d3cb3d27a2e0590118dc79fb6f4d8] Merge remote-tracking branch 'remotes/vivier2/tags/linux-user-for-5.0-pull-request' into staging git bisect bad 652c5bbd7e7d3cb3d27a2e0590118dc79fb6f4d8
# bad: [e050e426782ec4ae6bf84e5ec75ca502187f69cb] qapi: Use explicit bulleted lists
git bisect bad e050e426782ec4ae6bf84e5ec75ca502187f69cb
# good: [5d6542bea780ad443c4f7f1496e64706101f525c] Merge remote-tracking branch 'remotes/rth/tags/pull-tcg-20200212' into staging git bisect good 5d6542bea780ad443c4f7f1496e64706101f525c
# bad: [72ec8bf362b24ebbd45452c298a3b14fb617eebb] qga/qapi-schema.json: Fix missing '-' in GuestDiskBusType doc comment git bisect bad 72ec8bf362b24ebbd45452c298a3b14fb617eebb
# bad: [2eb054c237d0b5427f62499f3c31e90cf87821d7] configure: Allow user to specify sphinx-build binary
git bisect bad 2eb054c237d0b5427f62499f3c31e90cf87821d7
# bad: [517c84cef759a453cfb8f51498aebc909a5f3b39] Merge remote-tracking branch 'remotes/kraxel/tags/vga-20200213-pull-request' into staging git bisect bad 517c84cef759a453cfb8f51498aebc909a5f3b39
# bad: [ed71c09ffd6fbd01c2a487d47291ae57b08671ea] qxl: introduce hardware revision 5
git bisect bad ed71c09ffd6fbd01c2a487d47291ae57b08671ea

Quoted 1 line
# first bad commit: [ed71c09ffd6fbd01c2a487d47291ae57b08671ea] qxl: introduce hardware revision 5

OVMF is built at current edk2 master: e63d54db9526.

In the Windows 10 guest, the installed driver has the following properties (per Device Manager):

- driver date: 7/28/2015
- driver version: 22.33.46.473

I tried upgrading the QXL driver in the Windows 10 guest, using the latest package at
<https://fedorapeople.org/groups/virt/virtio-win/repo/latest/?C=M;O=D>,
namely "virtio-win-0.1.173-7.noarch.rpm". But Device Manager said that the currently installed driver was already the best / most recent for the device.

For now I'll force the revision back to 4 using <qemu:arg> elements in my domain XML. (I'd like to use pc-q35-5.0.)

    <qemu:arg value='-global'/>
    <qemu:arg value='qxl-vga.revision=4'/>

Thanks
Laszlo

#3 lore raw

Re: [PULL 1/1] qxl: introduce hardware revision 5

Hi,

Quoted 11 lines

hw/display/qxl.c static void qxl_realize_common(PCIQXLDevice *qxl, Error **errp) · line 2128

Quoted 4 lines
hw/display/qxl.c +4 -0
+    case 5: /* qxl-5 */
+        pci_device_rev = QXL_REVISION_STABLE_V12 + 1;
+        io_size = pow2ceil(QXL_IO_RANGE_SIZE);
+        break;

this patch -- commit ed71c09ffd6f -- disables ACPI S3 in the Windows 10 guest for me, using OVMF and QXL.

The "Sleep" menu entry disappears from the power button icon/menu at the login screen, and "psshutdown -d -t 3" (from the pstools package) also stops working (it reports that the computer does not support S3).

Any chance the qxl windows guest driver checks "revision == 4" instead of "revision >= 4"?

cheers,
Gerd

#6 lore raw

Re: [PULL 1/1] qxl: introduce hardware revision 5

In reply to Yuri Benditovich
Quoted 20 lines · Yuri Benditovich

----- Original Message -----

Quoted 17 lines

From: "Laszlo Ersek" <[email protected]>
To: "Gerd Hoffmann" <[email protected]>
Cc: [email protected], "Eduardo Habkost" <[email protected]>, "Yuri Benditovich" <[email protected]>, "Yan Vugenfirer" <[email protected]>
Sent: Thursday, March 5, 2020 1:28:23 AM
Subject: Re: [PULL 1/1] qxl: introduce hardware revision 5

this patch -- commit ed71c09ffd6f -- disables ACPI S3 in the Windows 10 guest for me, using OVMF and QXL.

The "Sleep" menu entry disappears from the power button icon/menu at the login screen, and "psshutdown -d -t 3" (from the pstools package) also stops working (it reports that the computer does not support S3).

At the parent commit (e18e5501d8ac), S3 suspend/resume works.

[...]

Quoted 10 lines
Quoted 7 lines

OVMF is built at current edk2 master: e63d54db9526.

In the Windows 10 guest, the installed driver has the following properties (per Device Manager):

- driver date: 7/28/2015
- driver version: 22.33.46.473

This is not what I would expect from any qxl driver for Win10 What is the name of display adapter?

"Red Hat QXL controller"

Quoted 1 line

The driver provider is 'Red Hat'?

In the "Red Hat QXL controller Properties" dialog:

- on the General tab, Manufacturer is "Red Hat, Inc."

- on the Driver tab, both the "Driver Provider" and the "Digital Signer" fields are "Red Hat, Inc."

This driver comes from "qxlwddm-0.1-12" (buildID=449635), in Brew.

In retrospect it looks like this driver was meant for Windows 8 only, but it happened to install under, and work OK for, Windows 10 too.

Quoted 1 line

Does your guest run with secure boot?

Yes, it does. (Double-checked it with "confirm-SecureBootUEFI" in PowerShell.)

Quoted 2 lines

I do not see such an effect with 'Sleep' with latest qemu master + OVMF + qxl + Win10, the sleep button does not disappear.

I'm happy to try other driver versions. Hopefully Windows 10 will actually see them as upgrading the currently installed driver. (Or should I uninstall first?)

Thanks!
Laszlo

#5 lore raw

Re: [PULL 1/1] qxl: introduce hardware revision 5

In reply to Laszlo Ersek

----- Original Message -----

Quoted 133 lines

From: "Laszlo Ersek" <[email protected]>
To: "Gerd Hoffmann" <[email protected]>
Cc: [email protected], "Eduardo Habkost" <[email protected]>, "Yuri Benditovich" <[email protected]>, "Yan Vugenfirer" <[email protected]>
Sent: Thursday, March 5, 2020 1:28:23 AM
Subject: Re: [PULL 1/1] qxl: introduce hardware revision 5

Hi Gerd,

Quoted 67 lines · Gerd Hoffmann

The only difference to hardware revision 4 is that the device doesn't switch to VGA mode in case someone happens to touch a VGA register, which should make things more robust in configurations with multiple vga devices.

Swtiching back to VGA mode happens on reset, either full machine reset or qxl device reset (QXL_IO_RESET ioport command).

Message-id: [email protected]
---
hw/display/qxl.h | 2 +-
hw/core/machine.c | 2 ++
hw/display/qxl.c | 7 ++++++-

3 files changed, 9 insertions(+), 2 deletions(-)
hw/display/qxl.h +1 -1
index 80eb0d267269..707631a1f573 100644
@@ -144,7 +144,7 @@ typedef struct PCIQXLDevice {
 } \
 } while (0)
 
-#define QXL_DEFAULT_REVISION QXL_REVISION_STABLE_V12
+#define QXL_DEFAULT_REVISION (QXL_REVISION_STABLE_V12 + 1)
 
 /* qxl.c */
 void *qxl_phys2virt(PCIQXLDevice *qxl, QXLPHYSICAL phys, int group_id);
hw/core/machine.c +2 -0
index d8e30e4895d8..84812a1d1cc1 100644
@@ -34,6 +34,8 @@ GlobalProperty hw_compat_4_2[] = {
 { "vhost-blk-device", "seg_max_adjust", "off"},
 { "usb-host", "suppress-remote-wake", "off" },
 { "usb-redir", "suppress-remote-wake", "off" },
+ { "qxl", "revision", "4" },
+ { "qxl-vga", "revision", "4" },
 };
 const size_t hw_compat_4_2_len = G_N_ELEMENTS(hw_compat_4_2);
 
hw/display/qxl.c +2 -1
index c33b1915a52c..64884da70857 100644
@@ -1309,7 +1309,8 @@ static void qxl_vga_ioport_write(void *opaque,
 uint32_t addr, uint32_t val)
 PCIQXLDevice *qxl = container_of(vga, PCIQXLDevice, vga);
 
 trace_qxl_io_write_vga(qxl->id, qxl_mode_to_string(qxl->mode), addr, val);
- if (qxl->mode != QXL_MODE_VGA) {
+ if (qxl->mode != QXL_MODE_VGA &&
+ qxl->revision <= QXL_REVISION_STABLE_V12) {
 qxl_destroy_primary(qxl, QXL_SYNC);
 qxl_soft_reset(qxl);

}

hw/display/qxl.c +4 -0
@@ -2121,6 +2122,10 @@ static void qxl_realize_common(PCIQXLDevice *qxl,
 Error **errp)
 pci_device_rev = QXL_REVISION_STABLE_V12;
 io_size = pow2ceil(QXL_IO_RANGE_SIZE);
 break;
+ case 5: /* qxl-5 */
+ pci_device_rev = QXL_REVISION_STABLE_V12 + 1;
+ io_size = pow2ceil(QXL_IO_RANGE_SIZE);
+ break;
Quoted 4 lines

default:
error_setg(errp, "Invalid revision %d for qxl device (max %d)", qxl->revision, QXL_DEFAULT_REVISION);

this patch -- commit ed71c09ffd6f -- disables ACPI S3 in the Windows 10 guest for me, using OVMF and QXL.

The "Sleep" menu entry disappears from the power button icon/menu at the login screen, and "psshutdown -d -t 3" (from the pstools package) also stops working (it reports that the computer does not support S3).

At the parent commit (e18e5501d8ac), S3 suspend/resume works.

Here's the bisection log:

Quoted 37 lines

git bisect start
# good: [928173659d6e5dc368284f73f90ea1d129e1f57d] Merge remote-tracking branch 'remotes/pmaydell/tags/pull-target-arm-20200130' into staging git bisect good 928173659d6e5dc368284f73f90ea1d129e1f57d
# good: [93c86fff53a267f657e79ec07dcd04b63882e330] Merge remote-tracking branch 'remotes/pmaydell/tags/pull-target-arm-20200207' into staging git bisect good 93c86fff53a267f657e79ec07dcd04b63882e330
# bad: [db736e0437aa6fd7c1b7e4599c17f9619ab6b837] Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into staging
git bisect bad db736e0437aa6fd7c1b7e4599c17f9619ab6b837
# bad: [8ee06e4ccb0f447caf9dc884b98986c155915e5c] ppc/mac_oldworld: use memdev for RAM
git bisect bad 8ee06e4ccb0f447caf9dc884b98986c155915e5c
# good: [dc7a88d0810ad272bdcd2e0869359af78fdd9114] target/arm: Implement ARMv8.1-VMID16 extension
git bisect good dc7a88d0810ad272bdcd2e0869359af78fdd9114
# bad: [652c5bbd7e7d3cb3d27a2e0590118dc79fb6f4d8] Merge remote-tracking branch 'remotes/vivier2/tags/linux-user-for-5.0-pull-request' into staging git bisect bad 652c5bbd7e7d3cb3d27a2e0590118dc79fb6f4d8
# bad: [e050e426782ec4ae6bf84e5ec75ca502187f69cb] qapi: Use explicit bulleted lists
git bisect bad e050e426782ec4ae6bf84e5ec75ca502187f69cb
# good: [5d6542bea780ad443c4f7f1496e64706101f525c] Merge remote-tracking branch 'remotes/rth/tags/pull-tcg-20200212' into staging
git bisect good 5d6542bea780ad443c4f7f1496e64706101f525c
# bad: [72ec8bf362b24ebbd45452c298a3b14fb617eebb] qga/qapi-schema.json: Fix missing '-' in GuestDiskBusType doc comment
git bisect bad 72ec8bf362b24ebbd45452c298a3b14fb617eebb
# bad: [2eb054c237d0b5427f62499f3c31e90cf87821d7] configure: Allow user to specify sphinx-build binary
git bisect bad 2eb054c237d0b5427f62499f3c31e90cf87821d7
# bad: [517c84cef759a453cfb8f51498aebc909a5f3b39] Merge remote-tracking branch 'remotes/kraxel/tags/vga-20200213-pull-request' into staging git bisect bad 517c84cef759a453cfb8f51498aebc909a5f3b39
# bad: [ed71c09ffd6fbd01c2a487d47291ae57b08671ea] qxl: introduce hardware revision 5
git bisect bad ed71c09ffd6fbd01c2a487d47291ae57b08671ea

Quoted 2 lines
# first bad commit: [ed71c09ffd6fbd01c2a487d47291ae57b08671ea] qxl:
introduce hardware revision 5
Quoted 7 lines

OVMF is built at current edk2 master: e63d54db9526.

In the Windows 10 guest, the installed driver has the following properties (per Device Manager):

- driver date: 7/28/2015
- driver version: 22.33.46.473

This is not what I would expect from any qxl driver for Win10
What is the name of display adapter?
The driver provider is 'Red Hat'?
Does your guest run with secure boot?
I do not see such an effect with 'Sleep' with latest qemu master + OVMF + qxl + Win10, the sleep button does not disappear.

Quoted 14 lines

I tried upgrading the QXL driver in the Windows 10 guest, using the latest package at
<https://fedorapeople.org/groups/virt/virtio-win/repo/latest/?C=M;O=D>,
namely "virtio-win-0.1.173-7.noarch.rpm". But Device Manager said that the currently installed driver was already the best / most recent for the device.For now I'll force the revision back to 4 using <qemu:arg> elements in
my domain XML. (I'd like to use pc-q35-5.0.)

<qemu:arg value='-global'/>
<qemu:arg value='qxl-vga.revision=4'/>

Thanks
Laszlo

#4 lore raw

Re: [PULL 1/1] qxl: introduce hardware revision 5

In reply to Gerd Hoffmann

----- Original Message -----

Quoted 17 lines

From: "Gerd Hoffmann" <[email protected]>
To: "Laszlo Ersek" <[email protected]>
Cc: [email protected], "Eduardo Habkost" <[email protected]>, "Yuri Benditovich" <[email protected]>, "Yan Vugenfirer" <[email protected]>
Sent: Thursday, March 5, 2020 10:08:36 AM
Subject: Re: [PULL 1/1] qxl: introduce hardware revision 5

Hi,

Quoted 8 lines
Quoted 4 lines

+ case 5: /* qxl-5 */
+ pci_device_rev = QXL_REVISION_STABLE_V12 + 1;
+ io_size = pow2ceil(QXL_IO_RANGE_SIZE);
+ break;

this patch -- commit ed71c09ffd6f -- disables ACPI S3 in the Windows 10 guest for me, using OVMF and QXL.

Quoted 6 lines
Quoted 3 lines

The "Sleep" menu entry disappears from the power button icon/menu at the login screen, and "psshutdown -d -t 3" (from the pstools package) also stops working (it reports that the computer does not support S3).

Any chance the qxl windows guest driver checks "revision == 4" instead of "revision >= 4"?

Not with qxl-wddm-dod drivers I'm releasing.
But driver attributes that Laszlo provided are not related to any driver I'm aware of.

Quoted 2 lines

cheers,
Gerd

#7 lore raw

Re: [PULL 1/1] qxl: introduce hardware revision 5

In reply to Laszlo Ersek

----- Original Message -----

Quoted 63 lines

From: "Laszlo Ersek" <[email protected]>
To: "Yuri Benditovich" <[email protected]>
Cc: "Gerd Hoffmann" <[email protected]>, [email protected], "Eduardo Habkost" <[email protected]>, "Yan Vugenfirer" <[email protected]>
Sent: Thursday, March 5, 2020 5:01:24 PM
Subject: Re: [PULL 1/1] qxl: introduce hardware revision 5

Quoted 20 lines · Yuri Benditovich

----- Original Message -----

Quoted 17 lines

From: "Laszlo Ersek" <[email protected]>
To: "Gerd Hoffmann" <[email protected]>
Cc: [email protected], "Eduardo Habkost" <[email protected]>, "Yuri Benditovich" <[email protected]>, "Yan Vugenfirer" <[email protected]>
Sent: Thursday, March 5, 2020 1:28:23 AM
Subject: Re: [PULL 1/1] qxl: introduce hardware revision 5

this patch -- commit ed71c09ffd6f -- disables ACPI S3 in the Windows 10 guest for me, using OVMF and QXL.

The "Sleep" menu entry disappears from the power button icon/menu at the login screen, and "psshutdown -d -t 3" (from the pstools package) also stops working (it reports that the computer does not support S3).

At the parent commit (e18e5501d8ac), S3 suspend/resume works.

[...]

Quoted 10 lines
Quoted 7 lines

OVMF is built at current edk2 master: e63d54db9526.

In the Windows 10 guest, the installed driver has the following properties (per Device Manager):

- driver date: 7/28/2015
- driver version: 22.33.46.473

This is not what I would expect from any qxl driver for Win10 What is the name of display adapter?

"Red Hat QXL controller"

Quoted 1 line

The driver provider is 'Red Hat'?

In the "Red Hat QXL controller Properties" dialog:

- on the General tab, Manufacturer is "Red Hat, Inc."

- on the Driver tab, both the "Driver Provider" and the "Digital Signer" fields are "Red Hat, Inc."

This driver comes from "qxlwddm-0.1-12" (buildID=449635), in Brew.

In retrospect it looks like this driver was meant for Windows 8 only, but it happened to install under, and work OK for, Windows 10 too.

Quoted 1 line

Does your guest run with secure boot?

Yes, it does. (Double-checked it with "confirm-SecureBootUEFI" in PowerShell.)

Quoted 6 lines
Quoted 2 lines

I do not see such an effect with 'Sleep' with latest qemu master + OVMF + qxl + Win10, the sleep button does not disappear.

I'm happy to try other driver versions. Hopefully Windows 10 will actually see them as upgrading the currently installed driver. (Or should I uninstall first?)

This is the latest release
https://www.spice-space.org/download/windows/qxl-wddm-dod/qxl-wddm-dod-0.19/

Quoted 2 lines

Thanks!
Laszlo