xen/arm64: Default ACPI support enabled
PATCH 1/1 xen/arm64: Default ACPI support enabled
Unlike other unsupportted options, ACPI support is required to *boot* for a number of platforms. Users on these platforms are unable to use distribution builds and must rebuild from source to use Xen.
---
Stripping this down to near-minimum. Previous similar commits had included a message in dmesg, but the community call indicated doing near the absolute minimum.
There was also a mention of potentially marking Xen as tainted in this case. That seems reasonable to me. Just ACPI support needs to default enabled now.
--- xen/arch/arm/Kconfig | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
xen/arch/arm/Kconfig +6 -1
@@ -29,13 +29,18 @@ menu "Architecture Features" source "arch/Kconfig" config ACPI - bool "ACPI (Advanced Configuration and Power Interface) Support (UNSUPPORTED)" if UNSUPPORTED + bool "ACPI (Advanced Configuration and Power Interface) Support (UNSUPPORTED)" depends on ARM_64 + default y ---help--- Advanced Configuration and Power Interface (ACPI) support for Xen is an alternative to device tree on ARM64. + Note this is presently UNSUPPORTED. If a given device has both + device-tree and ACPI support, it is presently (February 2023) + recommended to boot using the device-tree. + config ARM_EFI bool
Signature · 4 lines
(\___(\___(\______ --=> 8-) EHM <=-- ______/)___/)___/) \BS ( | [email protected] PGP 87145445 | ) / \_CS\ | _____ -O #include <stddisclaimer.h> O- _____ | / _/ 8A19\___\_|_/58D2 7E3D DDF4 7BA6 <-PGP-> 41D1 B375 37D0 8714\_|_/___/5445
Quoted 5 lines · Elliott Mitchell
Unlike other unsupportted options, ACPI support is required to *boot* for a number of platforms. Users on these platforms are unable to use distribution builds and must rebuild from source to use Xen.
Signed-off-by Elliott Mitchell <[email protected]>
A general question first: How come this mail dates back to July 2020? I had almost missed it as "new".
xen/arch/arm/Kconfig menu "Architecture Features" · line 32
Quoted 8 lines
xen/arch/arm/Kconfig +1
-1@@ -29,13 +29,18 @@ menu "Architecture Features" source "arch/Kconfig" config ACPI - bool "ACPI (Advanced Configuration and Power Interface) Support (UNSUPPORTED)" if UNSUPPORTED + bool "ACPI (Advanced Configuration and Power Interface) Support (UNSUPPORTED)"
Personally I think the (UNSUPPORTED) in the prompt should then go away as well. Which in turn points out that we will want to reconsider whether we actually have UNSUPPORTED as a Kconfig control, as its purpose looks to be specifically cases like the one here. The question goes to Stefano in particular, who I think had introduced it back at the time.
Jan
Quoted 9 lines · Jan Beulich
Quoted 5 lines · Elliott Mitchell
Unlike other unsupportted options, ACPI support is required to *boot* for a number of platforms. Users on these platforms are unable to use distribution builds and must rebuild from source to use Xen.
Signed-off-by Elliott Mitchell <[email protected]>A general question first: How come this mail dates back to July 2020? I had almost missed it as "new".
I can't even find the Elliott's email in my inbox so reply here. But this sounds like a rehash of [1].
Quoted 3 lines
Quoted 3 lines
Unlike other unsupportted options, ACPI support is required to *boot* for a number of platforms. Users on these platforms are unable to use distribution builds and must rebuild from source to use Xen.
What platforms are you testing on? I know that this is working-ish on RPI4 and QEMU. But this will likely blow up on one of the server we support in OSSTest because we don't have proper support to hide SMMUs in dom0.
Quoted 9 lines
xen/arch/arm/Kconfig menu "Architecture Features" · line 32
Quoted 9 lines
xen/arch/arm/Kconfig +1
-1@@ -29,13 +29,18 @@ menu "Architecture Features" source "arch/Kconfig" config ACPI - bool "ACPI (Advanced Configuration and Power Interface) Support (UNSUPPORTED)" if UNSUPPORTED + bool "ACPI (Advanced Configuration and Power Interface) Support (UNSUPPORTED)"
The concerns I raised in [1] still stand. Most of the ACPI platform will also have support for IOMMUs. If we have support for IORT in Xen, then I would be a lot more amenable to remove the "UNSUPPORTED". And without that support we are going to do more harm and than good.
Quoted 6 lines
Personally I think the (UNSUPPORTED) in the prompt should then go away as well. Which in turn points out that we will want to reconsider whether we actually have UNSUPPORTED as a
Kconfigcontrol, as its purpose looks to be specifically cases like the one here. The question goes to Stefano in particular, who I think had introduced it back at the time.
Cheers,
Signature · 1 line
Julien Grall
Quoted 7 lines · Julien Grall
Quoted 5 lines · Jan Beulich
Quoted 4 lines · Elliott Mitchell
Unlike other unsupportted options, ACPI support is required to *boot* for a number of platforms. Users on these platforms are unable to use distribution builds and must rebuild from source to use Xen.
Quoted 7 lines
Quoted 4 lines
Quoted 1 line
Signed-off-by Elliott Mitchell <[email protected]>A general question first: How come this mail dates back to July 2020? I had almost missed it as "new".
I can't even find the Elliott's email in my inbox so reply here. But this sounds like a rehash of [1].
The date on Git patches is meant as an indicator for author date. Since this is a cherry-pick of a patch which was written >2 years ago git format-patch indicates when it was written. This IS how these systems work.
Quoted 8 lines
Quoted 3 lines
Quoted 3 lines
Unlike other unsupportted options, ACPI support is required to *boot* for a number of platforms. Users on these platforms are unable to use distribution builds and must rebuild from source to use Xen.
What platforms are you testing on? I know that this is working-ish on RPI4 and QEMU. But this will likely blow up on one of the server we support in OSSTest because we don't have proper support to hide SMMUs in dom0.
I've been doing RPI4 w/EDK2. Which works for my purpose, the remaining trouble spot for my purpose is needing a final resolution of the EFIFB situation.
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
xen/arch/arm/Kconfig +0
-0@@ -29,13 +29,18 @@ menu "Architecture Features" source "arch/Kconfig"
Quoted 8 lines
Quoted 3 lines
xen/arch/arm/Kconfig menu "Architecture Features" · line 32
Quoted 3 lines
xen/arch/arm/Kconfig +1
-1config ACPI - bool "ACPI (Advanced Configuration and Power Interface) Support (UNSUPPORTED)" if UNSUPPORTED + bool "ACPI (Advanced Configuration and Power Interface) Support (UNSUPPORTED)"The concerns I raised in [1] still stand. Most of the ACPI platform will also have support for IOMMUs. If we have support for IORT in Xen, then I would be a lot more amenable to remove the "UNSUPPORTED". And without that support we are going to do more harm and than good.
Okay, this has been a known issue for *years* and yet remains unresolved despite being a major issue. Might be an abomination, but would it work to find the string "IORT" and change it to "iort", "RTIO" or "IOXN" to prevent Dom0 from finding it?
This ends up turning into a question of what are the cases and which are more common?
Case1: DT-only: Unchanged
Case2: Switchable between DT and ACPI, w/o SMMU: Starts working with ACPI
Case3: Switchable between DT and ACPI, w/SMMU: Unchanged, ACPI mode still doesn't work, but the failure is different.
Case4: Concurrent DT and ACPI support, w/o SMMU: Unchanged
Case5: Concurrent DT and ACPI support, w/SMMU: Breaks if Dom0 tries to use ACPI
Case6: ACPI-only, w/o SMMU: Starts working out-of-box
Case7: ACPI-only, w/SMMU: Unchanged (still broken)
Any other distinct cases of note?
So case 5 is a problem, but cases 2 and 6 are positive. Does the classic workaround of "acpi=off" work for Linux as Dom0? If that is "yes", then publicizing that workaround (should be detectable by Xen) seems a likely short-term solution.
My impression is ACPI is getting increasing support in on ARM. The number of mentions suggests if they keep going it looks likely to win. The EDK2 project has been providing an image for RPI4 and the functionality is impressive.
Ultimately this is more a decision for Xen Project management, than the technical side. Are things in shape where they can be rolled out? Is ACPI support important enough to need rolling out now?
I'm unsure about the former, but the latter seems a distinct "yes" since ACPI appears to be the future.
Signature · 4 lines
(\___(\___(\______ --=> 8-) EHM <=-- ______/)___/)___/) \BS ( | [email protected] PGP 87145445 | ) / \_CS\ | _____ -O #include <stddisclaimer.h> O- _____ | / _/ 8A19\___\_|_/58D2 7E3D DDF4 7BA6 <-PGP-> 41D1 B375 37D0 8714\_|_/___/5445
Quoted 13 lines · Elliott Mitchell
Quoted 12 lines · Julien Grall
Quoted 9 lines · Jan Beulich
Quoted 5 lines · Elliott Mitchell
Unlike other unsupportted options, ACPI support is required to *boot* for a number of platforms. Users on these platforms are unable to use distribution builds and must rebuild from source to use Xen.
Signed-off-by Elliott Mitchell <[email protected]>A general question first: How come this mail dates back to July 2020? I had almost missed it as "new".
Quoted 7 lines
Quoted 2 lines
I can't even find the Elliott's email in my inbox so reply here. But this sounds like a rehash of [1].
The date on Git patches is meant as an indicator for author date. Since this is a cherry-pick of a patch which was written >2 years ago
git format-patchindicates when it was written. This IS how these systems work.
Yet I don't think I've seen anyone else send such apparently out-of-date patches. And I don't think they all go and massage the author date prior to sending stuff out ...
Jan
Hi Elliott,
Quoted 13 lines · Elliott Mitchell
Quoted 12 lines · Julien Grall
Quoted 9 lines · Jan Beulich
Quoted 5 lines · Elliott Mitchell
Unlike other unsupportted options, ACPI support is required to *boot* for a number of platforms. Users on these platforms are unable to use distribution builds and must rebuild from source to use Xen.
Signed-off-by Elliott Mitchell <[email protected]>A general question first: How come this mail dates back to July 2020? I had almost missed it as "new".
Quoted 7 lines
Quoted 2 lines
I can't even find the Elliott's email in my inbox so reply here. But this sounds like a rehash of [1].
The date on Git patches is meant as an indicator for author date. Since this is a cherry-pick of a patch which was written >2 years ago
git format-patchindicates when it was written. This IS how these systems work.
Hmmm... I am a bit surprised to what you say. I have sent several patches in the past with an old author date and they always showed as the date sent in my inbox.
Quoted 5 lines
Quoted 5 lines
Quoted 4 lines
Quoted 4 lines
Unlike other unsupportted options, ACPI support is required to *boot* for a number of platforms. Users on these platforms are unable to use distribution builds and must rebuild from source to use Xen.
Quoted 8 lines
Quoted 4 lines
What platforms are you testing on? I know that this is working-ish on RPI4 and QEMU. But this will likely blow up on one of the server we support in OSSTest because we don't have proper support to hide SMMUs in dom0.
I've been doing RPI4 w/EDK2. Which works for my purpose, the remaining trouble spot for my purpose is needing a final resolution of the EFIFB situation.
I have had no feedback from the relevant person on EFIFB patch and I am not planning to purse the work in the near future.
Quoted 15 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
xen/arch/arm/Kconfig +0
-0@@ -29,13 +29,18 @@ menu "Architecture Features" source "arch/Kconfig"Quoted 8 lines
Quoted 3 lines
xen/arch/arm/Kconfig menu "Architecture Features" · line 32
Quoted 3 lines
xen/arch/arm/Kconfig +1
-1config ACPI - bool "ACPI (Advanced Configuration and Power Interface) Support (UNSUPPORTED)" if UNSUPPORTED + bool "ACPI (Advanced Configuration and Power Interface) Support (UNSUPPORTED)"The concerns I raised in [1] still stand. Most of the ACPI platform will also have support for IOMMUs. If we have support for IORT in Xen, then I would be a lot more amenable to remove the "UNSUPPORTED". And without that support we are going to do more harm and than good.
Quoted 2 lines
Okay, this has been a known issue for *years* and yet remains unresolved despite being a major issue.
Right, the situation hasn't changed much since you last sent your patch to drop EXPERT/UNSUPPORTED.
Unless you fancy working on ACPI, I don't really see the situation changing soon.
Quoted 3 lines
Might be an abomination, but would it work
to find the string "IORT" and change it to "iort", "RTIO" or "IOXN" to prevent Dom0 from finding it?
Unfortunately no because there IORT is used to describing mapping for the GICv3 ITS which is currently working when ACPI is enabled in Xen.
Quoted 4 lines
This ends up turning into a question of what are the cases and which are more common?
Quoted 8 lines
Case1: DT-only: Unchanged
Case2: Switchable between DT and ACPI, w/o SMMU: Starts working with ACPI
Case3: Switchable between DT and ACPI, w/SMMU: Unchanged, ACPI mode still doesn't work, but the failure is different.
Case4: Concurrent DT and ACPI support, w/o SMMU: Unchanged
So Xen would start using ACPI rather than DT.I think we should default DT it until we have the ACPI support completed.
Quoted 7 lines
Case5: Concurrent DT and ACPI support, w/SMMU: Breaks if Dom0 tries to use ACPI
Case6: ACPI-only, w/o SMMU: Starts working out-of-box
Case7: ACPI-only, w/SMMU: Unchanged (still broken)
To clarify, this will boot but then start to break in very subtle way.
Quoted 2 lines
Any other distinct cases of note?
Nothing AFAICT.
Quoted 9 lines
So case 5 is a problem, but cases 2 and 6 are positive. Does the classic workaround of "acpi=off" work for Linux as Dom0? If that is "yes", then publicizing that workaround (should be detectable by Xen) seems a likely short-term solution.
My impression is ACPI is getting increasing support in on ARM. The number of mentions suggests if they keep going it looks likely to win. The EDK2 project has been providing an image for RPI4 and the functionality is impressive.
AFAIK, the push is drove by Arm Server and Windows on Arm. Does EDK2 on RPI4 still provide both DT and ACPI?
Quoted 3 lines
Ultimately this is more a decision for Xen Project management, than the technical side. Are things in shape where they can be rolled out?
No. But as I wrote before, I don't believe the gap is very big.
Quoted 5 lines
Is
ACPI support important enough to need rolling out now?I'm unsure about the former, but the latter seems a distinct "yes" since ACPI appears to be the future.
ACPI is indeed picking up the pace on Arm Server and platform where Windows on Arm is supported. But that should not only be the reason to remove UNSUPPORTED.
You are right that enabling ACPI by default will draw more users. But I also expect those users to be less familiar with Xen and therefore not very interested to fix bugs. So removing EXPERT/UNSUPPORTED is probably going to still make them unhappy as I don't think the help (including writing patch) for ACPI on Arm will change very much in the near future (from the community call I was under the impression you could not commit time for it).
So I am not convinced this is really making Xen in a better position right now.
Cheers,
Signature · 1 line
Julien Grall
Quoted 18 lines · Julien Grall
Quoted 16 lines · Elliott Mitchell
Quoted 14 lines · Julien Grall
Quoted 9 lines · Jan Beulich
Quoted 5 lines · Elliott Mitchell
Unlike other unsupportted options, ACPI support is required to *boot* for a number of platforms. Users on these platforms are unable to use distribution builds and must rebuild from source to use Xen.
Signed-off-by Elliott Mitchell <[email protected]>A general question first: How come this mail dates back to July 2020? I had almost missed it as "new".
I can't even find the Elliott's email in my inbox so reply here. But this sounds like a rehash of [1].
Quoted 8 lines
Quoted 4 lines
The date on Git patches is meant as an indicator for author date. Since this is a cherry-pick of a patch which was written >2 years ago
git format-patchindicates when it was written. This IS how these systems work.Hmmm... I am a bit surprised to what you say. I have sent several patches in the past with an old author date and they always showed as the date sent in my inbox.
Dunno, but it was straight out of git format-patch. I'm not using git send-email though (that requires a setup distinct from what I'm aiming for).
Quoted 9 lines
Quoted 9 lines
Quoted 8 lines
Quoted 3 lines
Quoted 3 lines
Unlike other unsupportted options, ACPI support is required to *boot* for a number of platforms. Users on these platforms are unable to use distribution builds and must rebuild from source to use Xen.
What platforms are you testing on? I know that this is working-ish on RPI4 and QEMU. But this will likely blow up on one of the server we support in OSSTest because we don't have proper support to hide SMMUs in dom0.
Quoted 6 lines
Quoted 3 lines
I've been doing RPI4 w/EDK2. Which works for my purpose, the remaining trouble spot for my purpose is needing a final resolution of the EFIFB situation.
I have had no feedback from the relevant person on EFIFB patch and I am not planning to purse the work in the near future.
Okay, thanks for the news. Hopefully efifb on Xen support gets into kernels closer to the Linux HEAD.
Quoted 14 lines
Quoted 14 lines
Quoted 13 lines
Quoted 8 lines
xen/arch/arm/Kconfig menu "Architecture Features" · line 32
Quoted 8 lines
xen/arch/arm/Kconfig +1
-1@@ -29,13 +29,18 @@ menu "Architecture Features" source "arch/Kconfig" config ACPI - bool "ACPI (Advanced Configuration and Power Interface) Support (UNSUPPORTED)" if UNSUPPORTED + bool "ACPI (Advanced Configuration and Power Interface) Support (UNSUPPORTED)"The concerns I raised in [1] still stand. Most of the ACPI platform will also have support for IOMMUs. If we have support for IORT in Xen, then I would be a lot more amenable to remove the "UNSUPPORTED". And without that support we are going to do more harm and than good.
Quoted 8 lines
Quoted 2 lines
Okay, this has been a known issue for *years* and yet remains unresolved despite being a major issue.
Right, the situation hasn't changed much since you last sent your patch to drop EXPERT/UNSUPPORTED.
Unless you fancy working on ACPI, I don't really see the situation changing soon.
The situation is changing in large entities are pushing ACPI for ARM. If they succeed (likely) then it will be a case of Xen/ARM MUST support ACPI, or else the project will die. There is always a chance I might end up going after this, but that doesn't seem too likely in the near future.
Quoted 6 lines
Quoted 3 lines
Might be an abomination, but would it work
to find the string "IORT" and change it to "iort", "RTIO" or "IOXN" to prevent Dom0 from finding it?Unfortunately no because there IORT is used to describing mapping for the GICv3 ITS which is currently working when ACPI is enabled in Xen.
The original advantage of Xen was paravirtualization. Might this be a case where it is better to have Domain 0 compensate and know the SMMU is unusable with current versions of Xen?
Quoted 7 lines
Quoted 7 lines
This ends up turning into a question of what are the cases and which are more common?
Case1: DT-only: Unchanged
Case2: Switchable between DT and ACPI, w/o SMMU: Starts working with ACPI
Quoted 7 lines
Quoted 4 lines
Case3: Switchable between DT and ACPI, w/SMMU: Unchanged, ACPI mode still doesn't work, but the failure is different.
Case4: Concurrent DT and ACPI support, w/o SMMU: Unchanged
So Xen would start using ACPI rather than DT.I think we should default DT it until we have the ACPI support completed.
Isn't this precisely what the proposed change does? Are you suggesting, if both DT and ACPI are present, prevent Dom0 from seeing ACPI? If you're suggesting doing futher masking, perhaps only if SMMU is present?
Quoted 8 lines
Quoted 6 lines
Case5: Concurrent DT and ACPI support, w/SMMU: Breaks if Dom0 tries to use ACPI
Case6: ACPI-only, w/o SMMU: Starts working out-of-box
Case7: ACPI-only, w/SMMU: Unchanged (still broken)
To clarify, this will boot but then start to break in very subtle way.
Which suggests a need to provide warnings the situation is known to be broken.
Quoted 5 lines
Quoted 5 lines
So case 5 is a problem, but cases 2 and 6 are positive. Does the classic workaround of "acpi=off" work for Linux as Dom0? If that is "yes", then publicizing that workaround (should be detectable by Xen) seems a likely short-term solution.
Quoted 7 lines
Quoted 4 lines
My impression is ACPI is getting increasing support in on ARM. The number of mentions suggests if they keep going it looks likely to win. The EDK2 project has been providing an image for RPI4 and the functionality is impressive.
AFAIK, the push is drove by Arm Server and Windows on Arm. Does EDK2 on RPI4 still provide both DT and ACPI?
Some time back I had tried enabling that, but it appeared rather broken. Might well be I was using a kernel which didn't match their DT and thus it was quite broken (which is the major advantage of ACPI).
Quoted 8 lines
Quoted 2 lines
Ultimately this is more a decision for Xen Project management, than the technical side. Are things in shape where they can be rolled out?
No. But as I wrote before, I don't believe the gap is very big.
Quoted 3 lines
Is
ACPI support important enough to need rolling out now?
Quoted 6 lines
Quoted 2 lines
I'm unsure about the former, but the latter seems a distinct "yes" since ACPI appears to be the future.
ACPI is indeed picking up the pace on Arm Server and platform where Windows on Arm is supported. But that should not only be the reason to remove UNSUPPORTED.
Well good news is I'm not proposing removing the unsupported marking. I'm proposing to enable ACPI by default. I think it is reasonable to add more warnings at runtime of the setup not being supported.
Quoted 7 lines
You are right that enabling ACPI by default will draw more users. But I also expect those users to be less familiar with Xen and therefore not very interested to fix bugs. So removing EXPERT/UNSUPPORTED is probably going to still make them unhappy as I don't think the help (including writing patch) for ACPI on Arm will change very much in the near future (from the community call I was under the impression you could not commit time for it).
The average level of technical competence may be lower, but the larger pool of people should yield enough to get additional problems fixed.
Quoted 2 lines
So I am not convinced this is really making Xen in a better position right now.
Right now the present situation is *actively* pushing people who want to use Xen on ACPI-only ARM boards away. If virtualization is important for them, they are likely to instead opt for KVM, VMWare, Hyper-V, or Bhyve. Suppressing mindshare will destroy the future of Xen on ARM.
Signature · 4 lines
(\___(\___(\______ --=> 8-) EHM <=-- ______/)___/)___/) \BS ( | [email protected] PGP 87145445 | ) / \_CS\ | _____ -O #include <stddisclaimer.h> O- _____ | / _/ 8A19\___\_|_/58D2 7E3D DDF4 7BA6 <-PGP-> 41D1 B375 37D0 8714\_|_/___/5445
Hi,
Quoted 24 lines · Elliott Mitchell
Quoted 23 lines · Julien Grall
Quoted 20 lines · Elliott Mitchell
Quoted 7 lines · Julien Grall
Quoted 5 lines · Jan Beulich
Quoted 4 lines · Elliott Mitchell
Unlike other unsupportted options, ACPI support is required to *boot* for a number of platforms. Users on these platforms are unable to use distribution builds and must rebuild from source to use Xen.
Quoted 7 lines
Quoted 4 lines
Quoted 1 line
Signed-off-by Elliott Mitchell <[email protected]>A general question first: How come this mail dates back to July 2020? I had almost missed it as "new".
I can't even find the Elliott's email in my inbox so reply here. But this sounds like a rehash of [1].
The date on Git patches is meant as an indicator for author date. Since this is a cherry-pick of a patch which was written >2 years ago
git format-patchindicates when it was written. This IS how these systems work.
Quoted 7 lines
Quoted 3 lines
Hmmm... I am a bit surprised to what you say. I have sent several patches in the past with an old author date and they always showed as the date sent in my inbox.
Dunno, but it was straight out of
git format-patch. I'm not usinggit send-emailthough (that requires a setup distinct from what I'm aiming for).
That's probably why.
Quoted 40 lines
Quoted 9 lines
Quoted 9 lines
Quoted 8 lines
Quoted 3 lines
Quoted 3 lines
Unlike other unsupportted options, ACPI support is required to *boot* for a number of platforms. Users on these platforms are unable to use distribution builds and must rebuild from source to use Xen.
What platforms are you testing on? I know that this is working-ish on RPI4 and QEMU. But this will likely blow up on one of the server we support in OSSTest because we don't have proper support to hide SMMUs in dom0.
Quoted 6 lines
Quoted 3 lines
I've been doing RPI4 w/EDK2. Which works for my purpose, the remaining trouble spot for my purpose is needing a final resolution of the EFIFB situation.
I have had no feedback from the relevant person on EFIFB patch and I am not planning to purse the work in the near future.
Okay, thanks for the news. Hopefully efifb on Xen support gets into kernels closer to the Linux HEAD.
Quoted 20 lines
Quoted 14 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
xen/arch/arm/Kconfig +0
-0@@ -29,13 +29,18 @@ menu "Architecture Features" source "arch/Kconfig"Quoted 8 lines
Quoted 3 lines
xen/arch/arm/Kconfig menu "Architecture Features" · line 32
Quoted 3 lines
xen/arch/arm/Kconfig +1
-1config ACPI - bool "ACPI (Advanced Configuration and Power Interface) Support (UNSUPPORTED)" if UNSUPPORTED + bool "ACPI (Advanced Configuration and Power Interface) Support (UNSUPPORTED)"The concerns I raised in [1] still stand. Most of the ACPI platform will also have support for IOMMUs. If we have support for IORT in Xen, then I would be a lot more amenable to remove the "UNSUPPORTED". And without that support we are going to do more harm and than good.
Quoted 2 lines
Okay, this has been a known issue for *years* and yet remains unresolved despite being a major issue.
Right, the situation hasn't changed much since you last sent your patch to drop EXPERT/UNSUPPORTED.
Quoted 6 lines
Quoted 2 lines
Unless you fancy working on ACPI, I don't really see the situation changing soon.
The situation is changing in large entities are pushing ACPI for ARM. If they succeed (likely) then it will be a case of Xen/ARM MUST support ACPI, or else the project will die.
This is quite a bold statement... I can see this ACPI to overtake in server world where ACPI is sort of the de-facto default firmware table. However, in embedded this is probably going to be more mixed because Device-Tree is a lot simpler to use (think of safety certified environment).
Quoted 10 lines
Quoted 6 lines
Quoted 3 lines
Might be an abomination, but would it work
to find the string "IORT" and change it to "iort", "RTIO" or "IOXN" to prevent Dom0 from finding it?Unfortunately no because there IORT is used to describing mapping for the GICv3 ITS which is currently working when ACPI is enabled in Xen.
The original advantage of Xen was paravirtualization. Might this be a case where it is better to have Domain 0 compensate and know the SMMU is unusable with current versions of Xen?
I believe it would make more difficult to add support for Stage-1 SMMU in dom0. So this would be a short-sighted decision.
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
This ends up turning into a question of what are the cases and which are more common?
Case1: DT-only: Unchanged
Case2: Switchable between DT and ACPI, w/o SMMU: Starts working with ACPI
Case3: Switchable between DT and ACPI, w/SMMU: Unchanged, ACPI mode still doesn't work, but the failure is different.
Quoted 7 lines
Quoted 4 lines
Quoted 1 line
Case4: Concurrent DT and ACPI support, w/o SMMU: Unchanged
So Xen would start using ACPI rather than DT.I think we should default DT it until we have the ACPI support completed.
Isn't this precisely what the proposed change does? Are you suggesting, if both DT and ACPI are present, prevent Dom0 from seeing ACPI?
In the current model Xen and dom0 have to be using the same kind of firmware table. IOW if Xen is using the Device-Tree then dom0 has to.
We never investigated whether it would be feasible for Dom0 to use ACPI but not Xen.
Quoted 2 lines
If
you're suggesting doing futher masking, perhaps only if SMMU is present?
Even if we remove the dependencies on UNSUPPORTED, ACPI will still be in a unsupported state by Xen Project (at least until the missing feature are present).
This means, if both Device-Tree and ACPI are present then we should boot using Device-Tree so the user is using a supported configuration. If they wish to use ACPI, then they will need to pass "acpi=on" on the Xen command line.
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Case5: Concurrent DT and ACPI support, w/SMMU: Breaks if Dom0 tries to use ACPI
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
Case6: ACPI-only, w/o SMMU: Starts working out-of-box
Case7: ACPI-only, w/SMMU: Unchanged (still broken)
To clarify, this will boot but then start to break in very subtle way.
Which suggests a need to provide warnings the situation is known to be broken.
Right. If that's the decision, then this would need to be part of this patch (or a new one patch).
Quoted 11 lines
Quoted 11 lines
Quoted 2 lines
Ultimately this is more a decision for Xen Project management, than the technical side. Are things in shape where they can be rolled out?
No. But as I wrote before, I don't believe the gap is very big.
Quoted 5 lines
Is
ACPI support important enough to need rolling out now?I'm unsure about the former, but the latter seems a distinct "yes" since ACPI appears to be the future.
Quoted 7 lines
Quoted 3 lines
ACPI is indeed picking up the pace on Arm Server and platform where Windows on Arm is supported. But that should not only be the reason to remove UNSUPPORTED.
Well good news is I'm not proposing removing the unsupported marking. I'm proposing to enable ACPI by default. I think it is reasonable to add more warnings at runtime of the setup not being supported.
From my experience warnings tend to be ignore/forgotten. So this could lead to poorer experience when issues are subbtle (think memory corruption).
Quoted 9 lines
Quoted 8 lines
You are right that enabling ACPI by default will draw more users. But I also expect those users to be less familiar with Xen and therefore not very interested to fix bugs. So removing EXPERT/UNSUPPORTED is probably going to still make them unhappy as I don't think the help (including writing patch) for ACPI on Arm will change very much in the near future (from the community call I was under the impression you could not commit time for it).
Quoted 7 lines
The average level of technical competence may be lower, but the larger pool of people should yield enough to get additional problems fixed. >
Quoted 2 lines
So I am not convinced this is really making Xen in a better position right now.
Right now the present situation is *actively* pushing people who want to use Xen on ACPI-only ARM boards away.
That's interesting because I haven't encountered that many ACPI-only platform outside of the server world.
But, honestly, I think you are blaming a bit too much EXPERT/UNSUPPORTED. Such issue would be really a problem with single contributor. For companies they usually care less and will pick whatever suit them (even it is behind a Kconfig).
Quoted 3 lines
If virtualization is important for
them, they are likely to instead opt for KVM, VMWare, Hyper-V, or Bhyve. Suppressing mindshare will destroy the future of Xen on ARM.
Another bold statement?
Anyway, I will wait for input from Bertand and Stefano.
Cheers,
Signature · 1 line
Julien Grall
+George
Quoted 4 lines · Julien Grall
Quoted 3 lines · Elliott Mitchell
The situation is changing in large entities are pushing ACPI for ARM. If they succeed (likely) then it will be a case of Xen/ARM MUST support ACPI, or else the project will die.
We need to be careful when making wide-reaching marketing statements because:
- it is always extremely hard to make accurate prediction of the future
- even seasoned experts often make major guessing mistakes
Bill Gates predicted that OS/2 would take over the world in '87. Many people on xen-devel might not even know what OS/2 is.
I am not aware of any plans by Xilinx (now AMD) to replace Device Tree with ACPI. In fact we are investing in Device Tree with System Device Tree and other related activites (Lopper, etc.)
I suggest to keep the discussion technical and practical. As a community, we don't enable experimental/unsupported features by default for obvious reasons. In this case, the feature (ACPI) might give a chance to Xen to boot on a given platform.
Do we want to make an exception for ACPI to be enabled by default even if experimental/unsupported? If so, we can look into the details of how to do that.
But first, we need a policy decision. Who should be the people making this decision? I'll let George as Community Manager decide if the decision stands with the ARM maintainers or with the committers.
Quoted 34 lines · Julien Grall
Hi,
Quoted 31 lines · Elliott Mitchell
Quoted 29 lines · Julien Grall
Quoted 19 lines · Elliott Mitchell
Quoted 9 lines · Julien Grall
Quoted 7 lines · Jan Beulich
Quoted 5 lines · Elliott Mitchell
xen/arch/arm/Kconfig +0
-0@@ -29,13 +29,18 @@ menu "Architecture Features" source "arch/Kconfig"Quoted 8 lines
Quoted 3 lines
xen/arch/arm/Kconfig menu "Architecture Features" · line 32
Quoted 3 lines
xen/arch/arm/Kconfig +1
-1config ACPI - bool "ACPI (Advanced Configuration and Power Interface) Support (UNSUPPORTED)" if UNSUPPORTED + bool "ACPI (Advanced Configuration and Power Interface) Support (UNSUPPORTED)"The concerns I raised in [1] still stand. Most of the ACPI platform will also have support for IOMMUs. If we have support for IORT in Xen, then I would be a lot more amenable to remove the "UNSUPPORTED". And without that support we are going to do more harm and than good.
Quoted 2 lines
Okay, this has been a known issue for *years* and yet remains unresolved despite being a major issue.
Right, the situation hasn't changed much since you last sent your patch to drop EXPERT/UNSUPPORTED.
Unless you fancy working on ACPI, I don't really see the situation changing soon.
Quoted 8 lines
Quoted 3 lines
The situation is changing in large entities are pushing ACPI for ARM. If they succeed (likely) then it will be a case of Xen/ARM MUST support ACPI, or else the project will die.
This is quite a bold statement... I can see this ACPI to overtake in server world where ACPI is sort of the de-facto default firmware table. However, in embedded this is probably going to be more mixed because Device-Tree is a lot simpler to use (think of safety certified environment).
Quite true. Many technologies though tend to slowly flow down from the high-end server market into lower-end desktop and then embedded markets (some do go the opposite direction). Notice the first computers filled rooms, yet now many doorknobs have computers. Hypervisors started on high-end servers, yet now most phones have 95% of the technology.
I don't expect to see ACPI inside cars in the next decade, but I suspect it may be common on cellphones and routers soon.
Quoted 7 lines
Quoted 7 lines
Quoted 6 lines
Quoted 3 lines
Might be an abomination, but would it work
to find the string "IORT" and change it to "iort", "RTIO" or "IOXN" to prevent Dom0 from finding it?Unfortunately no because there IORT is used to describing mapping for the GICv3 ITS which is currently working when ACPI is enabled in Xen.
Quoted 6 lines
Quoted 3 lines
The original advantage of Xen was paravirtualization. Might this be a case where it is better to have Domain 0 compensate and know the SMMU is unusable with current versions of Xen?
I believe it would make more difficult to add support for Stage-1 SMMU in dom0. So this would be a short-sighted decision.
Okay. Use a feature bit? Perhaps have something passing "iommu=off" to the Dom0 kernel?
Quoted 27 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
This ends up turning into a question of what are the cases and which are more common?
Case1: DT-only: Unchanged
Case2: Switchable between DT and ACPI, w/o SMMU: Starts working with ACPI
Case3: Switchable between DT and ACPI, w/SMMU: Unchanged, ACPI mode still doesn't work, but the failure is different.
Quoted 7 lines
Quoted 4 lines
Quoted 1 line
Case4: Concurrent DT and ACPI support, w/o SMMU: Unchanged
So Xen would start using ACPI rather than DT.I think we should default DT it until we have the ACPI support completed.
Isn't this precisely what the proposed change does? Are you suggesting, if both DT and ACPI are present, prevent Dom0 from seeing ACPI?
In the current model Xen and dom0 have to be using the same kind of firmware table. IOW if Xen is using the Device-Tree then dom0 has to.
We never investigated whether it would be feasible for Dom0 to use ACPI but not Xen.
Quoted 2 lines
If
you're suggesting doing futher masking, perhaps only if SMMU is present?
Quoted 8 lines
Even if we remove the dependencies on UNSUPPORTED, ACPI will still be in a unsupported state by Xen Project (at least until the missing feature are present).
This means, if both Device-Tree and ACPI are present then we should boot using Device-Tree so the user is using a supported configuration. If they wish to use ACPI, then they will need to pass "acpi=on" on the Xen command line.
This seems reasonable.
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 6 lines
Case5: Concurrent DT and ACPI support, w/SMMU: Breaks if Dom0 tries to use ACPI
Case6: ACPI-only, w/o SMMU: Starts working out-of-box
Case7: ACPI-only, w/SMMU: Unchanged (still broken)
Quoted 7 lines
Quoted 4 lines
Quoted 1 line
To clarify, this will boot but then start to break in very subtle way.
Which suggests a need to provide warnings the situation is known to be broken.
Right. If that's the decision, then this would need to be part of this patch (or a new one patch).
A warning message was part of a previous version. Yet that was rejected and the recent suggestion was to send the bare default enable ACPI by itself.
Quoted 15 lines
Quoted 15 lines
Quoted 14 lines
Quoted 2 lines
Ultimately this is more a decision for Xen Project management, than the technical side. Are things in shape where they can be rolled out?
No. But as I wrote before, I don't believe the gap is very big.
Quoted 5 lines
Is
ACPI support important enough to need rolling out now?I'm unsure about the former, but the latter seems a distinct "yes" since ACPI appears to be the future.
ACPI is indeed picking up the pace on Arm Server and platform where Windows on Arm is supported. But that should not only be the reason to remove UNSUPPORTED.
Quoted 5 lines
Quoted 3 lines
Well good news is I'm not proposing removing the unsupported marking. I'm proposing to enable ACPI by default. I think it is reasonable to add more warnings at runtime of the setup not being supported.
From my experience warnings tend to be ignore/forgotten. So this could
lead to poorer experience when issues are subbtle (think memory corruption).
True enough. :-(
Quoted 10 lines
Quoted 10 lines
Quoted 7 lines
You are right that enabling ACPI by default will draw more users. But I also expect those users to be less familiar with Xen and therefore not very interested to fix bugs. So removing EXPERT/UNSUPPORTED is probably going to still make them unhappy as I don't think the help (including writing patch) for ACPI on Arm will change very much in the near future (from the community call I was under the impression you could not commit time for it).
The average level of technical competence may be lower, but the larger pool of people should yield enough to get additional problems fixed. >
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines
So I am not convinced this is really making Xen in a better position right now.
Right now the present situation is *actively* pushing people who want to use Xen on ACPI-only ARM boards away.
That's interesting because I haven't encountered that many ACPI-only platform outside of the server world.
Perhaps most have been looking up information, finding Xen didn't support ACPI on ARM and quietly disappearing.
Quoted 4 lines
But, honestly, I think you are blaming a bit too much EXPERT/UNSUPPORTED. Such issue would be really a problem with single contributor. For companies they usually care less and will pick whatever suit them (even it is behind a
Kconfig).
Though individuals are valuable since they represent mindshare and mindshare has a distinct influence on the future.
Quoted 12 lines · Stefano Stabellini
+George
Quoted 4 lines · Julien Grall
Quoted 3 lines · Elliott Mitchell
The situation is changing in large entities are pushing ACPI for ARM. If they succeed (likely) then it will be a case of Xen/ARM MUST support ACPI, or else the project will die.
We need to be careful when making wide-reaching marketing statements because:
- it is always extremely hard to make accurate prediction of the future
- even seasoned experts often make major guessing mistakes
Quoted 6 lines
Bill Gates predicted that OS/2 would take over the world in '87. Many people on xen-devel might not even know what OS/2 is.
I am not aware of any plans by Xilinx (now AMD) to replace Device Tree with ACPI. In fact we are investing in Device Tree with System Device Tree and other related activites (Lopper, etc.)
True enough. Though see above about many bits of technology tending to slowly flow from the server room into smaller systems.
Quoted 4 lines
I suggest to keep the discussion technical and practical. As a community, we don't enable experimental/unsupported features by default for obvious reasons. In this case, the feature (ACPI) might give a chance to Xen to boot on a given platform.
As noted, nested-HVM support is present in default builds of 4.14/x86.
Quoted 3 lines
Do we want to make an exception for ACPI to be enabled by default even if experimental/unsupported? If so, we can look into the details of how to do that.
As noted, this allows Xen to boot on more devices (whereas without it Xen won't boot). So this is what places ACPI support into a different category.
Classic approach is a warning message with a delay. Marking as tainted has been suggested. I don't have any additional ideas.
Quoted 3 lines
But first, we need a policy decision. Who should be the people making this decision? I'll let George as Community Manager decide if the decision stands with the ARM maintainers or with the committers.
I think this has gotten into a none of the above category; this is more of a management/community question. Does enabling it provide a better experience by making things simpler for more people? Does enabling it provide a worse experience by something not supported escaping? Management has to make a guess as which is more likely beneficial to the Xen Project's future.
Signature · 4 lines
(\___(\___(\______ --=> 8-) EHM <=-- ______/)___/)___/) \BS ( | [email protected] PGP 87145445 | ) / \_CS\ | _____ -O #include <stddisclaimer.h> O- _____ | / _/ 8A19\___\_|_/58D2 7E3D DDF4 7BA6 <-PGP-> 41D1 B375 37D0 8714\_|_/___/5445