projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
577ec96
)
libxl: check for xc_domain_max_vcpus failure in libxl__build_pre
author
Matthew Daley
<mattjd@gmail.com>
Fri, 1 Nov 2013 00:29:21 +0000
(13:29 +1300)
committer
Ian Campbell
<ian.campbell@citrix.com>
Fri, 1 Nov 2013 13:13:40 +0000
(13:13 +0000)
Coverity-ID:
1055047
Signed-off-by: Matthew Daley <mattjd@gmail.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxl/libxl_dom.c
patch
|
blob
|
history
diff --git
a/tools/libxl/libxl_dom.c
b/tools/libxl/libxl_dom.c
index 1873459a2e959e8ea246f809a6aef9551958dd27..c164469a071eb40a0f51d2c8109b9ed3ad4317c4 100644
(file)
--- a/
tools/libxl/libxl_dom.c
+++ b/
tools/libxl/libxl_dom.c
@@
-209,7
+209,10
@@
int libxl__build_pre(libxl__gc *gc, uint32_t domid,
char *xs_domid, *con_domid;
int rc;
- xc_domain_max_vcpus(ctx->xch, domid, info->max_vcpus);
+ if (xc_domain_max_vcpus(ctx->xch, domid, info->max_vcpus) != 0) {
+ LOG(ERROR, "Couldn't set max vcpu count");
+ return ERROR_FAIL;
+ }
/*
* Check if the domain has any CPU affinity. If not, try to build