From nobody Mon Feb 9 05:00:30 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1692220161; cv=none; d=zohomail.com; s=zohoarc; b=UUNfEUunKh0YiszoPYGaQUgjwW6BjygMCbzn6T0I34bZzo7yut/uiFZ99WsRwLyGgbU6PE7Eqyw3dNS2nMjPU5757ysLqmrobojB0z9NIswxkdfZQNVU9Ke9VEzLNADWc6G6F3cxorWxjuL0tx9VkM5y1NyXqxSCsG/4r6T4jlI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1692220161; h=Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Sender:Subject:To; bh=TVkagfbEVV0F6z9LzIDiUpnSAYKGRal3bF6jmc74PqE=; b=nS1BtTLIpS94synxyhaqRQmcTzeZrTvnc5Gfc+nO0/pPFueXNW4PyJ/3mVBTdLOrff2+rjE0oAy1y/1V3TZaBCEc33bI+ylB7vICmvc5apXKA7tBoABGF3pAHHB/fuYGL2HckOSKogiPFFF5qaSdIWKPdWGiotPxi0HaXNh/l7s= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1692220160996788.7665349687127; Wed, 16 Aug 2023 14:09:20 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qWNlH-0004GR-4C; Wed, 16 Aug 2023 17:09:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qWMlK-0000wl-WF for qemu-devel@nongnu.org; Wed, 16 Aug 2023 16:05:03 -0400 Received: from relay.virtuozzo.com ([130.117.225.111]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qWMlH-00018o-3N for qemu-devel@nongnu.org; Wed, 16 Aug 2023 16:05:02 -0400 Received: from ch-vpn.virtuozzo.com ([130.117.225.6] helo=localhost.localdomain) by relay.virtuozzo.com with esmtp (Exim 4.96) (envelope-from ) id 1qWMif-00EdjA-2V; Wed, 16 Aug 2023 22:04:38 +0200 To: qemu-devel@nongnu.org Cc: efim.shevrin@virtuozzo.com, kkostiuk@redhat.com, michael.roth@amd.com, pbonzini@redhat.com, den@openvz.org Subject: [PATCH] qga: Start qemu-ga service after NetworkManager start Date: Thu, 17 Aug 2023 04:04:46 +0800 Message-Id: <20230816200446.1408797-1-efim.shevrin@virtuozzo.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=130.117.225.111; envelope-from=efim.shevrin@virtuozzo.com; helo=relay.virtuozzo.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Wed, 16 Aug 2023 17:09:00 -0400 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Efim Shevrin From: Efim Shevrin via Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZM-MESSAGEID: 1692220162598100001 Content-Type: text/plain; charset="utf-8" From: Fima Shevrin When the guest OS starts, qemu-ga sends an event to the host. This event allows services on the host to start configuring the already running guest OS. When configuring network settings, it is possible that an external service will receive a signal from qemu-ga about the start of guest OS, while NetworkManager may not be running yet. Therefore, network setting may not be available. With the current patch, we eliminate the described race condition between qemu-ga and NetworkManager for guest OS network setting cases. Signed-off-by: Fima Shevrin --- contrib/systemd/qemu-guest-agent.service | 1 + 1 file changed, 1 insertion(+) diff --git a/contrib/systemd/qemu-guest-agent.service b/contrib/systemd/qem= u-guest-agent.service index 51cd7b37ff..6e2d059356 100644 --- a/contrib/systemd/qemu-guest-agent.service +++ b/contrib/systemd/qemu-guest-agent.service @@ -2,6 +2,7 @@ Description=3DQEMU Guest Agent BindTo=3Ddev-virtio\x2dports-org.qemu.guest_agent.0.device After=3Ddev-virtio\x2dports-org.qemu.guest_agent.0.device +After=3DNetworkManager.service =20 [Service] ExecStart=3D-/usr/bin/qemu-ga --=20 2.34.1