Bug 623523

Summary: Wrong size of video memory setting in guest
Product: Red Hat Enterprise Linux 6 Reporter: Nan Zhang <nzhang>
Component: libvirtAssignee: Daniel Veillard <veillard>
Status: CLOSED NOTABUG QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: low    
Version: 6.0CC: berrange, eblake, llim, tyan, xen-maint
Target Milestone: rcKeywords: RHELNAK
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-08-23 05:38:07 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Windows VRAM size
none
Xorg.0.log for cirrus none

Description Nan Zhang 2010-08-12 03:12:38 UTC
Created attachment 438332 [details]
Windows VRAM size

Description of problem:
Inconsistent VRAM between guest and XML definition.

Version-Release number of selected component (if applicable):
qemu-kvm-0.12.1.2-2.109.el6.x86_64
libvirt-0.8.1-23.el6.x86_64
kernel-2.6.32-59.1.el6.x86_64

How reproducible:
Always

Steps to Reproduce:
Set video ram in guest:
    <video>
      <model type='cirrus' vram='9216' heads='1'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
    </video>
  
Actual results:
On Linux guest:
(II) VESA(0): VESA VBE Total Mem: 16384 kB

On Windows guest:
Memory Size: 4 MB

Expected results:
The guest video memory should be consistent with specified.

Additional info:
Attached log and screenshot for reference.

Comment 1 Nan Zhang 2010-08-12 03:19:04 UTC
Created attachment 438333 [details]
Xorg.0.log for cirrus

Comment 3 RHEL Program Management 2010-08-12 03:38:36 UTC
This issue has been proposed when we are only considering blocker
issues in the current Red Hat Enterprise Linux release.

** If you would still like this issue considered for the current
release, ask your support representative to file as a blocker on
your behalf. Otherwise ask that it be considered for the next
Red Hat Enterprise Linux release. **

Comment 4 Nan Zhang 2010-08-12 04:36:46 UTC
Sorry, I put a wrong number for linux guest, the correct size as following.

On Linux guest:
...
(II) VESA(0): VESA VBE Total Mem: 4096 kB
...

Comment 5 Daniel Veillard 2010-08-13 14:49:45 UTC
I don't think it's a bug. We looked at it actually while I was in Beijing,
and the driver on XOrg for cirrus was always limiting the memory to 4MB.
I would not be surprized if the driver on Windows didn't do the same, because
all real cirrus logic based card only had 4MB of memory at the maximum.
And from my recollection of the mid-90's a graphic card like this with
4MB was rather high-end, then other chipset were developped taking advantage
of more memory.

So I think this is a limitation of the Cirrus Logic drivers both for Linux
and Windows, I don't think it's a libvirt bug actually. In any case I don't
see this fixed at the libvirt level or for 6.0

Daniel

Comment 6 Nan Zhang 2010-08-16 06:52:52 UTC
Daniel,

But the value vram='9216' doesn't make sense in XML description, if we should make some changes in XML to corresponding with the real allocated memory size?

Thanks,
Neil

Comment 7 Daniel Berrangé 2010-08-16 10:39:24 UTC
This is a known limitation of the Cirrus card in QEMU, you can't change the VRAM. This bit of XML was added for the SVGA and SPICE QXL cards which are configurable. Hopefully we can make Cirrus configurable too in the future.

Comment 8 Nan Zhang 2010-08-23 05:38:07 UTC
OK, thanks for the explanation! Close it with NOTABUG.