Skip to contentSkip to conversation

Xen ARM DomU ACPI support

PATCH Boris Ostrovsky 2 participants 4 messages Sep 15, 2016

lore
Share & tools
lore
#0 lore raw
Quoted 134 lines · ----- [email protected] wrote:

Hi Stefano,

Quoted 11 lines · Stefano Stabellini
Quoted 10 lines · Julien Grall
Quoted 9 lines · Stefano Stabellini
Quoted 8 lines · Shannon Zhao
Quoted 7 lines · Julien Grall
Quoted 1 line · Shannon Zhao

Hi Julien,

Hello Shannon,

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines · Julien Grall
Quoted 7 lines

Hi Shannon,

Quoted 4 lines · Shannon Zhao

From: Shannon Zhao <[email protected]>

The design of this feature is described as below. Firstly, the toolstack (libxl) generates the ACPI tables

according

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

the
number of vcpus and gic controller.

Then, it copies these ACPI tables to DomU non-RAM memory map

space

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

and
passes them to UEFI firmware through the "ARM multiboot"

protocol.

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

At last, UEFI gets the ACPI tables through the "ARM

multiboot"

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

protocol
and installs these tables like the usual way and passes both

ACPI

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

and DT
information to the Xen DomU.

Currently libxl only generates RSDP, XSDT, GTDT, MADT, FADT,

DSDT

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

tables
since it's enough now.

This has been tested using guest kernel with the Dom0 ACPI

support

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

patches which could be fetched from linux master or:

https://git.kernel.org/cgit/linux/kernel/git/mfleming/efi.git/log/?h=efi/arm-xen

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

The UEFI binary could be fetched from or built from edk2

master

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 2 lines

branch:
http://people.linaro.org/~shannon.zhao/DomU_ACPI/XEN_EFI.fd

On which commit this EFI binary is based? I am trying to

rebuild

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 3 lines

myself,
and go no luck to boot it so far.

I forgot the exact commit. But I just tried below commit which

adds

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

the
support to edk2 and the guest can boot up successfully with

ACPI.

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

402dde6 ArmVirtPkg/ArmVirtXen: Add ACPI support for Virt Xen

ARM

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

Thanks, the commit does not build on my platform. After some

help for

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

Ard I managed to boot UEFI with the patch [1] applied.

However Linux does not boot when passing acpi=on and abort with

the

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

following message:

(d86) 6RCU: Adjusting geometry for rcu_fanout_leaf=64,

nr_cpu_ids=1

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

(d86) 6NR_IRQS:64 nr_irqs:64 0
(d86) 3No valid GICC entries exist
(d86) 0Kernel panic - not syncing: No interrupt controller

found.

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

