From nobody Tue Feb 10 00:22:53 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.124; envelope-from=philmd@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=philmd@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1626101813; cv=none; d=zohomail.com; s=zohoarc; b=MsHQ/Apv4/4Bmb63uIFftUlB0oW5Yp0RdyWEgcG0WL6e3fOw7kMD3Si6H1l709fO9Sy1MIM1SOuyE18kDzU/cHVcB9MYZbdlFhlDgN2xhLi+461T9szmcTDQw+wXYJ1qcVME7AbqVIRgfWYg9/422vcBTj2q6iC/cFHNuWJtUak= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1626101813; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=Iw02K1L+VUod/nKvZ2OojnOEeKCkig7F0T7jxDyikog=; b=Ks3AKSYfpL9t86f/KjG1/sizQXO0hsIJ3teaieP++HLbKPyckz416mydSZvhoSnycf3ff7LJbybroYrWUSnuEM5JgikOAi7LZ4CkK/BZ8rknYu1q8qSkMuc/87SV6N0skA7MDtiYW73Ixq7oETfG28wwXLvSuLFH2q1a5UUVHDg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=philmd@redhat.com; dmarc=pass header.from= (p=none dis=none) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.zohomail.com with SMTPS id 1626101813269603.209361048674; Mon, 12 Jul 2021 07:56:53 -0700 (PDT) Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-280-RJdmocRfN36bJwW3SIHV3Q-1; Mon, 12 Jul 2021 10:56:51 -0400 Received: by mail-wr1-f71.google.com with SMTP id j1-20020adfb3010000b02901232ed22e14so7296189wrd.5 for ; Mon, 12 Jul 2021 07:56:50 -0700 (PDT) Return-Path: Return-Path: Received: from localhost.localdomain (abayonne-654-1-142-116.w86-222.abo.wanadoo.fr. [86.222.93.116]) by smtp.gmail.com with ESMTPSA id x17sm14976630wru.6.2021.07.12.07.56.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Jul 2021 07:56:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1626101812; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Iw02K1L+VUod/nKvZ2OojnOEeKCkig7F0T7jxDyikog=; b=Ht8/cnVhxdu80rhEuza3UMOtKOIyzcfkIZjSIXWvLGnRcOtP+HeeRygmeb1HjK2CrGxStt 3pHmHDpdL+pjKfzR8qQJ+d4n/8A4cqToJ/9FFRsXCR4zJeCxliSi7ayXW+qg7Z8CL4if9K Pjuqeq0bc1iuXqDGUcW5OLcvBohK9aA= X-MC-Unique: RJdmocRfN36bJwW3SIHV3Q-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Iw02K1L+VUod/nKvZ2OojnOEeKCkig7F0T7jxDyikog=; b=J3pZ5xx+ofEwxIt27KG7jncYyLrp3qZi6774XysA4+tOy3eAtwf/jiWHdTmiB14vts XGE5VS7AEhVniKkmmsaaP/rEyWWOTJldh+usJM6QbKz7OJLUm/qYlOe5Pmoy9xnGdN/C 2/Vk3uXSL0wLLtTxvkCrw6VjixRpNMsnsQDaxgJ47maPx/TEXe14gjvMUudFnsq02m2S Kxhn+AfNdsHyKYdTLsWF1l9jX5ZlH/NOFAkiUrtOKEDIbC/9VYq9S4EYZ75kf2IVk9Um GyfjSNaaS3SoMwnlp0dByKDJqM+p7voXcw0OFMQDpWnTpjba6KZoui0kO2Ege8DJGhGX WORA== X-Gm-Message-State: AOAM531Q68RLqs4YaLvluL0gFEndazE9nxZJGFkyuieB85AipU23CKVe EGSuzu9mGHPooB7LKwkzKs75iy7LYosQtjPC12GIUhql56IeJ2KxQS793Hfjo7mSb9LcdOKm5wq 0kHXlPcFlnIGrig== X-Received: by 2002:adf:aacb:: with SMTP id i11mr58542764wrc.371.1626101810013; Mon, 12 Jul 2021 07:56:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxV8Y+KX/73R7Fpd6n9aSGuVGF6J8exisvnOy93DyI4wwLe2RGstju9wd5UixcxB++ZgvzQsg== X-Received: by 2002:adf:aacb:: with SMTP id i11mr58542740wrc.371.1626101809853; Mon, 12 Jul 2021 07:56:49 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Dov Murik , "Michael S. Tsirkin" , Laszlo Ersek , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PULL 2/4] hw/i386/pc: Document pc_system_ovmf_table_find Date: Mon, 12 Jul 2021 16:56:28 +0200 Message-Id: <20210712145630.2857814-3-philmd@redhat.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210712145630.2857814-1-philmd@redhat.com> References: <20210712145630.2857814-1-philmd@redhat.com> MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=philmd@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1626101813635100001 From: Dov Murik Suggested-by: Philippe Mathieu-Daud=C3=A9 Signed-off-by: Dov Murik Reviewed-by: Philippe Mathieu-Daud=C3=A9 Message-Id: <20210701052749.934744-3-dovmurik@linux.ibm.com> Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- hw/i386/pc_sysfw.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/hw/i386/pc_sysfw.c b/hw/i386/pc_sysfw.c index e353f2a4e9b..6ddce92a861 100644 --- a/hw/i386/pc_sysfw.c +++ b/hw/i386/pc_sysfw.c @@ -179,6 +179,17 @@ static void pc_system_parse_ovmf_flash(uint8_t *flash_= ptr, size_t flash_size) ovmf_table +=3D tot_len; } =20 +/** + * pc_system_ovmf_table_find - Find the data associated with an entry in O= VMF's + * reset vector GUIDed table. + * + * @entry: GUID string of the entry to lookup + * @data: Filled with a pointer to the entry's value (if not NULL) + * @data_len: Filled with the length of the entry's value (if not NULL). P= ass + * NULL here if the length of data is known. + * + * Return: true if the entry was found in the OVMF table; false otherwise. + */ bool pc_system_ovmf_table_find(const char *entry, uint8_t **data, int *data_len) { --=20 2.31.1