]> xenbits.xensource.com Git - libvirt.git/commitdiff
* src/xend_internal.c: let xend try vcpu pinning operation even
authorDaniel Veillard <veillard@redhat.com>
Tue, 21 Apr 2009 15:10:23 +0000 (15:10 +0000)
committerDaniel Veillard <veillard@redhat.com>
Tue, 21 Apr 2009 15:10:23 +0000 (15:10 +0000)
  if the domain is not running, patch by Takahashi Tomohiro
daniel

ChangeLog
src/xend_internal.c

index 9b44e6444357f14c78c237ca25ec4c8f81224e23..ac56e672909e450768dc953093bb39391d767ff8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Tue Apr 21 17:08:57 CEST 2009 Daniel Veillard <veillard@redhat.com>
+
+       * 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 <veillard@redhat.com>
 
        * docs/drvvbox.html.in docs/drvvbox.html: tiny fixes to VirtualBox
index 2e2fd218e440b3418a11e7cdb8b9839e24d4063a..ca8c3139acd4d2052f42343eab4b4a587069bc4c 100644 (file)
@@ -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)