From: Julien Grall <julien@xen.org>
To: Jan Beulich <jbeulich@suse.com>
Cc: "xen-devel@lists.xenproject.org" <xen-devel@lists.xenproject.org>,
"Andrew Cooper" <andrew.cooper3@citrix.com>,
"Wei Liu" <wl@xen.org>, "Roger Pau Monné" <roger.pau@citrix.com>,
"Volodymyr Babchuk" <volodymyr_babchuk@epam.com>,
"Henry Wang" <Henry.Wang@arm.com>,
"Bertrand Marquis" <Bertrand.Marquis@arm.com>,
"Stefano Stabellini" <sstabellini@kernel.org>
Subject: Re: [PATCH][4.17] EFI: don't convert memory marked for runtime use to ordinary RAM
Date: Sat, 8 Oct 2022 20:08:03 +0100 [thread overview]
Message-ID: <a957dfbe-c4c4-c8cc-93c5-616a44fe1797@xen.org> (raw)
In-Reply-To: <82963a1c-3301-72ff-e995-77c30ec5a64b@suse.com>
Hi Jan,
On 06/10/2022 15:11, Jan Beulich wrote:
>> ... the space cannot become ordinary RAM, then such a precaution
>> wouldn't be necessary. After all hiding EfiACPIReclaimMemory from
>> Dom0 just because it can't be mapped WB wouldn't be very nice
>> either. I guess I'll submit v2 with this part of the change left
>> as it was.
>
> And while already in the process of committing the patch I came to
> realize that if the WB conditional isn't supposed to move, isn't
> the change done for Arm then wrong as well? Shouldn't it then be
>
> if ( !(desc_ptr->Attribute & EFI_MEMORY_RUNTIME) &&
> (desc_ptr->Attribute & EFI_MEMORY_WB) &&
> (desc_ptr->Type == EfiConventionalMemory ||
> ...
>
> leaving the EfiACPIReclaimMemory case entirely unaffected by the
> change?
IIUC, the concern is the region EfiACPIReclaimMemory could have the
attribute EFI_MEMORY_RUNTIME. Is that correct?
Given that the memory is reclaimable, I am not sure why it can also have
this atribute set (to me it means the opposite). But I guess for
hardening purpose it would be better to use the version you just suggested.
Bertrand, Stefano, what do you think?
Cheers,
--
Julien Grall
next prev parent reply other threads:[~2022-10-08 19:08 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-30 7:50 [PATCH][4.17] EFI: don't convert memory marked for runtime use to ordinary RAM Jan Beulich
2022-09-30 11:55 ` Bertrand Marquis
2022-09-30 12:47 ` Luca Fancellu
2022-09-30 12:51 ` Bertrand Marquis
2022-10-04 15:58 ` Jan Beulich
2022-10-05 10:44 ` Julien Grall
2022-10-05 11:55 ` Jan Beulich
2022-10-05 18:09 ` Julien Grall
2022-10-06 8:39 ` Jan Beulich
2022-10-06 14:11 ` Jan Beulich
2022-10-08 19:08 ` Julien Grall [this message]
2022-10-10 6:20 ` Jan Beulich
2022-10-10 23:58 ` Stefano Stabellini
2022-10-11 7:52 ` Bertrand Marquis
2022-09-30 12:53 ` Andrew Cooper
2022-09-30 13:07 ` Jan Beulich
2022-09-30 13:35 ` Bertrand Marquis
2022-09-30 14:28 ` Roger Pau Monné
2022-10-04 8:06 ` Jan Beulich
2022-10-04 9:33 ` Roger Pau Monné
2022-10-04 10:23 ` Jan Beulich
2022-10-04 10:38 ` Roger Pau Monné
2022-10-04 10:44 ` Jan Beulich
2022-10-04 10:54 ` Roger Pau Monné
2022-10-04 12:18 ` Jan Beulich
2022-10-04 12:52 ` Roger Pau Monné
2022-10-04 13:10 ` Jan Beulich
2022-10-04 14:01 ` Roger Pau Monné
2022-10-04 14:39 ` Jan Beulich
2022-10-04 15:20 ` Roger Pau Monné
2022-10-04 15:55 ` Jan Beulich
2022-10-04 10:49 ` Andrew Cooper
2022-10-04 11:09 ` Jan Beulich
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-all 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=a957dfbe-c4c4-c8cc-93c5-616a44fe1797@xen.org \
--to=julien@xen.org \
--cc=Bertrand.Marquis@arm.com \
--cc=Henry.Wang@arm.com \
--cc=andrew.cooper3@citrix.com \
--cc=jbeulich@suse.com \
--cc=roger.pau@citrix.com \
--cc=sstabellini@kernel.org \
--cc=volodymyr_babchuk@epam.com \
--cc=wl@xen.org \
--cc=xen-devel@lists.xenproject.org \
/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;
as well as URLs for NNTP newsgroup(s).