From: Jan Beulich <jbeulich@suse.com>
To: Igor Druzhinin <igor.druzhinin@citrix.com>
Cc: xen-devel@lists.xenproject.org, andrew.cooper3@citrix.com,
roger.pau@citrix.com, wl@xen.org, iwj@xenproject.org
Subject: Re: [PATCH v2.1] hvmloader: indicate dynamically allocated memory as ACPI NVS in e820
Date: Fri, 4 Sep 2020 16:40:30 +0200 [thread overview]
Message-ID: <07811cc2-2780-b807-7669-80ae20fd9263@suse.com> (raw)
In-Reply-To: <17fb8575-8a05-9c31-b777-292b66b0e7e1@citrix.com>
On 04.09.2020 13:49, Igor Druzhinin wrote:
> On 04/09/2020 09:33, Jan Beulich wrote:
>> On 01.09.2020 04:50, Igor Druzhinin wrote:
>>> Guest kernel does need to know in some cases where the tables are located
>>> to treat these regions properly. One example is kexec process where
>>> the first kernel needs to pass firmware region locations to the second
>>> kernel which is now a requirement after 02a3e3cdb7f12 ("x86/boot: Parse SRAT
>>> table and count immovable memory regions").
>>
>> I'm still struggling with the connection here: Reserved regions
>> surely are "immovable" too, aren't they?
>
> "Immovable" regions here are RAM that doesn't go away by hot-unplug. That change
> was necessary in Linux to avoid image randomized placement to these regions.
>
>> Where's the connection to
>> the E820 map in the first place - the change cited above is entirely
>> about SRAT? And I can't imagine kexec getting away with passing on
>> ACPI NVS regions, but not reserved ones.
>>
>
> They got away with it for as long as kexec exists I think. The point was that
> those reserved regions were not accessed during early boot as long as kexec kernel stays
> at transition tables. Now ACPI portion of it is accessed which highlighted our
> imprecise reporting of memory layout to the guest - which I think should be fixed
> either way.
Is this to mean they map ACPI regions into the transition page tables,
but not reserved regions? If so, perhaps that's what the description
wants to say (and then possibly with a reference to the commit
introducing this into Linux, instead of the seemingly unrelated SRAT
one)?
Jan
> I'm not going to argue if reserved regions should be mapped to transition tables or
> not - I don't think it's important in context related to this patch. There were
> already several kernel releases without that mappings and those also should be able
> to invoke kdump.
>
> Igor
>
next prev parent reply other threads:[~2020-09-04 14:41 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-01 2:50 [PATCH v2.1] hvmloader: indicate dynamically allocated memory as ACPI NVS in e820 Igor Druzhinin
2020-09-01 9:28 ` Roger Pau Monné
2020-09-01 10:29 ` Igor Druzhinin
2020-09-04 8:33 ` Jan Beulich
2020-09-04 11:49 ` Igor Druzhinin
2020-09-04 14:40 ` Jan Beulich [this message]
2020-09-04 14:47 ` Igor Druzhinin
2020-09-04 15:29 ` 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=07811cc2-2780-b807-7669-80ae20fd9263@suse.com \
--to=jbeulich@suse.com \
--cc=andrew.cooper3@citrix.com \
--cc=igor.druzhinin@citrix.com \
--cc=iwj@xenproject.org \
--cc=roger.pau@citrix.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.