[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v4] hvmloader: indicate ACPI tables with "ACPI data" type in e820


  • To: Jan Beulich <jbeulich@xxxxxxxx>, <andrew.cooper3@xxxxxxxxxx>
  • From: Igor Druzhinin <igor.druzhinin@xxxxxxxxxx>
  • Date: Wed, 9 Sep 2020 17:15:40 +0100
  • Authentication-results: esa4.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none
  • Cc: <xen-devel@xxxxxxxxxxxxxxxxxxxx>, <roger.pau@xxxxxxxxxx>, <wl@xxxxxxx>, <iwj@xxxxxxxxxxxxxx>
  • Delivery-date: Wed, 09 Sep 2020 16:15:53 +0000
  • Ironport-sdr: VgmMhjN8SOPKi8YaqPeGuoXmdVlYP7rXJxgKOXY87fxZ+vln5zYK2ZTP9qf8C0SNQQkUvVO+eG nt8wti8PSIyY1UmjPfU29CWd74L55tQ6baJGAYPwzkIkqOF/jgjoNQ6BQYR6A60oS0ied7odg2 7OFXME7nnOBp2O9YRqgT7Yolc66c+c3C9lQGyw0eR3yHvsOTCo4Op0q8/IbB54SX887LMH4its 8V0182xvGQoPXkpL94UudEzpLyG7hrOglOIwRmM16tUb9/Zy/H+X5BrxN+k8sYuBrGTOkzOB+j JaM=
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 09/09/2020 17:00, Jan Beulich wrote:
> On 08.09.2020 17:41, 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 ACPI region locations to the second
>> kernel which is now a requirement in Linux after 02a3e3cdb7f12 ("x86/boot:
>> Parse SRAT table and count immovable memory regions") in order for kexec
>> transition to actually work.
>>
>> That commit introduced accesses to XSDT and SRAT while the second kernel
>> is still using kexec transition tables. The transition tables do not have
>> e820 "reserved" regions mapped where those tables are located currently
>> in a Xen guest. Instead "ACPI data" regions are mapped with the transition
>> tables that was introduced by the following commit 6bbeb276b7 ("x86/kexec:
>> Add the EFI system tables and ACPI tables to the ident map").
>>
>> Reserve 1MB (out of 16MB currently available) right after ACPI info page for
>> ACPI tables exclusively but populate this region on demand and only indicate
>> populated memory as "ACPI data" since according to ACPI spec that memory is
>> reclaimable by the guest if necessary. That is close to how we treat
>> the same ACPI data in PVH guests. 1MB should be enough for now but could be
>> later extended if required.
>>
>> Signed-off-by: Igor Druzhinin <igor.druzhinin@xxxxxxxxxx>
> 
> After committing this I'm now somewhat uncertain whether to queue this
> for the stable trees. Does either of you (or anyone else) have any clear
> opinion either way?

That depends on what the upstream support statement was for kexec/kdump for 
stable
releases.Note that newer guests (e.g. Ubuntu 20.04) won't able to enter kdump
kernel without that.

In Citrix we'd be glad if it reaches at least stable-4.13 as we're backporting 
this
functionality to our 4.13 based LTSR.

Igor



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.