(d86) dCPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.8.0-rc6+ #420 (d86) dHardware name: XENVM-4.8 (DT)
(d86) Call trace:
(d86) [<ffff000008088708>] dump_backtrace+0x0/0x1a8 (d86) [<ffff0000080888c4>] show_stack+0x14/0x20
(d86) [<ffff0000083d6c2c>] dump_stack+0x94/0xb8
(d86) [<ffff00000815c24c>] panic+0x10c/0x250
(d86) [<ffff000008c223f8>] init_IRQ+0x24/0x2c
(d86) [<ffff000008c20a24>] start_kernel+0x238/0x394 (d86) [<ffff000008c201bc>] __primary_switched+0x30/0x74 (d86) 0---[ end Kernel panic - not syncing: No interrupt

controller

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

found.

This is because the header.length for GICC is not valid for ACPI

5.1

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

(see BAD_MADT_GICC_ENTRY). So please check all the size of each

table

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 2 lines

against ACPI 5.1.

Oops. The reason is that acpi_madt_generic_interrupt in Xen is

already

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

updated to ACPI 6.0 and the length is 80 not 76 of ACPI 5.1. One solution is that we still use ACPI 5.1 and make

gicc->header.length

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

76. Other one is that we update to ACPI 6.0 since the Xen ARM

ACPI

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 3 lines

support in Linux was introduced after ACPI 6.0.

Which one do you prefer?

Certainly the versions of all tables need to be consistent. I

would

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

prefer to have ACPI 6.0 but 5.1 is acceptable too (especially if upgrading to 6.0 causes a large amount of changes to your

patches).

Quoted 2 lines
Quoted 2 lines

I disagree on this, we should use the first version of ACPI that is

fully

Quoted 1 line
Quoted 1 line

supporting ARM because a guest operating system may choose to

support the

Quoted 1 line
Quoted 1 line

first one (there is a lot hardware platform out which only provides

ACPI 5.1).

Quoted 2 lines

And I thought that compatibility was supposed to be ACPI's strong

suit.

Quoted 1 line

I mistakenly had the impression that new ACPI releases weren't

suppose

Quoted 8 lines
Quoted 1 line

to break old OSes. I take back my comment, you are right that we

should

Quoted 2 lines

stay on 5.1 (including all the erratas, many are important for ARM).

IIRC, early version of ACPI used to have some incompatibility. I will have to go through the ACPI spec to find the main differences between 5.1 and 6.0 for ARM.

Transition from 1.x to 2.0 introduced incompatibilities (I believe in RSDP structure definition) but I thought that since then they kept everything back compatible.

-boris

Quoted 14 lines

Assuming the newer versions are backward compatible, it might be good to
written down somewhere (maybe a public headers) that the guest OS should
not assume a specific version of ACPI. This would avoid to tie us on ACPI 5.1 and allow us to upgrade the tables on a next release of Xen.

In any case, we should be consistent accross all the ACPI tables (e.g version, size of the tables...) to accommodate picky OSes. For now, I would stay on ACPI 5.1 for safety.

Regards,

Quoted 7 lines

--
Julien Grall

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

#1 lore raw

Hi Boris,

Quoted 142 lines · Boris Ostrovsky
Quoted 139 lines · ----- [email protected] wrote:

Hi Stefano,

Quoted 11 lines · Stefano Stabellini
Quoted 10 lines · Julien Grall
Quoted 9 lines · Stefano Stabellini
Quoted 8 lines · Shannon Zhao
Quoted 7 lines · Julien Grall
Quoted 1 line · Shannon Zhao

Hi Julien,

Hello Shannon,

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines · Julien Grall
Quoted 7 lines

Hi Shannon,

Quoted 4 lines · Shannon Zhao

From: Shannon Zhao <[email protected]>

The design of this feature is described as below. Firstly, the toolstack (libxl) generates the ACPI tables

according

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

the
number of vcpus and gic controller.

Then, it copies these ACPI tables to DomU non-RAM memory map

space

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

and
passes them to UEFI firmware through the "ARM multiboot"

protocol.

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

At last, UEFI gets the ACPI tables through the "ARM

multiboot"

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

protocol
and installs these tables like the usual way and passes both

ACPI

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

and DT
information to the Xen DomU.

Currently libxl only generates RSDP, XSDT, GTDT, MADT, FADT,

DSDT

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

tables
since it's enough now.

This has been tested using guest kernel with the Dom0 ACPI

support

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

patches which could be fetched from linux master or:

https://git.kernel.org/cgit/linux/kernel/git/mfleming/efi.git/log/?h=efi/arm-xen

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

The UEFI binary could be fetched from or built from edk2

master

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 2 lines

branch:
http://people.linaro.org/~shannon.zhao/DomU_ACPI/XEN_EFI.fd

On which commit this EFI binary is based? I am trying to

rebuild

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 3 lines

myself,
and go no luck to boot it so far.

I forgot the exact commit. But I just tried below commit which

adds

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

the
support to edk2 and the guest can boot up successfully with

ACPI.

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

402dde6 ArmVirtPkg/ArmVirtXen: Add ACPI support for Virt Xen

ARM

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

Thanks, the commit does not build on my platform. After some

help for

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

Ard I managed to boot UEFI with the patch [1] applied.

However Linux does not boot when passing acpi=on and abort with

the

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

following message:

(d86) 6RCU: Adjusting geometry for rcu_fanout_leaf=64,

nr_cpu_ids=1

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

(d86) 6NR_IRQS:64 nr_irqs:64 0
(d86) 3No valid GICC entries exist
(d86) 0Kernel panic - not syncing: No interrupt controller

found.

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

(d86) dCPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.8.0-rc6+ #420 (d86) dHardware name: XENVM-4.8 (DT)
(d86) Call trace:
(d86) [<ffff000008088708>] dump_backtrace+0x0/0x1a8 (d86) [<ffff0000080888c4>] show_stack+0x14/0x20
(d86) [<ffff0000083d6c2c>] dump_stack+0x94/0xb8
(d86) [<ffff00000815c24c>] panic+0x10c/0x250
(d86) [<ffff000008c223f8>] init_IRQ+0x24/0x2c
(d86) [<ffff000008c20a24>] start_kernel+0x238/0x394 (d86) [<ffff000008c201bc>] __primary_switched+0x30/0x74 (d86) 0---[ end Kernel panic - not syncing: No interrupt

controller

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

found.

This is because the header.length for GICC is not valid for ACPI

5.1

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

(see BAD_MADT_GICC_ENTRY). So please check all the size of each

table

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 2 lines

against ACPI 5.1.

Oops. The reason is that acpi_madt_generic_interrupt in Xen is

already

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

updated to ACPI 6.0 and the length is 80 not 76 of ACPI 5.1. One solution is that we still use ACPI 5.1 and make

gicc->header.length

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

76. Other one is that we update to ACPI 6.0 since the Xen ARM

ACPI

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 3 lines

support in Linux was introduced after ACPI 6.0.

Which one do you prefer?

Certainly the versions of all tables need to be consistent. I

would

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

prefer to have ACPI 6.0 but 5.1 is acceptable too (especially if upgrading to 6.0 causes a large amount of changes to your

patches).

Quoted 2 lines
Quoted 2 lines

I disagree on this, we should use the first version of ACPI that is

fully

Quoted 1 line
Quoted 1 line

supporting ARM because a guest operating system may choose to

support the

Quoted 1 line
Quoted 1 line

first one (there is a lot hardware platform out which only provides

ACPI 5.1).

Quoted 2 lines

And I thought that compatibility was supposed to be ACPI's strong

suit.

Quoted 1 line

I mistakenly had the impression that new ACPI releases weren't

suppose

Quoted 1 line

to break old OSes. I take back my comment, you are right that we

should

Quoted 2 lines

stay on 5.1 (including all the erratas, many are important for ARM).

Quoted 8 lines
Quoted 3 lines

IIRC, early version of ACPI used to have some incompatibility. I will have to go through the ACPI spec to find the main differences between 5.1 and 6.0 for ARM.

Transition from 1.x to 2.0 introduced incompatibilities (I believe in RSDP structure definition) but I thought that since then they kept everything back compatible.

Not related to ARM. But is it the reason why you keep an early version of ACPI for HVM guest and never upgraded?

Regards,

Signature · 6 lines
Julien Grall

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
#2 lore raw
Quoted 151 lines · Julien Grall

Hi Boris,

Quoted 148 lines · Boris Ostrovsky
Quoted 143 lines · ----- [email protected] wrote:

Hi Stefano,

Quoted 11 lines · Stefano Stabellini
Quoted 10 lines · Julien Grall
Quoted 9 lines · Stefano Stabellini
Quoted 8 lines · Shannon Zhao
Quoted 7 lines · Julien Grall
Quoted 1 line · Shannon Zhao

Hi Julien,

Hello Shannon,

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines · Julien Grall
Quoted 7 lines

Hi Shannon,

Quoted 4 lines · Shannon Zhao

From: Shannon Zhao <[email protected]>

The design of this feature is described as below. Firstly, the toolstack (libxl) generates the ACPI tables

according

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

the
number of vcpus and gic controller.

Then, it copies these ACPI tables to DomU non-RAM memory map

space

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

and
passes them to UEFI firmware through the "ARM multiboot"

protocol.

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

At last, UEFI gets the ACPI tables through the "ARM

multiboot"

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

protocol
and installs these tables like the usual way and passes both

ACPI

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

and DT
information to the Xen DomU.

Currently libxl only generates RSDP, XSDT, GTDT, MADT, FADT,

DSDT

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

tables
since it's enough now.

This has been tested using guest kernel with the Dom0 ACPI

support

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

patches which could be fetched from linux master or:

https://git.kernel.org/cgit/linux/kernel/git/mfleming/efi.git/log/?h=efi/arm-xen

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

The UEFI binary could be fetched from or built from edk2

master

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 2 lines

branch:
http://people.linaro.org/~shannon.zhao/DomU_ACPI/XEN_EFI.fd

On which commit this EFI binary is based? I am trying to

rebuild

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 3 lines

myself,
and go no luck to boot it so far.

I forgot the exact commit. But I just tried below commit which

adds

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

the
support to edk2 and the guest can boot up successfully with

ACPI.

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

402dde6 ArmVirtPkg/ArmVirtXen: Add ACPI support for Virt Xen

ARM

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

Thanks, the commit does not build on my platform. After some

help for

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

Ard I managed to boot UEFI with the patch [1] applied.

However Linux does not boot when passing acpi=on and abort with

the

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

following message:

(d86) 6RCU: Adjusting geometry for rcu_fanout_leaf=64,

nr_cpu_ids=1

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

(d86) 6NR_IRQS:64 nr_irqs:64 0
(d86) 3No valid GICC entries exist
(d86) 0Kernel panic - not syncing: No interrupt controller

found.

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

(d86) dCPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.8.0-rc6+ #420 (d86) dHardware name: XENVM-4.8 (DT)
(d86) Call trace:
(d86) [<ffff000008088708>] dump_backtrace+0x0/0x1a8 (d86) [<ffff0000080888c4>] show_stack+0x14/0x20
(d86) [<ffff0000083d6c2c>] dump_stack+0x94/0xb8
(d86) [<ffff00000815c24c>] panic+0x10c/0x250
(d86) [<ffff000008c223f8>] init_IRQ+0x24/0x2c
(d86) [<ffff000008c20a24>] start_kernel+0x238/0x394 (d86) [<ffff000008c201bc>] __primary_switched+0x30/0x74 (d86) 0---[ end Kernel panic - not syncing: No interrupt

controller

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

found.

This is because the header.length for GICC is not valid for ACPI

5.1

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

(see BAD_MADT_GICC_ENTRY). So please check all the size of each

table

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 2 lines

against ACPI 5.1.

Oops. The reason is that acpi_madt_generic_interrupt in Xen is

already

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

updated to ACPI 6.0 and the length is 80 not 76 of ACPI 5.1. One solution is that we still use ACPI 5.1 and make

gicc->header.length

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

76. Other one is that we update to ACPI 6.0 since the Xen ARM

ACPI

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 3 lines

support in Linux was introduced after ACPI 6.0.

Which one do you prefer?

Certainly the versions of all tables need to be consistent. I

would

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

prefer to have ACPI 6.0 but 5.1 is acceptable too (especially if upgrading to 6.0 causes a large amount of changes to your

patches).

Quoted 2 lines
Quoted 2 lines

I disagree on this, we should use the first version of ACPI that is

fully

Quoted 1 line
Quoted 1 line

supporting ARM because a guest operating system may choose to

support the

Quoted 1 line
Quoted 1 line

first one (there is a lot hardware platform out which only provides

ACPI 5.1).

Quoted 2 lines

And I thought that compatibility was supposed to be ACPI's strong

suit.

Quoted 1 line

I mistakenly had the impression that new ACPI releases weren't

suppose

Quoted 1 line

to break old OSes. I take back my comment, you are right that we

should

Quoted 2 lines

stay on 5.1 (including all the erratas, many are important for ARM).

IIRC, early version of ACPI used to have some incompatibility. I will have to go through the ACPI spec to find the main differences between 5.1 and 6.0 for ARM.

Quoted 8 lines
Quoted 5 lines

Transition from 1.x to 2.0 introduced incompatibilities (I believe in RSDP
structure definition) but I thought that since then they kept everything back
compatible.

Not related to ARM. But is it the reason why you keep an early version of ACPI for HVM guest and never upgraded?

I think Jan mentioned at some point that certain versions of Windows require an early revision although IIRC it was 2.0. So perhaps at some point we could drop support for pre-2.0 versions, but this was never going to be part of my series --- the goal was only to make it available to libxl.

-boris

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

#3 lore raw
Quoted 6 lines · Boris Ostrovsky

On 09/15/2016 04:58 AM, Julien Grall wrote:
I think Jan mentioned at some point that certain versions of Windows require an early revision although IIRC it was 2.0. So perhaps at some point we could drop support for pre-2.0 versions, but this was never going to be part of my series --- the goal was only to make it available to libxl.

Thank you for the information!

Cheers,

Signature · 6 lines
Julien Grall

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel