ia64/xen-unstable

changeset 17679:13dda75739f2

ioemu: Fix interpretation of missing or zero vfb videoram

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 <armbru@redhat.com>
author Keir Fraser <keir.fraser@citrix.com>
date Tue May 20 09:41:52 2008 +0100 (2008-05-20)
parents 2ada81810ddb
children 7c8e2a2c006e
files tools/ioemu/hw/xenfb.c
line diff
     1.1 --- a/tools/ioemu/hw/xenfb.c	Mon May 19 10:03:26 2008 +0100
     1.2 +++ b/tools/ioemu/hw/xenfb.c	Tue May 20 09:41:52 2008 +0100
     1.3 @@ -498,7 +498,7 @@ static int xenfb_configure_fb(struct xen
     1.4  			fb_len_lim, fb_len_max);
     1.5  		fb_len_lim = fb_len_max;
     1.6  	}
     1.7 -	if (fb_len > fb_len_lim) {
     1.8 +	if (fb_len_lim && fb_len > fb_len_lim) {
     1.9  		fprintf(stderr,
    1.10  			"FB: frontend fb size %zu limited to %zu\n",
    1.11  			fb_len, fb_len_lim);