Bug 1477519

Summary: xrandr in RHEL 7 guest should report supported modes between 640x480 - 2560x1600
Product: Red Hat Enterprise Linux 7 Reporter: Andrei Stepanov <astepano>
Component: xorg-x11-drv-qxlAssignee: Default Assignee for SPICE Bugs <rh-spice-bugs>
Status: CLOSED DUPLICATE QA Contact: SPICE QE bug list <spice-qe-bugs>
Severity: low Docs Contact:
Priority: low    
Version: 7.4CC: cfergeau, dblechte, rduda, tpelka, victortoso
Target Milestone: rcKeywords: Regression
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-12-12 10:58:44 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:

Description Andrei Stepanov 2017-08-02 10:10:17 UTC
RHEL 7.4 guest reports supported modes between: 800x600 - 1920x1080

User should be able to choose from higher resolutions.

At least, this range should be between 640x480 - 2560x1600

This is true for "Gnome->Settings->Displays" and for xrandr.

xorg-x11-drv-qxl-0.1.5-3.el7.x86_64

How reproducible: always

Steps to Reproduce:
1. Log to RHV Admin/User webportal.
2. Have RHEL 7 VM.
3. Connect to remote virtual desktop.
4. Go to Applications->SystemTools->Settings->Displays->Resolution

Actual results: Range of supported modes is between 800x600 - 1920x1080

Expected results: This range should be between: 640x480 - 2560x1600

Additional info: Windows7 guest reports correct range of supported modes.

Comment 2 Victor Toso 2018-12-11 14:56:33 UTC
Doing quick triage. On RHEL 7.6 guest, minimum seems to be correct ~ 640x480.
Tried to increase memory and did not affect xrandr output nor GNOME's display settings. 1920x1200 seems to be the max (fullscreen here is 1920x1080)

> [root@localhost toso]# xrandr
> Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 8192 x 8192
> Virtual-0 connected primary 1920x1080+0+0 0mm x 0mm
>    1920x1080     60.00*+
>    1920x1200     59.95  
>    1600x1200     59.95  
>    1680x1050     60.00  
>    1400x1050     60.00  
>    1280x1024     59.95  
>    1440x900      59.99  
>    1280x960      59.99  
>    1280x854      59.95  
>    1280x800      59.96  
>    1280x720      59.97  
>    1152x768      59.95  
>    1024x768      59.95  
>    800x600       59.96  
>    848x480       59.94  
>    720x480       59.94  
>    640x480       59.94

Radek, do you happen to know if this is a regression?
Not sure who is at fault here but modes seems to come from the kernel

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/gpu/drm/qxl/qxl_display.c#n235

Comment 3 Radek Duda 2018-12-12 10:13:27 UTC
I tried this to reproduce on rhel7.3 host. The maximum resolution here is 1920x1080 as well.
Nevertheless I think it is a regression. I remember I could set higher resolution to rhel7 guest than 1920x1080 in the past. Moreover we have a testcase for this https://tcms.engineering.redhat.com/case/545010

Comment 5 Christophe Fergeau 2018-12-12 10:21:45 UTC
This is an issue in the guest QXL KMS driver

Comment 6 Christophe Fergeau 2018-12-12 10:58:44 UTC

*** This bug has been marked as a duplicate of bug 1208862 ***