diff --git a/ChangeLog b/ChangeLog index 9b44e64443..ac56e67290 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Tue Apr 21 17:08:57 CEST 2009 Daniel Veillard + + * src/xend_internal.c: let xend try vcpu pinning operation even + if the domain is not running, patch by Takahashi Tomohiro + Tue Apr 21 15:38:29 CEST 2009 Daniel Veillard * docs/drvvbox.html.in docs/drvvbox.html: tiny fixes to VirtualBox diff --git a/src/xend_internal.c b/src/xend_internal.c index 2e2fd218e4..ca8c3139ac 100644 --- a/src/xend_internal.c +++ b/src/xend_internal.c @@ -3776,12 +3776,6 @@ xenDaemonDomainPinVcpu(virDomainPtr domain, unsigned int vcpu, return (-1); } - if (domain->id < 0) { - virXendError(domain->conn, VIR_ERR_INVALID_ARG, - _("Domain %s isn't running."), domain->name); - return(-1); - } - /* from bit map, build character string of mapped CPU numbers */ for (i = 0; i < maplen; i++) for (j = 0; j < 8; j++) if (cpumap[i] & (1 << j)) { @@ -3834,8 +3828,6 @@ xenDaemonDomainGetVcpus(virDomainPtr domain, virVcpuInfoPtr info, int maxinfo, __FUNCTION__); return (-1); } - if (domain->id < 0) - return(-1); root = sexpr_get(domain->conn, "/xend/domain/%s?op=vcpuinfo", domain->name); if (root == NULL)