From nobody Sun Nov 24 19:55:48 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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 ARC-Seal: i=1; a=rsa-sha256; t=1721114981; cv=none; d=zohomail.com; s=zohoarc; b=hS36YH5DBo+/Aw6uurWKJ4Mp7puNUtMB0tBDSproDVoGTLyDBEmMSEclt+1pZ8VXGh9WmmtCibIHe/mjQ5GaJUqy0aFpzRI2oe2WKtS1/wXY0vZWWYig9Ck8LwEpqxrp43EMuXfLt+OmC23DYBVQ+2C75SGp0KW68aZxL5Bf6f0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1721114981; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To:Cc; bh=nndFPbveVHvyo+1OtPZPhuGcG+moLsZf8i7KbP3IDpQ=; b=fWAjBRRPH3/zgNUZQlur8wdpAKsTakRb/tJgOv+IeOMs6CcNwe/voGCuvHRC6L2k7mXdqGkktGYSlpi3Ygm16tpPhCTczNeyLmMDMX5NTt/Jt+cWiO0Y2ix01LxKR6l4HTOiqzbSrxa1ad2NBTg/XZfKg8FLHpU/e6QkS2kxTkQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1721114981151520.5269512428679; Tue, 16 Jul 2024 00:29:41 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sTcbs-0005ld-Fx; Tue, 16 Jul 2024 03:28:28 -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 1sTcbp-0005W4-8b for qemu-devel@nongnu.org; Tue, 16 Jul 2024 03:28:25 -0400 Received: from mail-pl1-x62d.google.com ([2607:f8b0:4864:20::62d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sTcbn-0006Ux-Jv for qemu-devel@nongnu.org; Tue, 16 Jul 2024 03:28:25 -0400 Received: by mail-pl1-x62d.google.com with SMTP id d9443c01a7336-1fc2a194750so17460355ad.1 for ; Tue, 16 Jul 2024 00:28:23 -0700 (PDT) Received: from localhost ([157.82.128.7]) by smtp.gmail.com with UTF8SMTPSA id d9443c01a7336-1fc0bc45017sm52075555ad.242.2024.07.16.00.28.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 16 Jul 2024 00:28:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=daynix-com.20230601.gappssmtp.com; s=20230601; t=1721114902; x=1721719702; darn=nongnu.org; h=to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=nndFPbveVHvyo+1OtPZPhuGcG+moLsZf8i7KbP3IDpQ=; b=GMoFgHI5HIZzLQ8kNbg//5h4gEezZOaEFSEdKu/O+PQ2O6ZNvho1xCu1g36MBR5XP1 X47RiZuYoSHLKQt4JTXFX94yHItJCnQs0sP8xnU1jDVSDza6/NOiYg1CLqI8qCBjMdp8 /1+vo4QNh4/hOXOhuD+6FywXA5vyjAXUMED5lvfSb+hGoYqkeno0KEH5wysFgDWlnOCr f3EGdSiNaI1GLzm+4zK+huNhEnhaLeePIn0An5X8UIlDZLW8mfJf6NYX0B0RTt4c/dMO h5p2bJvBApeIN+knpV4n9jM/lkQEHvKz70wbsqHXrq/DSTklbYP1SFLiDengbgkt1awz W3dQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721114902; x=1721719702; h=to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=nndFPbveVHvyo+1OtPZPhuGcG+moLsZf8i7KbP3IDpQ=; b=s3qfv6ZtHLN4ctoA94oaCar0eq0TYPrjao3icHyuij+GjHXe/AtLQEcxnTISZIOBtf SKrXSWB/mx9KirIy7XVehTwQouOHyaD+UPF/DS7QZ64uVf3XKAFeoe5o7/EdM/DBu61t XSieFYRko3FZDZsbfHGkb0wDuu9mPBKDhprm5f5maPgeAvtYXHLzZzxsQYA85/C5NRKo v8FTExglBe3i9qhqg6nQZ3iiBqaCdOb4w3S6nKFDIXJsXbuy0WoQ0Te4tV5ulgNFGzrT DjD1UxGBV2OUjqD09Hk0DoUsykQ4/dEEq5JG/mUG2DbqcjKclg268Bz3nX5iYe3wCz37 f2iQ== X-Gm-Message-State: AOJu0YwGkAdfJ9ct8KlCo+y+w5tv6Vpn6o9jfcRyvWfpwTh/t21U0syA KIEaLrzGtitt+rsogHzwHVboHSPTtMT9Dybw5veXD9KJqJ3+XQBBWUkSKq9v01A= X-Google-Smtp-Source: AGHT+IEf2tPScxuna9eeRgCVz8lF9FQkuOGJaZHKNKsE6KIk6bW1YyYbxUrsKAwx2smxtMUX6fvvGA== X-Received: by 2002:a17:903:41cd:b0:1fa:2e45:bcb8 with SMTP id d9443c01a7336-1fc3d921be3mr10484155ad.2.1721114902296; Tue, 16 Jul 2024 00:28:22 -0700 (PDT) From: Akihiko Odaki Date: Tue, 16 Jul 2024 16:27:35 +0900 Subject: [PATCH v4 5/7] module: Use qemu_get_runtime_dir() MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240716-run-v4-5-5f7a29631168@daynix.com> References: <20240716-run-v4-0-5f7a29631168@daynix.com> In-Reply-To: <20240716-run-v4-0-5f7a29631168@daynix.com> To: qemu-devel@nongnu.org, qemu-block@nongnu.org, virtio-fs@redhat.com, Yuval Shaia , Marcel Apfelbaum , Konstantin Kostiuk , Michael Roth , Paolo Bonzini , Fam Zheng , "Dr . David Alan Gilbert" , Stefan Hajnoczi , Gerd Hoffmann , Stefan Weil , Yan Vugenfirer , Akihiko Odaki X-Mailer: b4 0.14-dev-fd6e3 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: none client-ip=2607:f8b0:4864:20::62d; envelope-from=akihiko.odaki@daynix.com; helo=mail-pl1-x62d.google.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, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action 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: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @daynix-com.20230601.gappssmtp.com) X-ZM-MESSAGEID: 1721114981366116600 qemu_get_runtime_dir() is used to construct the path to module upgrades. Signed-off-by: Akihiko Odaki Message-Id: <20230921075425.16738-7-akihiko.odaki@daynix.com> --- util/module.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/util/module.c b/util/module.c index 32e263163c75..580658edf486 100644 --- a/util/module.c +++ b/util/module.c @@ -242,7 +242,8 @@ int module_load(const char *prefix, const char *name, E= rror **errp) version_dir =3D g_strcanon(g_strdup(QEMU_PKGVERSION), G_CSET_A_2_Z G_CSET_a_2_z G_CSET_DIGITS "+-.~= ", '_'); - dirs[n_dirs++] =3D g_strdup_printf("/var/run/qemu/%s", version_dir); + g_autofree char *run =3D qemu_get_runtime_dir(); + dirs[n_dirs++] =3D g_build_filename(run, "qemu", version_dir, NULL); #endif assert(n_dirs <=3D ARRAY_SIZE(dirs)); =20 --=20 2.45.2