Err, maybe a patch that actually compiles would be useful .. Jim Jim Fehlig wrote: > As discussed in [1], prefer xend interface for setting max memory. > > Regards, > Jim > > [1] https://www.redhat.com/archives/libvir-list/2008-November/msg00339.html >
Index: libvirt-0.4.6/src/xen_unified.c =================================================================== --- libvirt-0.4.6.orig/src/xen_unified.c +++ libvirt-0.4.6/src/xen_unified.c @@ -799,8 +799,15 @@ xenUnifiedDomainSetMaxMemory (virDomainP 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;
-- Libvir-list mailing list Libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list