提交 ec4e3791 编写于 作者: D Daniel Veillard

* src/xend_internal.c: let xend try vcpu pinning operation even

  if the domain is not running, patch by Takahashi Tomohiro
daniel
上级 5237c2b8
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
......
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册