[PATCH v2] x86/boot: Use EFI setup data if provided

Chao Fan fanc.fnst at cn.fujitsu.com
Fri Mar 29 02:44:09 PDT 2019

On Fri, Mar 29, 2019 at 09:37:00AM +0000, Junichi Nomura wrote:
>On 3/29/19 6:16 PM, Borislav Petkov wrote:
>> On Fri, Mar 29, 2019 at 05:05:50PM +0800, Chao Fan wrote:
>>> But in my code, I am not sure which version will be found firstly, so I
>>> write this logical, if ACPI20 found, return directly, then consider ACPI 1.0.
>> Thanks.
>> Junichi, please add a shorter version of that as a comment to the code,
>> above the function name so that it is clear why we're preferring the 2.0
>> version.
>Sure, I'll add this above __efi_get_rsdp_addr().
> * Search EFI system tables for RSDP.  If both ACPI_20_TABLE_GUID and
> * ACPI_TABLE_GUID are found, take the former, which has more features.
> */

I notice in my host machine, the two tables are the same:
[17:38:11] cfan at localhost /home/cfan (0)
> sudo cat /sys/firmware/efi/systab
[sudo] password for cfan:

But in my qemu guest, they are different and the address of ACPI20 is
higher than ACPI 1.0:
[root at localhost ~]# cat /sys/firmware/efi/systab

In this condition, ACPI 1.0 comes before ACPI 2.0. So I suggested you
to keep this logical.

Chao Fan

>Jun'ichi Nomura, NEC Corporation / NEC Solution Innovators, Ltd.

More information about the kexec mailing list