[libvirt] [PATCH] Do not probe for power mgmt capabilities in lxc emulator

Martin Kletzander mkletzan at redhat.com
Fri Oct 31 10:55:43 UTC 2014


On Fri, Oct 31, 2014 at 10:22:37AM +0100, Ján Tomko wrote:
>It fails after 30 seconds with this error:
>error : virDBusCall:1429 : error from service: CanSuspend:
>Did not receive a reply. Possible causes include: the remote
>application did not send a reply, the message bus security
>policy blocked the reply, the reply timeout expired, or the
>network connection was broken.
>
>Only probe for the power mgmt capabilities when driver is non-NULL.
>This speeds up domain startup by 30 seconds.
>
>https://bugzilla.redhat.com/show_bug.cgi?id=1159227
>---
> src/lxc/lxc_conf.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
>diff --git a/src/lxc/lxc_conf.c b/src/lxc/lxc_conf.c
>index 17df7a8..e713ff8 100644
>--- a/src/lxc/lxc_conf.c
>+++ b/src/lxc/lxc_conf.c
>@@ -82,7 +82,9 @@ virCapsPtr virLXCDriverCapsInit(virLXCDriverPtr driver)
>         VIR_WARN("Failed to query host NUMA topology, disabling NUMA capabilities");
>     }
>
>-    if (virNodeSuspendGetTargetMask(&caps->host.powerMgmt) < 0)
>+    /* Only probe for power management capabilities in the driver,
>+     * not in the emulator */
>+    if (driver && virNodeSuspendGetTargetMask(&caps->host.powerMgmt) < 0)
>         VIR_WARN("Failed to get host power management capabilities");
>
>     if (virGetHostUUID(caps->host.host_uuid)) {
>--
>2.0.4
>

ACK after release,

Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20141031/8d05d312/attachment-0001.sig>


More information about the libvir-list mailing list