From: "Gerd Hoffmann" <kraxel@redhat.com>
To: "Yao, Jiewen" <jiewen.yao@intel.com>
Cc: "devel@edk2.groups.io" <devel@edk2.groups.io>
Subject: Re: [edk2-devel] [PATCH 2/2] OvmfPkg/PlatformPei: prefer etc/e820 for memory detection
Date: Wed, 25 Aug 2021 15:13:31 +0200 [thread overview]
Message-ID: <20210825131331.5mh76tk5vntapwbj@sirius.home.kraxel.org> (raw)
In-Reply-To: <PH0PR11MB4885417D5C6607F1E19028888CC69@PH0PR11MB4885.namprd11.prod.outlook.com>
On Wed, Aug 25, 2021 at 09:24:43AM +0000, Yao, Jiewen wrote:
> Hi
> Would you please follow EDKII process?
> 1) File an EDKII Bugzilla.
Ok, will do.
> 2) CC all reviewers in OVMF package.
Is there some way to automate this?
I see there is BaseTools/Scripts/GetMaintainer.py, but the script wants
a commit hash not a patch file as argument, so I can't hook it into 'git
send-email'.
> Please also describe what the reason of change, what is the benefit we
> can get from the change?
>
> I just feel it is confusing. Previously, the data is consistent from
> CMOS. Now, we have two ways to get one data from different sources.
It is *not* consistent from CMOS. CMOS is only used for memory below 4G
whereas the etc/e820 fw_cfg file is used for memory above 4G. So this
patch actually makes things more consistent.
> Please help me understand:
>
> A) What if the data are different from different source?
>
> B) Why we choose to trust E820 at first, the CMOS? Not verse versa.
e820 is the newer and more capable interface, specifically cmos can
handle at most 1TB of memory (which is the reason why e820 is already
used to detect high memory).
> C) If we trust E820 (in B), then why we need go back to CMOS, if LowMemorySize is 0?
Backward compatibility with old qemu versions. etc/e820 is available
in qemu version 1.7 (released Nov 2013) and newer.
Does OVMF have any policy for backward compatibility? If breaking
compatibility with qemu versions that old is acceptable I happily
delete any CMOS access from qemu PlatformPei and throw an assert()
instead.
take care,
Gerd
next prev parent reply other threads:[~2021-08-25 13:13 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-19 8:11 [PATCH 0/2] OvmfPkg/PlatformPei: prefer etc/e820 for memory detection Gerd Hoffmann
2021-08-19 8:11 ` [PATCH 1/2] OvmfPkg/PlatformPei: ScanOrAdd64BitE820Ram improvements Gerd Hoffmann
2021-08-25 5:22 ` [edk2-devel] " Philippe Mathieu-Daudé
2021-08-19 8:11 ` [PATCH 2/2] OvmfPkg/PlatformPei: prefer etc/e820 for memory detection Gerd Hoffmann
2021-08-19 9:28 ` [edk2-devel] " Philippe Mathieu-Daudé
2021-08-25 9:24 ` Yao, Jiewen
2021-08-25 13:13 ` Gerd Hoffmann [this message]
2021-08-25 15:15 ` Yao, Jiewen
2021-08-26 7:12 ` Gerd Hoffmann
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=20210825131331.5mh76tk5vntapwbj@sirius.home.kraxel.org \
--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