Bug 980217 - graphics corruption in virtual machines with VNC/Cirrus
Summary: graphics corruption in virtual machines with VNC/Cirrus
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Fedora
Classification: Fedora
Component: virt-viewer
Version: 19
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Daniel Berrangé
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-07-01 18:32 UTC by Jeff Bastian
Modified: 2016-01-20 01:10 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-12-17 18:13:38 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
graphics corruption in virtual machine (532.95 KB, image/png)
2013-07-01 18:32 UTC, Jeff Bastian
no flags Details
Xorg.0.log from the VM (22.11 KB, text/plain)
2013-07-01 18:33 UTC, Jeff Bastian
no flags Details
more graphics corruption (414.50 KB, image/png)
2013-07-01 18:41 UTC, Jeff Bastian
no flags Details
Xorg.0.log with cirrus driver installed (26.19 KB, text/plain)
2013-07-01 18:46 UTC, Jeff Bastian
no flags Details
qemu-qxl-cirrus-gnome-f20-colours-comparison.png (1.54 MB, image/png)
2013-08-31 06:34 UTC, Mike FABIAN
no flags Details

Description Jeff Bastian 2013-07-01 18:32:34 UTC
Created attachment 767470 [details]
graphics corruption in virtual machine

Description of problem:
Fedora 19 virtual machines on an F19 host have corrupt graphics when using a virtual Spice/QXL graphics setup.  They look ok with Spice/QXL.  The corruption usually only affects the title bar of the focused window, but sometimes it affects the contents of the window too as shown in the attached screenshot.

Version-Release number of selected component (if applicable):
virt-manager-0.10.0-1.fc19.noarch
virt-viewer-0.5.6-1.fc19.x86_64
libvirt-1.0.5.2-1.fc19.x86_64

How reproducible:
every time?

Steps to Reproduce:
1. create an F19 virtual machine and switch between Spice/QXL and VNC/Cirrus graphics

Actual results:
weird artifacts in VNC/Cirrus graphics

Expected results:
clean graphics

Additional info:

Comment 1 Jeff Bastian 2013-07-01 18:33:27 UTC
Created attachment 767471 [details]
Xorg.0.log from the VM

Comment 2 Jeff Bastian 2013-07-01 18:38:38 UTC
Hmm, the Xorg.0.log shows it's using the fbdev driver.  On further inspection, I found I didn't have the xorg-x11-drv-cirrus package installed on the VM.

I installed it and rebooted but the graphics corruption is still present.

Comment 3 Jeff Bastian 2013-07-01 18:41:23 UTC
Created attachment 767472 [details]
more graphics corruption

I tried booting with nomodeset kernel command line option and the graphics corruption is even weirder: check out the strange angled line through the terminal program and how the text follows that angle.

xterm is affected the same way as gnome-terminal.

Comment 4 Jeff Bastian 2013-07-01 18:46:04 UTC
Created attachment 767474 [details]
Xorg.0.log with cirrus driver installed

Comment 5 chandrashekar shastri 2013-08-20 17:02:38 UTC
This issue is also seen on the Upstream:

Host and Guest Kernel : 3.9.5-301.fc19.x86_64 (Fedora19) 

libvirtd --version
libvirtd (libvirt) 1.1.1

qemu-system-x86_64 --version
QEMU emulator version 1.5.91, Copyright (c) 2003-2008 Fabrice Bellard

Libvirt commit a7f94a40bb2554c56d0c6bea98a5843690dc3933. 

qemu commit b9ac5d923b820a0f0152a2df56067e55ce34f487.

When we boot the Fedora19 guest with video as "Cirrus", the login screen appears, after logging in blank screen appears. This issue is not seen with vga video, it works fine.

Comment 6 Mike FABIAN 2013-08-31 06:30:20 UTC
I think I see the same problem when using qemu-1.6.0-5.fc19.x86_64
on Fedora 19.

The graphics corruption occurs with:

ionice -c 3 qemu-kvm -enable-kvm -m 2048M -smp 4 -drive file=./Fedora-20-Alpha-TC2-x86_64-netinst.iso.qcow2,index=0,media=disk,cache=unsafe -localtime -serial file:/tmp/qemu-Fedora-20-Alpha-TC2-x86_64-netinst.iso.qcow2-output.log -name Fedora-20-Alpha-TC2-x86_64-netinst.iso.qcow2 -cdrom /local/mfabian/iso/Fedora-20-Alpha-TC2/Fedora-20-Alpha-TC2-x86_64-netinst.iso -boot c -spice port=6000,disable-ticketing -vga cirrus -display vnc=:4 -net nic -net user,hostname=Fedora-20-Alpha-TC2-x86_64-netinst.iso.qcow2,hostfwd=tcp::5556-:22 -monitor stdio -usb

(cirrus), but it looks OK with:

