From: "Jianyong Wu" <jianyong.wu@arm.com>
To: devel@edk2.groups.io, Sami.Mujawar@arm.com
Cc: ardb+tianocore@kernel.org, justin.he@arm.com, jianyong.wu@arm.com
Subject: [PATCH 0/3] CloudHv:arm: Enable direct kernel boot
Date: Fri, 16 Sep 2022 10:46:17 +0800 [thread overview]
Message-ID: <20220916024620.114084-1-jianyong.wu@arm.com> (raw)
Direct kernel boot removes the dependency of retrieving kernel image
from block device. For Cloud Hypervisor, we use the following way to
support it.
1. Cloud Hypervisor store kernel image into memory and put kernel info,
including the memory base and size, into DT;
2. When init memory in edk2, the kernel memory region is retrieved from
DT and set it as read only memory region;
3. Edk2 fetches kernel from memory and prepare a image handle;
4. Load kernel using LoadImage in the end.
1 is done in Cloud Hypervisor, 2 and 3 is done in this patch set, 4 is
not affected.
github PR link: https://github.com/tianocore/edk2/pull/3339
Signed-off-by: Jianyong Wu <jianyong.wu@arm.com>
Jianyong Wu (3):
CloudHv:arm: add kernel load fs driver
CloudHv:arm: build hob for kernel image memory as read-only
CloudHv:arm: add kernel loader lib dsc/fdf
ArmVirtPkg/ArmVirtCloudHv.dsc | 8 +-
ArmVirtPkg/ArmVirtCloudHv.fdf | 1 +
.../CloudHvKernelLoaderFsDxe.c | 969 ++++++++++++++++++
.../CloudHvKernelLoaderFsDxe.inf | 55 +
.../CloudHvVirtMemInfoLib.c | 66 +-
5 files changed, 1094 insertions(+), 5 deletions(-)
create mode 100644 ArmVirtPkg/CloudHvKernelLoaderFsDxe/CloudHvKernelLoaderFsDxe.c
create mode 100644 ArmVirtPkg/CloudHvKernelLoaderFsDxe/CloudHvKernelLoaderFsDxe.inf
--
2.17.1
next reply other threads:[~2022-09-16 2:46 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-16 2:46 Jianyong Wu [this message]
2022-09-16 2:46 ` [PATCH 1/3] CloudHv:arm: add kernel load fs driver Jianyong Wu
2022-11-22 15:44 ` Sami Mujawar
2022-11-22 15:46 ` Sami Mujawar
2022-11-23 6:26 ` Jianyong Wu
2022-09-16 2:46 ` [PATCH 2/3] CloudHv:arm: build hob for kernel image memory as read-only Jianyong Wu
2022-11-22 15:47 ` Sami Mujawar
2022-11-23 2:56 ` Jianyong Wu
2022-09-16 2:46 ` [PATCH 3/3] CloudHv:arm: add kernel load driver into dsc/fdf Jianyong Wu
2022-11-22 15:48 ` Sami Mujawar
2022-11-23 5:44 ` Jianyong Wu
[not found] ` <172A2070EC93BBE5.3230@groups.io>
2023-01-11 8:12 ` [edk2-devel] " Jianyong Wu
2023-01-11 8:35 ` Sami Mujawar
2023-01-11 9:27 ` Jianyong Wu
[not found] ` <17393714CBDB554C.25137@groups.io>
2023-04-24 2:36 ` Jianyong Wu
2023-05-23 6:48 ` Jianyong Wu
2022-11-15 3:00 ` [PATCH 0/3] CloudHv:arm: Enable direct kernel boot Jianyong Wu
2022-11-15 8:51 ` Sami Mujawar
2022-11-15 9:01 ` Jianyong Wu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220916024620.114084-1-jianyong.wu@arm.com \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox