提交 431d40fa 编写于 作者: D Daniel Veillard

* src/xen_unified.c: use preferably xend method to update

  the maximum memory of a xen guest (Jim Fehlig)
Daniel
上级 60c8b285
Thu Nov 27 17:15:10 CET 2008 Daniel Veillard <veillard@redhat.com>
* src/xen_unified.c: use preferably xend method to update
the maximum memory of a xen guest (Jim Fehlig)
Wed Nov 26 15:46:07 CET 2008 Daniel Veillard <veillard@redhat.com>
* libvirt.spec.in: cleanups and missing dep for hal
......
......@@ -819,8 +819,15 @@ xenUnifiedDomainSetMaxMemory (virDomainPtr dom, unsigned long memory)
GET_PRIVATE(dom->conn);
int i;
/* Prefer xend for setting max memory */
if (priv->opened[XEN_UNIFIED_XEND_OFFSET]) {
if (xenDaemonDomainSetMaxMemory (dom, memory) == 0)
return 0;
}
for (i = 0; i < XEN_UNIFIED_NR_DRIVERS; ++i)
if (priv->opened[i] &&
if (i != XEN_UNIFIED_XEND_OFFSET &&
priv->opened[i] &&
drivers[i]->domainSetMaxMemory &&
drivers[i]->domainSetMaxMemory (dom, memory) == 0)
return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册