ionice -c 3 qemu-kvm -enable-kvm -m 2048M -smp 4 -drive file=./Fedora-20-Alpha-TC2-x86_64-netinst.iso.qcow2,index=0,media=disk,cache=unsafe -localtime -serial file:/tmp/qemu-Fedora-20-Alpha-TC2-x86_64-netinst.iso.qcow2-output.log -name Fedora-20-Alpha-TC2-x86_64-netinst.iso.qcow2 -cdrom /local/mfabian/iso/Fedora-20-Alpha-TC2/Fedora-20-Alpha-TC2-x86_64-netinst.iso -boot c -spice port=6000,disable-ticketing -vga qxl -display vnc=:4 -net nic -net user,hostname=Fedora-20-Alpha-TC2-x86_64-netinst.iso.qcow2,hostfwd=tcp::5556-:22 -monitor stdio -usb

(qxl)

Comment 7 Mike FABIAN 2013-08-31 06:34:49 UTC
Created attachment 792372 [details]
qemu-qxl-cirrus-gnome-f20-colours-comparison.png

Left side: qxl
Right side: cirrus

Comment 8 Christophe Fergeau 2013-09-02 08:41:23 UTC
Mike, there is something I'm missing. In this bug, you say cirrus + vnc gives corruption and qxl + vnc is fine, but you also say in bug #948717 that you are having the issue on f20. #948717 is about graphics corruption with qxl + vnc, so I'm confused.

Comment 9 Mike FABIAN 2013-09-02 11:07:24 UTC
(In reply to Christophe Fergeau from comment #8)
> Mike, there is something I'm missing. In this bug, you say cirrus + vnc
> gives corruption and qxl + vnc is fine,

No, the screenshot in this bug shows that qxl and spice is fine!
(See the titlebar above my screenshots, both qxl and cirrus
are used with spice).

> but you also say in bug #948717 that
> you are having the issue on f20. #948717 is about graphics corruption with
> qxl + vnc, so I'm confused.

Yes, the pixel garbage problem with qxl + vnc as reported  in bug#948717,
which I reported for f19, still exists in f20.

My screenshot

https://bugzilla.redhat.com/attachment.cgi?id=792372

shows graphics corruption for cirrus + spice on the right side
and correct display for qxl + spice on the left side.


So I think see the same

Jeff Bastian, comment#0> weird artifacts in VNC/Cirrus graphics

also for spice/cirrus.

Or at least very similar artifacts.

Should I open a new bug for the spice/cirrus problem?
Or is that related to the VNC/cirrus problem?

I thought it is related because the corruption looks similar.

Comment 10 Christophe Fergeau 2013-09-02 12:57:58 UTC
(In reply to Mike FABIAN from comment #9)
> My screenshot
> 
> https://bugzilla.redhat.com/attachment.cgi?id=792372
> 
> shows graphics corruption for cirrus + spice on the right side
> and correct display for qxl + spice on the left side.
> 

This was not explicit at all as your qemu commandline in https://bugzilla.redhat.com/show_bug.cgi?id=980217#c6 has '-vga qxl -display vnc=:4', so this is the bit that misled me. Thanks for clarifying that the screenshot is about spice/qxl VS spice/vnc.

Comment 11 Christophe Fergeau 2013-09-02 12:58:13 UTC
(In reply to Mike FABIAN from comment #9)
> My screenshot
> 
> https://bugzilla.redhat.com/attachment.cgi?id=792372
> 
> shows graphics corruption for cirrus + spice on the right side
> and correct display for qxl + spice on the left side.
> 

This was not explicit at all as your qemu commandline in https://bugzilla.redhat.com/show_bug.cgi?id=980217#c6 has '-vga qxl -display vnc=:4', so this is the bit that misled me. Thanks for clarifying that the screenshot is about spice/qxl VS spice/cirrus.

Comment 12 Cole Robinson 2013-12-17 18:13:38 UTC
With up to date F19 guest using cirrus graphics, I don't see the corruption shown in the screen shots (I did reproduce it at the time this bug was filed though). I think this has since been fixed by an xorg driver or kernel update in the guest.

Closing as WORKSFORME, if anyone can still reproduce with up2date f19+, please reopen.

Comment 13 phatfish 2014-01-18 23:51:12 UTC
Hi,

Google brought me here and i believe i am seeing this issue in F20 having just run "yum update" on a fresh install.

I'm running an Arch Linux host (libvirt+kvm+vnc) which had a system update run yesterday, so the host is pretty much the latest version of everything involved.

So with:

<video>
  <model type='cirrus' vram='9216' heads='1'/>
  <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
</video>

I get the same corruption in the screenshot posted by Mike.

Simply editing this to:

<video>
  <model type='qxl' vram='9216' heads='1'/>
  <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
</video>

The corruption goes away.

I also saw similar issues in F19, i don't think i had run any updates on that install however.

Regards


Note You need to log in before you can comment on or make changes to this bug.