From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f66.google.com (mail-wm1-f66.google.com [209.85.128.66]) by mx.groups.io with SMTP id smtpd.web09.9061.1583315574097092828 for ; Wed, 04 Mar 2020 01:52:54 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@linaro.org header.s=google header.b=R1dbtDfN; spf=pass (domain: linaro.org, ip: 209.85.128.66, mailfrom: ard.biesheuvel@linaro.org) Received: by mail-wm1-f66.google.com with SMTP id 6so1243469wmi.5 for ; Wed, 04 Mar 2020 01:52:53 -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=8OtnRmlRMQ4pV9syk6lfjXsVYswn5j42ZKAXJICHNFc=; b=R1dbtDfNZCvhHup7v197w2ellPiCScjZyqG4Vikc1+lQTORoixAX8MAECSW08sZviX mVgbIWXNUbfyzI0oZ+/oyl2xuWD8G99apVAfsMrLtQoA+rDJCwRff2Ns85tkupneUmPN ayTy3Qpb48qUr/ltZ7f32fzp4VJvP9jS5I0SPRb3EPdLNl6SpCOBIDXQUKvwtGinKy9D Ry87QBGeVwuKs8/i3xSZscgERmjA1mok+iJ9nUPW8CxPszgqrZj1Q/AFazem9WYgqhun VRvLwP45da3zv1F2HUwVohlZEgT8dOYPZqR0IQKiTfaNIxN22bB1J3+ch4S1FlTHHHd9 sxeQ== 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=8OtnRmlRMQ4pV9syk6lfjXsVYswn5j42ZKAXJICHNFc=; b=YN3gFJry/BaxtXAiX6p5L6ZSV2mLT7SPyPgu+5ljZXyq49Ug/LY/d8+dpJFpzK/M/n Fa9O0VvrLPh+fYTUkbRtBN4VPXtmWquI7WHI3eYIb1R1G6lbMEb7jswof5DUs84wjAjb ahpcXaN42w8/V+kq4ckTWkItfjy1Jco2c2Di/YqO+GB+WBUbAFcRG4gPofchLYg2ZUB4 bVkRXnwhVu2XoYCLuQM7R0o0b6yFaql2CGDS9NQii9QxvroBkS+XENv3Wyud5mK9m8BR ZsuDe/AzClQG0NP2dv5Hcs5fQtweMdmU4ZV1BZPz7dqjS7DcnZxV3G5WDS/zME3bhSe7 ldXA== X-Gm-Message-State: ANhLgQ3ckN+ErOWR0Hff/9i6SBNgvnco7hjeWn4qL4b/7faeuoIlt/9e mSfW29XCoJxF0GbT4dTQIkFgwp4wQu9Tyw== X-Google-Smtp-Source: ADFU+vs/4KhEBVThM+KVD2WZnR9FkFca3f+8jCJ4+KhEXlX1PQeRMcYmwwWtGxgDHejsU0sGd32qkA== X-Received: by 2002:a1c:ac46:: with SMTP id v67mr2710445wme.153.1583315572349; Wed, 04 Mar 2020 01:52:52 -0800 (PST) Return-Path: Received: from e123331-lin.home ([2a01:cb1d:112:6f00:816e:ff0d:fb69:f613]) by smtp.gmail.com with ESMTPSA id v16sm20781095wrp.84.2020.03.04.01.52.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Mar 2020 01:52:51 -0800 (PST) From: "Ard Biesheuvel" To: devel@edk2.groups.io Cc: lersek@redhat.com, Ard Biesheuvel Subject: [PATCH v2 09/14] OvmfPkg: create protocol and GUID header for legacy loaded images Date: Wed, 4 Mar 2020 10:52:28 +0100 Message-Id: <20200304095233.21046-10-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200304095233.21046-1-ard.biesheuvel@linaro.org> References: <20200304095233.21046-1-ard.biesheuvel@linaro.org> In preparation of moving the legacy x86 loading to an implementation of the QEMU load image library class, introduce a protocol header and GUID that we will use to identify legacy loaded images in the protocol database. Signed-off-by: Ard Biesheuvel --- OvmfPkg/Include/Protocol/X86QemuKernelLoadedImage.h | 19 +++++++++++++++++++ OvmfPkg/OvmfPkg.dec | 1 + 2 files changed, 20 insertions(+) diff --git a/OvmfPkg/Include/Protocol/X86QemuKernelLoadedImage.h b/OvmfPkg/Include/Protocol/X86QemuKernelLoadedImage.h new file mode 100644 index 000000000000..7e1bebaa6a07 --- /dev/null +++ b/OvmfPkg/Include/Protocol/X86QemuKernelLoadedImage.h @@ -0,0 +1,19 @@ +/** @file + Protocol/GUID definition to describe a kernel image loaded by the legacy X86 + loader from the file specified on the QEMU command line via the -kernel + option. + + Copyright (c) 2020, Arm, Ltd. All rights reserved.
+ + SPDX-License-Identifier: BSD-2-Clause-Patent +**/ + +#ifndef X86_QEMU_KERNEL_LOADED_IMAGE_GUID_H__ +#define X86_QEMU_KERNEL_LOADED_IMAGE_GUID_H__ + +#define X86_QEMU_KERNEL_LOADED_IMAGE_GUID \ + {0xa3edc05d, 0xb618, 0x4ff6, {0x95, 0x52, 0x76, 0xd7, 0x88, 0x63, 0x43, 0xc8}} + +extern EFI_GUID gX86QemuKernelLoadedImageGuid; + +#endif diff --git a/OvmfPkg/OvmfPkg.dec b/OvmfPkg/OvmfPkg.dec index 055caaa43041..06ffd4198d44 100644 --- a/OvmfPkg/OvmfPkg.dec +++ b/OvmfPkg/OvmfPkg.dec @@ -112,6 +112,7 @@ [Protocols] gEfiLegacyBiosPlatformProtocolGuid = {0x783658a3, 0x4172, 0x4421, {0xa2, 0x99, 0xe0, 0x09, 0x07, 0x9c, 0x0c, 0xb4}} gEfiLegacyInterruptProtocolGuid = {0x31ce593d, 0x108a, 0x485d, {0xad, 0xb2, 0x78, 0xf2, 0x1f, 0x29, 0x66, 0xbe}} gEfiVgaMiniPortProtocolGuid = {0xc7735a2f, 0x88f5, 0x4882, {0xae, 0x63, 0xfa, 0xac, 0x8c, 0x8b, 0x86, 0xb3}} + gX86QemuKernelLoadedImageGuid = {0xa3edc05d, 0xb618, 0x4ff6, {0x95, 0x52, 0x76, 0xd7, 0x88, 0x63, 0x43, 0xc8}} [PcdsFixedAtBuild] gUefiOvmfPkgTokenSpaceGuid.PcdOvmfPeiMemFvBase|0x0|UINT32|0 -- 2.17.1