Skip to contentSkip to conversation

docs/arm: Document where Xen should be loaded in memory

PATCH In review Julien Grall 4 participants 6 messages Oct 24, 2023 – Oct 25, 2023

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 docs/arm: Document where Xen should be loaded in memory

From: Julien Grall <[email protected]>

In commit 9d267c049d92 ("xen/arm64: Rework the memory layout"), we decided to require Xen to be loaded below 2 TiB to simplify the logic to enable the MMU. The limit was decided based on how known platform boot plus some slack.

We had a recent report that this is not sufficient on the AVA platform with a old firmware [1]. But the restriction is not going to change in Xen 4.18. So document the limit clearly in docs/misc/arm/booting.txt.

[1] https://lore.kernel.org/[email protected]

---

Changes in v2:
- The limit is 2 TiB no 5
- Remove unnecessary sentence in the docs
- Add missing link
- Add Michal's reviewed-by

I couldn't find a nice way to document it in SUPPORT.md. So I decided to only document the restrict in docs/misc/arm/booting.txt for now.

I also couldn't find any way from GRUB/UEFI (I didn't look much) to specify the loading address.

---
 docs/misc/arm/booting.txt | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
docs/misc/arm/booting.txt +3 -1
index 02f7bb65ec6d..547f58a7d981 100644
@@ -21,7 +21,9 @@ The exceptions to this on 32-bit ARM are as follows:
  zImage protocol should still be used and not the stricter "raw
  (non-zImage)" protocol described in arm/Booting.
 
-There are no exception on 64-bit ARM.
+The exceptions to this on 64-bit ARM are as follows:
+
+ Xen binary should be loaded in memory below 2 TiB.
 
 Booting Guests
 --------------
Signature · 1 line
2.40.1
Reviewed-by on v2 1/1
#1 lore raw

Hi Julien,

Quoted 14 lines · Julien Grall

From: Julien Grall <[email protected]>

In commit 9d267c049d92 ("xen/arm64: Rework the memory layout"), we decided to require Xen to be loaded below 2 TiB to simplify the logic to enable the MMU. The limit was decided based on how known platform boot plus some slack.

We had a recent report that this is not sufficient on the AVA platform with a old firmware [1]. But the restriction is not going to change in Xen 4.18. So document the limit clearly in docs/misc/arm/booting.txt.

Quoted 4 lines

[1] https://lore.kernel.org/[email protected]

Cheers
Bertrand

Quoted 36 lines

---

Changes in v2:
- The limit is 2 TiB no 5
- Remove unnecessary sentence in the docs
- Add missing link
- Add Michal's reviewed-by

I couldn't find a nice way to document it in SUPPORT.md. So I decided to only document the restrict in docs/misc/arm/booting.txt for now.

I also couldn't find any way from GRUB/UEFI (I didn't look much) to specify the loading address.
---
docs/misc/arm/booting.txt | 4 +++-

1 file changed, 3 insertions(+), 1 deletion(-)
docs/misc/arm/booting.txt +3 -1
index 02f7bb65ec6d..547f58a7d981 100644
@@ -21,7 +21,9 @@ The exceptions to this on 32-bit ARM are as follows:
 zImage protocol should still be used and not the stricter "raw
 (non-zImage)" protocol described in arm/Booting.
 
-There are no exception on 64-bit ARM.
+The exceptions to this on 64-bit ARM are as follows:
+
+ Xen binary should be loaded in memory below 2 TiB.
 

Booting Guests
--------------

Signature · 1 line
2.40.1
#2 lore raw
Quoted 16 lines · Bertrand Marquis

Hi Julien,

Quoted 14 lines · Julien Grall

From: Julien Grall <[email protected]>

In commit 9d267c049d92 ("xen/arm64: Rework the memory layout"), we decided to require Xen to be loaded below 2 TiB to simplify the logic to enable the MMU. The limit was decided based on how known platform boot plus some slack.

We had a recent report that this is not sufficient on the AVA platform with a old firmware [1]. But the restriction is not going to change in Xen 4.18. So document the limit clearly in docs/misc/arm/booting.txt.

Quoted 6 lines
Quoted 4 lines

[1] https://lore.kernel.org/[email protected]

Added for for-4.19

#3 lore raw

Hi Stefano,

Quoted 17 lines · Stefano Stabellini
Quoted 16 lines · Bertrand Marquis

Hi Julien,

Quoted 14 lines · Julien Grall

From: Julien Grall <[email protected]>

In commit 9d267c049d92 ("xen/arm64: Rework the memory layout"), we decided to require Xen to be loaded below 2 TiB to simplify the logic to enable the MMU. The limit was decided based on how known platform boot plus some slack.

We had a recent report that this is not sufficient on the AVA platform with a old firmware [1]. But the restriction is not going to change in Xen 4.18. So document the limit clearly in docs/misc/arm/booting.txt.

Quoted 8 lines
Quoted 6 lines
Quoted 4 lines

[1] https://lore.kernel.org/[email protected]

Added for for-4.19

It was actually meant for 4.18 as we didn't want to include the patch to increase the reserved area for the identity mapping [1]. But I failed to use the proper tag.

Henry provided a release-ack and the patch is now committed.

Cheers,

[1] https://lore.kernel.org/[email protected]

Signature · 1 line
Julien Grall
#4 lore raw
Quoted 27 lines · Julien Grall

Hi Stefano,

Quoted 24 lines · Stefano Stabellini
Quoted 22 lines · Bertrand Marquis

Hi Julien,

Quoted 14 lines · Julien Grall

From: Julien Grall <[email protected]>

In commit 9d267c049d92 ("xen/arm64: Rework the memory layout"), we decided to require Xen to be loaded below 2 TiB to simplify the logic to enable the MMU. The limit was decided based on how known platform boot plus some slack.

We had a recent report that this is not sufficient on the AVA platform with a old firmware [1]. But the restriction is not going to change in Xen 4.18. So document the limit clearly in docs/misc/arm/booting.txt.

Quoted 4 lines

[1] https://lore.kernel.org/[email protected]

Quoted 7 lines
Quoted 1 line

Added for for-4.19

It was actually meant for 4.18 as we didn't want to include the patch to increase the reserved area for the identity mapping [1]. But I failed to use the proper tag.

Henry provided a release-ack and the patch is now committed.

Thanks for letting me know. I took the commit out of for-4.19 and rebased it.

#5 lore raw
In reply to Julien Grall

Hi Julien,

Quoted 14 lines · Julien Grall

From: Julien Grall <[email protected]>

In commit 9d267c049d92 ("xen/arm64: Rework the memory layout"), we decided to require Xen to be loaded below 2 TiB to simplify the logic to enable the MMU. The limit was decided based on how known platform boot plus some slack.

We had a recent report that this is not sufficient on the AVA platform with a old firmware [1]. But the restriction is not going to change in Xen 4.18. So document the limit clearly in docs/misc/arm/booting.txt.

Quoted 4 lines

[1] https://lore.kernel.org/[email protected]

Kind regards,
Henry