Bug 1851845

Summary: [virtio-win-installer] Hit black screen on win2019/win10 after uninstalling qxl WDDM-DOD driver with seabios
Product: Red Hat Enterprise Linux 8 Reporter: xiagao
Component: spice-qxl-wddm-dodAssignee: ybendito
Status: CLOSED ERRATA QA Contact: SPICE QE bug list <spice-qe-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.3CC: kraxel, mtessun, tpelka, uril, ybendito
Target Milestone: rcKeywords: OtherQA, Rebase
Target Release: 8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: spice-qxl-wddm-dod-0.21-0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-05-18 15:54:29 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1661147    
Bug Blocks:    
Attachments:
Description Flags
Fix candidate 1 none

Description xiagao 2020-06-29 08:47:42 UTC
Description of problem:
Install virtio-win drivers, spice and guest-agent via virtio-win-guest-tools.exe, it succeed,and then uninstall them via this tool, guest hit black screen.

Version-Release number of selected component (if applicable):
100%

How reproducible:
virtio-win-1.9.12-1
kernel-4.18.0-214.el8.x86_64
qemu-kvm-4.2.0-25.module+el8.2.1+6985+9fd9d514.x86_64
spice-qxl-wddm-dod-0.19-2


Steps to Reproduce:
1.boot up a new installed win2019.
2.Install virtio-win drivers, spice and guest-agent via virtio-win-guest-tools.exe
3.Uninstall all of them via clicking uninstall button of via virtio-win-guest-tools.exe


Actual results:
after step 3, vm hit black screen.

Expected results:
uninstall works well on win2019

Additional info:

Comment 1 xiagao 2020-06-29 09:00:16 UTC
Hit this issue on seabios
seabios-1.13.0-1.module+el8.2.0+5520+4e5817f3.x86_64

Comment 2 xiagao 2020-06-29 09:11:13 UTC
Found spice-qxl-wddm-dod-0.19-2 is installed on win2019, but spice-qxl-wddm is only supported in win10 officially.

https://brewweb.engineering.redhat.com/brew/buildinfo?buildID=1039495

QXL is a paravirtualized display driver and a part of SPICE project.
This package provides QXL display-only driver for Windows 10 virtual machines.

Comment 3 xiagao 2020-06-30 02:32:43 UTC
(In reply to xiagao from comment #0)
> Description of problem:
> Install virtio-win drivers, spice and guest-agent via
> virtio-win-guest-tools.exe, it succeed,and then uninstall them via this
> tool, guest hit black screen.
> 
> Version-Release number of selected component (if applicable):
> 100%
> 
> How reproducible:
> virtio-win-1.9.12-1
> kernel-4.18.0-214.el8.x86_64
> qemu-kvm-4.2.0-25.module+el8.2.1+6985+9fd9d514.x86_64
> spice-qxl-wddm-dod-0.19-2

Correct the test version:
(host)
kernel-4.18.0-214.el8.x86_64
qemu-img-5.0.0-0.module+el8.3.0+6620+5d5e1420.x86_64
seabios-bin-1.13.0-1.module+el8.3.0+6124+819ee737.noarch

(guest)
os        :   win2019,win10(2004)
virtio-win:   virtio-win-1.9.12-1.iso
qxl driver:   spice-qxl-wddm-dod-0.19-2

Actually it's qxl's issue.

1. boot windows 2019 guest or latest version(2004) windows 10 guest
2. install qxl driver
3. uninstall qxl driver

after step 3, hit black screen.

> 
> 
> Steps to Reproduce:
> 1.boot up a new installed win2019.
> 2.Install virtio-win drivers, spice and guest-agent via
> virtio-win-guest-tools.exe
> 3.Uninstall all of them via clicking uninstall button of via
> virtio-win-guest-tools.exe
> 
> 
> Actual results:
> after step 3, vm hit black screen.
> 
> Expected results:
> uninstall works well on win2019
> 
> Additional info:

Comment 4 ybendito 2020-07-02 06:06:30 UTC
At the moment it is unknown:
1) whether this is an issue of qxl-wddm-dod or qemu
2) whether it depends on virtio-win installer or not
Please help us to find it out.
a) Whether this happens with the qxl-wddm-dod driver alone (without virtio-win installer)
b) Whether this is a regression of qxl-wddm-dod driver
There were only 4 releases of the driver 0.20, 0.19, 0.18, 0.15
(the last digit 0/1/2 the package of the same driver)
Oldest one is 0.15.0, https://brewweb.engineering.redhat.com/brew/buildinfo?buildID=527967
c) Whether this is a regression of qemu
So, please try it with earlier generations of qemu (first of all just with different qemu major/minor, not with different builds)

Comment 5 xiagao 2020-07-04 07:48:15 UTC
(In reply to ybendito from comment #4)
> At the moment it is unknown:
> 1) whether this is an issue of qxl-wddm-dod or qemu
> 2) whether it depends on virtio-win installer or not
> Please help us to find it out.
> a) Whether this happens with the qxl-wddm-dod driver alone (without
> virtio-win installer)
Can reproduce with the qxl-wddm-dod driver alone without the installer.

> b) Whether this is a regression of qxl-wddm-dod driver
> There were only 4 releases of the driver 0.20, 0.19, 0.18, 0.15
> (the last digit 0/1/2 the package of the same driver)
> Oldest one is 0.15.0,
> https://brewweb.engineering.redhat.com/brew/buildinfo?buildID=527967
Can reproduce with 0.15.0

> c) Whether this is a regression of qemu
> So, please try it with earlier generations of qemu (first of all just with
> different qemu major/minor, not with different builds)
Can't reproduce with qemu-kvm-4.2.0-28.module+el8.2.1+7211+16dfe810.x86_64,
this issue happened in qemu-kvm-5.0.0-0.module+el8.3.0+6620+5d5e1420.x86_64

So, it seems the qemu's bug.

Comment 7 Gerd Hoffmann 2020-07-08 07:59:47 UTC
Any change when starting qemu using '-device qxl-vga,rev=4' ?

Comment 8 ybendito 2020-07-12 06:39:05 UTC
@xiagao, Can you please check whether the problem can be reproduced with following change in the command line:
-vga none -device qxl-vga,revision=4,... 
Thanks in advance

Comment 9 ybendito 2020-07-12 09:45:11 UTC
Please check that attached driver fixes the problem (without revision=4)

Comment 10 ybendito 2020-07-12 09:47:25 UTC
Created attachment 1700717 [details]
Fix candidate 1

Comment 11 xiagao 2020-07-13 01:21:28 UTC
(In reply to ybendito from comment #10)
> Created attachment 1700717 [details]
> Fix candidate 1

Sorry, reply late.
It works with this fix.

Comment 20 errata-xmlrpc 2021-05-18 15:54:29 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (spice-qxl-wddm-dod bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2021:1885