From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f67.google.com (mail-wr1-f67.google.com [209.85.221.67]) by mx.groups.io with SMTP id smtpd.web11.12598.1583415972896948308 for ; Thu, 05 Mar 2020 05:46:13 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@linaro.org header.s=google header.b=oC5BY+lD; spf=pass (domain: linaro.org, ip: 209.85.221.67, mailfrom: ard.biesheuvel@linaro.org) Received: by mail-wr1-f67.google.com with SMTP id r7so7114338wro.2 for ; Thu, 05 Mar 2020 05:46:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=NTXetBdB1ZirX0B8acip24jJ4MXcmWlzqKedQlDExC8=; b=oC5BY+lD9pBWpA2tsvZOEKI2PT5OzsacmyHb9K9vTUTqz9586V9i6ia1psMj2NIg+F 0eOoyXneQDahqBiB8IIWTbyylKy1ARG452Zs5zNkRZHEaA+KzN76oJ9DS+fYUQiusf0e hqEXzGUpnNykpHDgsW37qHUcSoY3+PeBiyRdS4axrUALKEEcPDLL78/LTBipPR4SGoVD OoIcoop5onQHGhM4iOC/wwzbw/FuWiwO9GYQ0E61lwAvNWvWqyzcic1TaNt7EtB0fkSV QdM2pDG+rdvh66/qBceHmaPufOOPKopM3LJvBhxdrD2/XopYrEKPyJJCxSDwxBKgiu/1 3tLw== 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; bh=NTXetBdB1ZirX0B8acip24jJ4MXcmWlzqKedQlDExC8=; b=Vi0DbH7C5ELCQMB0MJ2Zv6M7tlhP17IzL8YTt+95A3tw5sYfXnGvcYh2wNVKdeiiuk gZ1210NvsnSj9VNjAPKR0ZzNmrW+kZx5qW3XqDpuP59amVRm3SdqW37dQEojoZ9ifb78 YG1tJpFRuBqPZ/bcwDrg3Kh/IFNPTkDJXF/7rHWltX5althQzZM86L9OdUGSaX4NhSO7 KnFI2flaM8cpjzQZaxFAssgZei9aaBOBNwj4WY579HQma+SmcsP3RFpARNGK9/FN/AJF ZilIY2IVYJRvrpzMyUmoKzeTU4Y+95QTjs/ZNGPcnvsV29N3gmDzAsuiNpnvzKPlmI+s A09Q== X-Gm-Message-State: ANhLgQ3vRjmYQGVm1br1a97Up1gqQD900Wb6ifyjsPVzIVNsCRx1bsh6 1n+nMZluKjb0COMx3OIq/syAXzlT/EwMTQ== X-Google-Smtp-Source: ADFU+vu0bBCfmJRulJfNZY3AQPDIMP/73FG3kqOO9h35TqUTy4iO0wunBPMA62bRSdeXJX092ruzMg== X-Received: by 2002:a5d:4dc7:: with SMTP id f7mr7399435wru.72.1583415971091; Thu, 05 Mar 2020 05:46:11 -0800 (PST) Return-Path: Received: from e123331-lin.home ([2a01:cb1d:112:6f00:816e:ff0d:fb69:f613]) by smtp.gmail.com with ESMTPSA id m19sm9278701wmc.34.2020.03.05.05.46.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Mar 2020 05:46:10 -0800 (PST) From: "Ard Biesheuvel" To: devel@edk2.groups.io Cc: lersek@redhat.com, Ard Biesheuvel Subject: [PATCH v3 01/14] OvmfPkg: add GUID for the QEMU kernel loader fs media device path Date: Thu, 5 Mar 2020 14:45:54 +0100 Message-Id: <20200305134607.20125-2-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200305134607.20125-1-ard.biesheuvel@linaro.org> References: <20200305134607.20125-1-ard.biesheuvel@linaro.org> In an upcoming patch, we will introduce a separate DXE driver that exposes the virtual SimpleFileSystem implementation that carries the kernel and initrd passed via the QEMU command line, and a separate library that consumes it, to be incorporated into the boot manager. Since the GUID used for the SimpleFileSystem implementation's device path will no longer be for internal use only, create a well defined GUID to identify the media device path. Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2566 Signed-off-by: Ard Biesheuvel Reviewed-by: Laszlo Ersek --- OvmfPkg/Include/Guid/QemuKernelLoaderFsMedia.h | 18 ++++++++++++++++++ OvmfPkg/OvmfPkg.dec | 1 + 2 files changed, 19 insertions(+) diff --git a/OvmfPkg/Include/Guid/QemuKernelLoaderFsMedia.h b/OvmfPkg/Include/Guid/QemuKernelLoaderFsMedia.h new file mode 100644 index 000000000000..225c3c494613 --- /dev/null +++ b/OvmfPkg/Include/Guid/QemuKernelLoaderFsMedia.h @@ -0,0 +1,18 @@ +/** @file + GUID definition for the QEMU LoaderFs media device path, containing the + kernel, initrd and command line as file objects + + Copyright (c) 2020, Arm, Ltd. All rights reserved.
+ + SPDX-License-Identifier: BSD-2-Clause-Patent +**/ + +#ifndef QEMU_KERNEL_LOADER_FS_MEDIA_GUID_H__ +#define QEMU_KERNEL_LOADER_FS_MEDIA_GUID_H__ + +#define QEMU_KERNEL_LOADER_FS_MEDIA_GUID \ + {0x1428f772, 0xb64a, 0x441e, {0xb8, 0xc3, 0x9e, 0xbd, 0xd7, 0xf8, 0x93, 0xc7}} + +extern EFI_GUID gQemuKernelLoaderFsMediaGuid; + +#endif diff --git a/OvmfPkg/OvmfPkg.dec b/OvmfPkg/OvmfPkg.dec index 43d16372a270..a21b279d140a 100644 --- a/OvmfPkg/OvmfPkg.dec +++ b/OvmfPkg/OvmfPkg.dec @@ -87,6 +87,7 @@ [Guids] gEfiLegacyBiosGuid = {0x2E3044AC, 0x879F, 0x490F, {0x97, 0x60, 0xBB, 0xDF, 0xAF, 0x69, 0x5F, 0x50}} gEfiLegacyDevOrderVariableGuid = {0xa56074db, 0x65fe, 0x45f7, {0xbd, 0x21, 0x2d, 0x2b, 0xdd, 0x8e, 0x96, 0x52}} gLinuxEfiInitrdMediaGuid = {0x5568e427, 0x68fc, 0x4f3d, {0xac, 0x74, 0xca, 0x55, 0x52, 0x31, 0xcc, 0x68}} + gQemuKernelLoaderFsMediaGuid = {0x1428f772, 0xb64a, 0x441e, {0xb8, 0xc3, 0x9e, 0xbd, 0xd7, 0xf8, 0x93, 0xc7}} [Ppis] # PPI whose presence in the PPI database signals that the TPM base address -- 2.17.1