mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-10-30 01:43:23 +00:00
* src/xen_unified.c: use preferably xend method to update
the maximum memory of a xen guest (Jim Fehlig) Daniel
This commit is contained in:
parent
60c8b285a6
commit
431d40fa9c
@ -1,3 +1,8 @@
|
|||||||
|
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>
|
Wed Nov 26 15:46:07 CET 2008 Daniel Veillard <veillard@redhat.com>
|
||||||
|
|
||||||
* libvirt.spec.in: cleanups and missing dep for hal
|
* libvirt.spec.in: cleanups and missing dep for hal
|
||||||
|
@ -819,8 +819,15 @@ xenUnifiedDomainSetMaxMemory (virDomainPtr dom, unsigned long memory)
|
|||||||
GET_PRIVATE(dom->conn);
|
GET_PRIVATE(dom->conn);
|
||||||
int i;
|
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)
|
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 &&
|
||||||
drivers[i]->domainSetMaxMemory (dom, memory) == 0)
|
drivers[i]->domainSetMaxMemory (dom, memory) == 0)
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user