Received: by 2002:a17:906:c8d8:b0:a3e:79c1:d636 with SMTP id gc24csp2045807ejb; Wed, 21 Feb 2024 09:03:08 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCUlZWWeAQHzKkOIWAiUHCj7Ep/GdpW5HQUXhdNjy6/RhbNosamuiiVCB+HpBqU2YAc0sQh6Jq8Tw+A4z76rvkoMzPZqnFSn X-Google-Smtp-Source: AGHT+IEy5MliN24xT6gLJu2PRVPo4KG+eJl9a1qlEbsWI8jQZCAY/1O+nQbYFpBkgWrUBmJUPfDQ X-Received: by 2002:a05:6102:a85:b0:470:9875:6042 with SMTP id n5-20020a0561020a8500b0047098756042mr73113vsg.9.1708534988045; Wed, 21 Feb 2024 09:03:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1708534988; cv=none; d=google.com; s=arc-20160816; b=xWxi6bpUqzyuHUMrKKXdLBJ/oSNmxDMNiDJJsIPaZBz7I4bJusiEJFV1slHHxHjPMx LhkIDEDf3NBJGnzZePOHtDvDxbqGzh0tPxOxI55D9UXpPO0gLke+TqaZWVkcJc0VLFVG 7xJVnrhhOSdYy2Yy0KKEl3thT7L/rYyu0zGFRE/GPtUIAmpvsbZa3Rdi+KM7IyOHr36Q m9h0G2uaNsI4Yj9GgZr5hv/k+2PSofseyjoAaIAFFWtjkXsam7noz9NL0VHo2XjeEvSn suiRm3puZ57FzcjTbPZo7MK8P7M0TGoqnovIvN4+HmrAHlqU4llErM8JwcnuiL80va77 kdKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:cc:to:from:subject:message-id :mime-version:date:dkim-signature; bh=U+91MPSIGWth4xSmqUgGqGxd2uWLtvNeacGTv3UixX4=; fh=gNC9nLbYLuLi+bgUpRpX6osinCA42I5XHABfTs+7XlE=; b=pmxARQh0BNZkJd1EKsF2e0creOafgVfTz+SMTsA8PdXcQquSmz9x1O+/Lw6LBHn1k6 +HtuIfxGWKHCTdbvE9E7XXvhtbLQWwm60YEzAYSbDKDoZHwjJ5BUiLuQ9bhgRTCnSigM V5bLReuVgdZwSKLDkar3Wyp+/omstNbHoCxF9WdExpz1nCJ5qcZYOfgpovaswwFmx6pH 2oiPmqRUH4UvfCbxA7vwathXf9F3dE3PiDiojPlkzi5roCLuF1tK5KlAzls/3VXGddV8 NG3RsYs2pq8KhiTNpLVUnEpSkIOaIRjPMl5GTaZQ9DbyF8WMBIfEEjwMq0ASebXoC0X/ bSrA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b="Vl/ZC9o7"; spf=pass (google.com: domain of qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id ie9-20020a0561022c0900b00471b5ea4625si137761vsb.692.2024.02.21.09.03.07 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 21 Feb 2024 09:03:08 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b="Vl/ZC9o7"; spf=pass (google.com: domain of qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rcpxb-0006Ux-KS; Wed, 21 Feb 2024 12:00:43 -0500 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 <3LyzWZQwKChY9wx430EF01w92AA270.yA8C08G-z0H079A929G.AD2@flex--nabihestefan.bounces.google.com>) id 1rcpxT-0006KX-3P for qemu-devel@nongnu.org; Wed, 21 Feb 2024 12:00:36 -0500 Received: from mail-yb1-xb49.google.com ([2607:f8b0:4864:20::b49]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <3LyzWZQwKChY9wx430EF01w92AA270.yA8C08G-z0H079A929G.AD2@flex--nabihestefan.bounces.google.com>) id 1rcpxR-00036V-Et for qemu-devel@nongnu.org; Wed, 21 Feb 2024 12:00:34 -0500 Received: by mail-yb1-xb49.google.com with SMTP id 3f1490d57ef6-dc74ac7d015so8718299276.0 for ; Wed, 21 Feb 2024 09:00:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1708534831; x=1709139631; darn=nongnu.org; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=U+91MPSIGWth4xSmqUgGqGxd2uWLtvNeacGTv3UixX4=; b=Vl/ZC9o7hDXakN9pi9OEeAPTi0QuK5IU7HxsCcDXZmDceA7+rMZb1NOD/R7DK9iiWa /BxeYYL/r9vVn6ikJO/ZCK+lWxbozklmArgqvniNP78HwoTVE8m7QsmoIePu0nD6Tsci 6uNwu3sHxfcCfOIilBrJRnG25YxdGzU/VanDedVeD28z9GbQofW8Me0hP0gjtRl41EIH So0pJSujeNfWxQkgpP0LVNcrwiNtR9w+F48EbhAVvwB0b4uoUmPN4GoFyUNDkX9AyR76 ThaFurZoXLhDX0VXZfPstJEM48cR/IIfwEPwGTTg027NTFtBgCm6ANTUpGg6tsHxkWD9 4Fxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708534831; x=1709139631; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=U+91MPSIGWth4xSmqUgGqGxd2uWLtvNeacGTv3UixX4=; b=CEfA5Ju/f/L0xymb18FIwoHjbL4QkgpnTEsom4H9TuFCBwTk0/w7jNS/lINKHkHrEM AJOCk8pHqaAsEInMaPx6TXr/4oO63JlY9MFEPHzIrKahwKBifWREyxPeBuD3VCNHqwjS Ckb7gjQ0QBb/mEqjD3xQoc77Y/nBn0vdJ/BBLy5NADdXn+N46olCHp1dNaQrq1KWJDP+ KlFZe5PLYQrZRqyE5QPTFwl3n+JPK0qm76oDKHcQh+8FNcwv0hFkqPlX845fWk8002xO FtBpozjZBmX5K4A2d0ZH+YAqn94fvtF3LSebnh1iGS4xvKtiYFNJeDmeHvUiGtKDeADg IQ/g== X-Forwarded-Encrypted: i=1; AJvYcCWIK4RgMcECzBUEDY7FBGkuYIzdYiQIYkca+pMv+5gY8CnOwS0fpF4Q8My2MVY1HsC/EjuTMY+AlCWroyjiDgLx9WZu+50= X-Gm-Message-State: AOJu0Yza5vl1IZcXCZzvf2sDX9AITT57Ne+IceVL1Y8IgvQ/TppidjEV ZNYsLD5+OmTfVfaxqtP671chDk4n//iDBkX3b3szoThb8P4LAT1jVAUC7Xz5lN303EP35mD9t5J /JRaWziYbPJCdF+5FgKcPKx5Anw== X-Received: from nabihestefan.c.googlers.com ([fda3:e722:ac3:cc00:20:ed76:c0a8:2737]) (user=nabihestefan job=sendgmr) by 2002:a05:6902:1001:b0:dcc:79ab:e522 with SMTP id w1-20020a056902100100b00dcc79abe522mr771617ybt.11.1708534831526; Wed, 21 Feb 2024 09:00:31 -0800 (PST) Date: Wed, 21 Feb 2024 17:00:25 +0000 Mime-Version: 1.0 X-Mailer: git-send-email 2.44.0.rc0.258.g7320e95886-goog Message-ID: <20240221170027.1027325-1-nabihestefan@google.com> Subject: [PATCH 0/2] SMBIOS type 9 descriptor implementation From: Nabih Estefan To: peter.maydell@linaro.org Cc: qemu-arm@nongnu.org, qemu-devel@nongnu.org, qemu-block@nongnu.org, its@irrelevant.dk, kbusch@kernel.org, eric.auger@redhat.com, mst@redhat.com, imammedo@redhat.com, anisinha@redhat.com, flwu@google.com, nabihestefan@google.com Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2607:f8b0:4864:20::b49; envelope-from=3LyzWZQwKChY9wx430EF01w92AA270.yA8C08G-z0H079A929G.AD2@flex--nabihestefan.bounces.google.com; helo=mail-yb1-xb49.google.com X-Spam_score_int: -95 X-Spam_score: -9.6 X-Spam_bar: --------- X-Spam_report: (-9.6 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, USER_IN_DEF_DKIM_WL=-7.5 autolearn=ham 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+alex.bennee=linaro.org@nongnu.org Sender: qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org X-TUID: zh63H6n51PTh This patch series implements SMBIOS type 9 descriptor, system slots. For each system slot, we can assign one descriptor for it if needed. In versions later than 2.6, a new PCI device field was added to make sure the descriptor is associated with a certain device, if provided. For ease of usage, qemu-options.hx was updated. Felix Wu (2): Implement base of SMBIOS type 9 descriptor. Implement SMBIOS type 9 v2.6 hw/smbios/smbios.c | 142 +++++++++++++++++++++++++++++++++++ include/hw/firmware/smbios.h | 17 +++++ qemu-options.hx | 3 + 3 files changed, 162 insertions(+) -- 2.44.0.rc0.258.g7320e95886-goog