RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 874524 - Title number is wrong when a guest with 4 monitors running on RHEVM.
Summary: Title number is wrong when a guest with 4 monitors running on RHEVM.
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: spice
Version: 7.0
Hardware: x86_64
OS: Linux
low
low
Target Milestone: rc
: ---
Assignee: Jonathon Jongsma
QA Contact: SPICE QE bug list
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-11-08 11:26 UTC by Geyang Kong
Modified: 2016-04-26 14:40 UTC (History)
12 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-04-22 10:04:12 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
screenshot (699.98 KB, image/png)
2012-11-09 02:17 UTC, Geyang Kong
no flags Details
New screen shot (960.64 KB, application/octet-stream)
2013-05-10 05:48 UTC, Geyang Kong
no flags Details
Log file (112.45 KB, text/plain)
2013-05-10 05:48 UTC, Geyang Kong
no flags Details

Description Geyang Kong 2012-11-08 11:26:11 UTC
Description of problem:
  Title number is wrong when a guest with 4 monitors running on RHEVM.

Version-Release number of selected component (if applicable):
virt-viewer-0.5.2-16.el6.x86_64

Reproduce steps:
1. Install a win7 x86_64 guest on rhevm.
2. Edit the guest, make sure it has spice device and 4 monitors
3. Install qxl driver
4. Restart guest.
5. Extend the desktop to 4 monitors.
6. Right click on desktop, choose screen resolution.
7. Click Identify.
8. Compare numbers on displays with form title numbers.

Actual results:
1. The 3rd monitor is displayed in 4th form.
2. The 4th monitor is displayed in 3rd form

Expected results:
1. Number of displays should be same as title number.

Additional info:

Comment 2 Geyang Kong 2012-11-09 02:17:08 UTC
Created attachment 641217 [details]
screenshot

Comment 5 Marc-Andre Lureau 2013-05-09 22:53:38 UTC
Do you have a reproducer? I have never encountered that bug.

From what I can read in virt-viewer code, it already correctly reports monitor number (thanks to nth-display property, although it is more nth-monitor)

However, I don't think the Windows QXL driver guarantees mapping of nth monitor to nth channel. Moving there for now.

Comment 6 Geyang Kong 2013-05-10 05:46:53 UTC
Yes, I can still reproduce this. And this time, I got a log file with SPICE_DEBUG=1. I will attach log file and new snapshot later.

Comment 7 Geyang Kong 2013-05-10 05:48:01 UTC
Created attachment 745927 [details]
New screen shot

Comment 8 Geyang Kong 2013-05-10 05:48:58 UTC
Created attachment 745928 [details]
Log file

Comment 11 Alon Levy 2014-05-01 08:49:24 UTC
I could not reproduce this with spice-guest-tools 0.7.4 (http://www.spice-space.org/download/windows/spice-guest-tools/spice-guest-tools-0.74.exe) running 

The driver is not responsible for spice display channels.

The order of channel creation is implicit by the order of pci card initialization, to make it explicit we need to add a number to the interface (QXLInterface) between qemu and spice.

# Main VGA channel creation
main->..->pc_vga_init->..->qxl_init_primary->qxl_init_common->..->spice_server_add_interface->red_dispatcher_init->red_dispatcher_display_channel_create

# Later via ordering of statements in qemu's main
main->qemu_opts_foreach->device_init_func->qdev_device_add->..->qxl_init_secondary->..->spice_server_add_interface->red_dispatcher_init->red_dispatcher_display_channel_create

Since main ordering can change in the future (red_dispatcher calls are serialized via a pipe) we should add an identifier.

Needs fixes in spice & qemu, moving to spice (will clone later). Already at low priority.

Comment 15 Marc-Andre Lureau 2015-04-22 00:43:59 UTC
Can you still reproduce? thanks

Comment 16 zhoujunqin 2015-04-22 07:28:19 UTC
(In reply to Marc-Andre Lureau from comment #15)
> Can you still reproduce? thanks

Hi Marc-Andre Lureau,
Since bug reporter is not here, please needinfo to me if you're not clear with following steps, thanks.

I cannot reproduce this issue any more.

Environment:
Host setup with 7.1 released iso.
Guest: Prepare a win7 x86_64 guest on rhevm.

Packages version:
libvirt-1.2.14-1.el7.x86_64
spice-gtk-0.22-2.el7.x86_64
xorg-x11-drv-qxl-0.1.1-12.el7.x86_64
virt-viewer-0.6.0-12.el7.x86_64
spice-vdagent-0.14.0-9.el7.x86_64

Steps:
1. Prepare a win7 x86_64 guest on rhevm, make sure it has spice device and 4 monitors and qxl driver installed.
2. Extend the desktop to 4 monitors.
3. Right click on desktop, choose screen resolution.
4. Click Identify.
5. Compare numbers on displays with form title numbers.

After step5, Number of displays are same with title number.

Comment 17 Marc-Andre Lureau 2015-04-22 10:04:12 UTC
(In reply to zhoujunqin from comment #16)
> (In reply to Marc-Andre Lureau from comment #15)
> > Can you still reproduce? thanks
> 
> Hi Marc-Andre Lureau,
> Since bug reporter is not here, please needinfo to me if you're not clear
> with following steps, thanks.
> 
> I cannot reproduce this issue any more.

thanks, let's close it then


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