aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2008-05-20 09:41:52 +0100
committerKeir Fraser <keir.fraser@citrix.com>2008-05-20 09:41:52 +0100
commit7087fca7e1d59175c21011c82fdf7f5dd2ad602e (patch)
treebfaa9d467aa9efd7480524b5c6d5afb071f3f733 /tools
parent8ef19bcf73c05ba49a1d606d994e67baad2a7c37 (diff)
downloadxen-7087fca7e1d59175c21011c82fdf7f5dd2ad602e.tar.gz
xen-7087fca7e1d59175c21011c82fdf7f5dd2ad602e.tar.bz2
xen-7087fca7e1d59175c21011c82fdf7f5dd2ad602e.zip
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>
Diffstat (limited to 'tools')
-rw-r--r--tools/ioemu/hw/xenfb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/ioemu/hw/xenfb.c b/tools/ioemu/hw/xenfb.c
index d1f34c4562..67bb38cca5 100644
--- a/tools/ioemu/hw/xenfb.c
+++ b/tools/ioemu/hw/xenfb.c
@@ -498,7 +498,7 @@ static int xenfb_configure_fb(struct xenfb *xenfb, size_t fb_len_lim,
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);