libxl: Handle non-ballooned, zero slackmem properly for pci passthru
authorGeorge Dunlap <george.dunlap@eu.citrix.com>
Mon, 2 Apr 2012 16:22:31 +0000 (17:22 +0100)
committerGeorge Dunlap <george.dunlap@eu.citrix.com>
Mon, 2 Apr 2012 16:22:31 +0000 (17:22 +0100)
The e820_sanitize() function in libxl_pci.c expects one of its arguments to
be non-zero; but since a recent changeset, it can typically expect *to be*
zero.  Since the zero case is handled properly, just remove the check.

Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
Committed-by: Ian Jackson <ian.jackson.citrix.com>
tools/libxl/libxl_pci.c

index 4175ac3ef334c7c6d58132107ea05f3df8a610b9..622abd4d50b917108486eee2ac7699976f0a0335 100644 (file)
@@ -1177,7 +1177,7 @@ static int e820_sanitize(libxl_ctx *ctx, struct e820entry src[],
     uint32_t i, idx = 0, nr;
     struct e820entry e820[E820MAX];
 
-    if (!src || !map_limitkb || !balloon_kb || !nr_entries)
+    if (!src || !map_limitkb || !nr_entries)
         return ERROR_INVAL;
 
     nr = *nr_entries;