From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fabio Fantoni Subject: Re: libxl videoram for cirrus graphics Date: Tue, 17 Sep 2013 19:51:29 +0200 Message-ID: References: <360717C0B01E6345BCBE64B758E22C2D102ECF@AMSPEX01CL03.citrite.net> <20130917132419.GG22986@zion.uk.xensource.com> <1379426424.11304.100.camel@hastur.hellion.org.uk> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5338725484831631964==" Return-path: In-Reply-To: <1379426424.11304.100.camel@hastur.hellion.org.uk> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: Fabio Fantoni , Wei Liu , Rob Hoes , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org --===============5338725484831631964== Content-Type: multipart/alternative; boundary=001a11c37828715a0204e697f82d --001a11c37828715a0204e697f82d Content-Type: text/plain; charset=ISO-8859-1 With upstream qemu >1.4 videoram must be atleast 8 mb with cirrus and 16 mb with stdvga or domUs will be unable to start (critical xen memory error). All details should be on topic about my patch of some months ago. 2013/9/17 Ian Campbell > On Tue, 2013-09-17 at 14:24 +0100, Wei Liu wrote: > > On Tue, Sep 17, 2013 at 12:54:57PM +0000, Rob Hoes wrote: > > > Hi, > > > > > > The videoram setting in xl config files is documented as follows: > > > > > > " > > > videoram=MBYTES > > > > > > Sets the amount of RAM which the emulated video card will contain, > which in turn limits the resolutions and bit depths which will be > available. The default amount of video ram for stdvga is 8MB which is > sufficient for e.g. 1600x1200 at 32bpp and videoram option is currently > working only when using the qemu-xen-traditional device-model. > > > > > > When using the emulated Cirrus graphics card (vga="cirrus") the > amount of video ram is fixed at 4MB which is sufficient for 1024x768 at 32 > bpp and videoram option is currently working only when using the upstream > qemu-xen device-model. > > > " > > > > > > XenServer also uses a default of 4MB video ram for cirrus graphics. > > > > > > However, when I use xl to create a VM with cirrus graphics, I get 8MB > of video RAM by default. Moreover, setting it to videoram=4 in the config > file leads to complaints from libxl: > > > > > > libxl_create.c:228:libxl__domain_build_info_setdefault: videoram > must be at least 8 mb > > > > > > Is there a bug in the logic in libxl_create.c? > > > > > > > I think the document needs to be updated. > > > > commit 2e814a017155b885e4d4b5a88dc05e7367a9722a > > Author: Fabio Fantoni > > Date: Fri Feb 15 13:32:27 2013 +0000 > > > > tools/libxl: Improve videoram setting > > > > - If videoram setting is less than 8 mb shows error and exit. > > I wonder why this is the case. Fabvio do you remmeberwhere this number > 8M came from for Cirrus? > > > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xen.org > http://lists.xen.org/xen-devel > --001a11c37828715a0204e697f82d Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
With upstream qemu >1.4 videoram must be atleast 8= mb with cirrus and 16 mb with stdvga or domUs will be unable to start (cri= tical xen memory error).
All details should be on topic about my p= atch of some months ago.


2013/9/= 17 Ian Campbell <ian.campbell@citrix.com>
On Tue, 2013-09-17 at 14:24 +0100, Wei Liu wrote:
> On Tue, Sep 17, 2013 at 12:54:57PM +0000, Rob Hoes wrote:
> > Hi,
> >
> > The videoram setting in xl config files is documented as follows:=
> >
> > "
> > videoram=3DMBYTES
> >
> > =A0 =A0 Sets the amount of RAM which the emulated video card will= contain, which in turn limits the resolutions and bit depths which will be= available. The default amount of video ram for stdvga is 8MB which is suff= icient for e.g. 1600x1200 at 32bpp and videoram option is currently working= only when using the qemu-xen-traditional device-model.
> >
> > =A0 =A0 When using the emulated Cirrus graphics card (vga=3D"= ;cirrus") the amount of video ram is fixed at 4MB which is sufficient = for 1024x768 at 32 bpp and videoram option is currently working only when u= sing the upstream qemu-xen device-model.
> > "
> >
> > XenServer also uses a default of 4MB video ram for cirrus graphic= s.
> >
> > However, when I use xl to create a VM with cirrus graphics, I get= 8MB of video RAM by default. Moreover, setting it to videoram=3D4 in the c= onfig file leads to complaints from libxl:
> >
> > =A0 =A0 libxl_create.c:228:libxl__domain_build_info_setdefault: v= ideoram must be at least 8 mb
> >
> > Is there a bug in the logic in libxl_create.c?
> >
>
> I think the document needs to be updated.
>
> commit 2e814a017155b885e4d4b5a88dc05e7367a9722a
> Author: Fabio Fantoni <= fabio.fantoni@heliman.it>
> Date: =A0 Fri Feb 15 13:32:27 2013 +0000
>
> =A0 =A0 tools/libxl: Improve videoram setting
>
> =A0 =A0 - If videoram setting is less than 8 mb shows error and exit.<= br>
I wonder why this is the case. Fabvio do you remmeberwhere this numbe= r
8M came from for Cirrus?




_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.x= en.org/xen-devel

--001a11c37828715a0204e697f82d-- --===============5338725484831631964== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --===============5338725484831631964==--