From: Markus Armbruster Subject: [PATCH] ioemu: Fix interpretation of missing or zero vfb videoram Date: Mon, 19 May 2008 15:06:40 +0200 Message-ID: <878wy6tpcv.fsf_-_@pike.pond.sub.org> References: <877idyxq1i.fsf@pike.pond.sub.org> <8763tgatr6.fsf@pike.pond.sub.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: In-Reply-To: <8763tgatr6.fsf@pike.pond.sub.org> (Markus Armbruster's message of "Thu\, 15 May 2008 09\:53\:01 +0200") List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Changeset 17289:d97e61001d81: introduced vfb configuration parameter videoram, defaulting to zero. Value zero was interpreted as unlimited. Changeset 17630:53195719f762 accidentally dropped the special case for zero, which broke guests that don't specify videoram, or specify videoram=0. Restore the old behavior. Signed-off-by: Markus Armbruster diff -r e66aefdfedcc tools/ioemu/hw/xenfb.c --- a/tools/ioemu/hw/xenfb.c Mon May 19 09:43:42 2008 +0100 +++ b/tools/ioemu/hw/xenfb.c Mon May 19 14:57:56 2008 +0200 @@ -498,7 +498,7 @@ static int xenfb_configure_fb(struct xen fb_len_lim, fb_len_max); fb_len_lim = fb_len_max; } - if (fb_len > fb_len_lim) { + if (fb_len_lim && fb_len > fb_len_lim) { fprintf(stderr, "FB: frontend fb size %zu limited to %zu\n", fb_len, fb_len_lim);