From: Stefano Stabellini Subject: Re: [PATCH] default the videoram to 4MB when it is not set Date: Tue, 28 Jul 2009 14:10:13 +0100 Message-ID: References: <20090728130624.GE5404@const.bordeaux.inria.fr> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="8323329-1048282494-1248786613=:7532" Return-path: In-Reply-To: <20090728130624.GE5404@const.bordeaux.inria.fr> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Samuel Thibault Cc: "xen-devel@lists.xensource.com" , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org --8323329-1048282494-1248786613=:7532 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable On Tue, 28 Jul 2009, Samuel Thibault wrote: > Stefano Stabellini, le Tue 28 Jul 2009 14:01:41 +0100, a =E9crit : > > + /* if vga_ram_size is not set and a videocard is required, defau= lt it to 4 MB */ > > + } else if ( !vga_ram_size && (std_vga_enabled || vmsvga_enabled)= ) { > > + fprintf(stderr,"Defaulting vram to 8MB\n"); >=20 > typo here :) >=20 > > + vga_ram_size =3D 4 * 1024 * 1024; >=20 Ooops, thanks for catching it :) this is the fixed version: --- diff --git a/vl.c b/vl.c index 8ad9c9e..62bed05 100644 --- a/vl.c +++ b/vl.c @@ -5667,6 +5667,10 @@ int main(int argc, char **argv, char **envp) { fprintf(stderr,"-videoram option does not work with cirrus vga de= vice model. Videoram set to 4M.\n"); vga_ram_size =3D 4 * 1024 * 1024; + /* if vga_ram_size is not set and a videocard is required, default i= t to 4 MB */ + } else if ( !vga_ram_size && (std_vga_enabled || vmsvga_enabled) ) { + fprintf(stderr,"Defaulting vram to 4MB\n"); + vga_ram_size =3D 4 * 1024 * 1024; } =20 phys_ram_size =3D (machine->ram_require + vga_ram_size) & ~RAMSIZE_F= IXED; --8323329-1048282494-1248786613=:7532 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.xensource.com http://lists.xensource.com/xen-devel --8323329-1048282494-1248786613=:7532--