mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
libxl: check for xc_domain_max_vcpus failure in libxl__build_pre
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>
This commit is contained in:
1 parent
577ec96e7d
commit
2bb02b31fc
1 file changed
+4
-1
@@ -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
|
||||
|
||||