From nobody Fri May 10 17:56:44 2024 Delivered-To: importer@patchew.org Received-SPF: none (zohomail.com: 8.43.85.245 is neither permitted nor denied by domain of lists.libvirt.org) client-ip=8.43.85.245; envelope-from=devel-bounces@lists.libvirt.org; helo=lists.libvirt.org; Authentication-Results: mx.zohomail.com; spf=none (zohomail.com: 8.43.85.245 is neither permitted nor denied by domain of lists.libvirt.org) smtp.mailfrom=devel-bounces@lists.libvirt.org; dmarc=fail(p=none dis=none) header.from=canonical.com Return-Path: Received: from lists.libvirt.org (lists.libvirt.org [8.43.85.245]) by mx.zohomail.com with SMTPS id 1710846806660471.015560434907; Tue, 19 Mar 2024 04:13:26 -0700 (PDT) Received: by lists.libvirt.org (Postfix, from userid 996) id 7D9491BBB; Tue, 19 Mar 2024 07:13:25 -0400 (EDT) Received: from lists.libvirt.org (localhost [IPv6:::1]) by lists.libvirt.org (Postfix) with ESMTP id 0FDD71DFD; Tue, 19 Mar 2024 07:11:08 -0400 (EDT) Received: by lists.libvirt.org (Postfix, from userid 996) id 1A0381B3A; Mon, 18 Mar 2024 18:25:27 -0400 (EDT) Received: from smtp-relay-internal-0.canonical.com (smtp-relay-internal-0.canonical.com [185.125.188.122]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.libvirt.org (Postfix) with ESMTPS id 105EF1914 for ; Mon, 18 Mar 2024 18:25:26 -0400 (EDT) Received: from mail-io1-f70.google.com (mail-io1-f70.google.com [209.85.166.70]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id 017453F122 for ; Mon, 18 Mar 2024 22:25:25 +0000 (UTC) Received: by mail-io1-f70.google.com with SMTP id ca18e2360f4ac-7cbfd4781fcso322809139f.3 for ; Mon, 18 Mar 2024 15:25:24 -0700 (PDT) Received: from rip.hsd1.nm.comcast.net ([2601:8c1:c100:2480:2b4b:9213:b227:c293]) by smtp.gmail.com with ESMTPSA id e1-20020a92d741000000b0036620a9909csm2579198ilq.78.2024.03.18.15.25.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Mar 2024 15:25:22 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on lists.libvirt.org X-Spam-Level: X-Spam-Status: No, score=-3.1 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710800723; x=1711405523; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=AdlsbpL+WBdFktY3BZp4z1MvKrWsZcWMW9Mj0g44oRQ=; b=VT5cWJt0uQCJ2W2Zzly8cvM+9FdAH8mf1IDqd4SZQGjMTABUpL0HCzYY8Zf4VDv7rK 7OmyxU5tXiZsSKSXnjpIDKnmUE8vmjlypXC8nsTocQq9ZZNt8YithHkwsK5enbGCP1GK MMb/HgG436A3+GLZ+ZUmHu7In/WqMa3DKfbD3GymZnyFHCqEs1/1tJFf+Ux3qi8s6SMr H1pcZwd4qYKSNCD7FcrCGQJWDIKJFvgDIjz88wZjxg+k3ur/cxGRQGlXcPve8UiTgo5j BeWVokERSnl/WCwSYcDkzz/8aRfEvWggwLFYeqhONCaxKpNgURJRQ7Zucl4Z29H0Vy2I 5bmQ== X-Gm-Message-State: AOJu0YylhO12zokZ8aOyuO5nqIcjWToU/NyRmVrvWCFzePviEwlTOFft emrX9QiUEylePc4hR8bpD1bAlYxZoKlrQrLr44ksDBzfBI9V2/htMKyqQnnumAhgPqREVwjvFC3 EdsK+434qVzpAXLLlYrNNTKAzzXZCyIFBcK2ip/5bp4H2i87h7amagTZU1v09WTluguJgqUtLe+ Y3x6M= X-Received: by 2002:a92:d911:0:b0:366:6d31:2af8 with SMTP id s17-20020a92d911000000b003666d312af8mr836092iln.18.1710800723644; Mon, 18 Mar 2024 15:25:23 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH9hjiCd3bskhMOsP+/IrxfGR3P35OhCLwFkInTdTeulxjCiUc86v2QLko/4Y/OGHsj+4GJfg== X-Received: by 2002:a92:d911:0:b0:366:6d31:2af8 with SMTP id s17-20020a92d911000000b003666d312af8mr836080iln.18.1710800723391; Mon, 18 Mar 2024 15:25:23 -0700 (PDT) From: brett.holman@canonical.com To: devel@lists.libvirt.org Subject: [PATCH] virsysinfo: Try reading DMI table Date: Mon, 18 Mar 2024 16:20:51 -0600 Message-ID: <20240318222517.94017-2-brett.holman@canonical.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240318222517.94017-1-brett.holman@canonical.com> References: <20240318222517.94017-1-brett.holman@canonical.com> MIME-Version: 1.0 X-MailFrom: brett.holman@canonical.com X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-config-1; header-match-config-2; header-match-config-3; header-match-devel.lists.libvirt.org-0 Message-ID-Hash: 3RITPGJOYJC3PWRYW6AEKXE2R7BIX7AR X-Message-ID-Hash: 3RITPGJOYJC3PWRYW6AEKXE2R7BIX7AR X-Mailman-Approved-At: Tue, 19 Mar 2024 11:11:00 -0400 CC: Brett Holman X-Mailman-Version: 3.2.2 Precedence: list List-Id: Development discussions about the libvirt library & tools Archived-At: List-Archive: List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZM-MESSAGEID: 1710846807045100001 From: Brett Holman The SMBIOS specification[1] includes RISC-V and mips, and some systems have SMBIOS info. Attempt to read dmidecode and fall back to old behavior if that fails. [1] https://www.dmtf.org/sites/default/files/standards/documents/DSP0134_3.= 4.0.pdf Signed-off-by: Brett Holman --- src/util/virsysinfo.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/util/virsysinfo.c b/src/util/virsysinfo.c index 36a861c53f..d8d660d694 100644 --- a/src/util/virsysinfo.c +++ b/src/util/virsysinfo.c @@ -1248,6 +1248,8 @@ virSysinfoRead(void) #elif !defined(WIN32) && \ (defined(__x86_64__) || \ defined(__i386__) || \ + defined(__mips__) || \ + defined(__riscv__) || \ defined(__amd64__)) return virSysinfoReadDMI(); #else /* WIN32 || not supported arch */ --=20 2.43.0 _______________________________________________ Devel mailing list -- devel@lists.libvirt.org To unsubscribe send an email to devel-leave@lists.libvirt.org