diff options
author | George Dunlap <george.dunlap@eu.citrix.com> | 2012-04-02 17:22:31 +0100 |
---|---|---|
committer | George Dunlap <george.dunlap@eu.citrix.com> | 2012-04-02 17:22:31 +0100 |
commit | ac84df4793663965b12462d06e38eee03ec36891 (patch) | |
tree | 4bcfdd437602ea5a1221c51a911585199578577a /tools/libxl/libxl_pci.c | |
parent | 69c48b169edf58da83de632ad124867da2698a8f (diff) | |
download | xen-ac84df4793663965b12462d06e38eee03ec36891.tar.gz xen-ac84df4793663965b12462d06e38eee03ec36891.tar.bz2 xen-ac84df4793663965b12462d06e38eee03ec36891.zip |
libxl: Handle non-ballooned, zero slackmem properly for pci passthru
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>
Diffstat (limited to 'tools/libxl/libxl_pci.c')
-rw-r--r-- | tools/libxl/libxl_pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/libxl/libxl_pci.c b/tools/libxl/libxl_pci.c index 4175ac3ef3..622abd4d50 100644 --- a/tools/libxl/libxl_pci.c +++ b/tools/libxl/libxl_pci.c @@ -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; |