Skip to contentSkip to conversation

xen/arm: Remove unused BOOT_RELOC_VIRT_START

PATCH In review Julien Grall 3 participants 5 messages Feb 28, 2022 – Mar 1, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xen/arm: Remove unused BOOT_RELOC_VIRT_START

From: Julien Grall <[email protected]>

We stopped relocating Xen since commit f60658c6ae "xen/arm: Stop relocating Xen".

At the same time, update the memory layout description.

---
 xen/arch/arm/include/asm/config.h | 4 +---
 xen/arch/arm/mm.c                 | 1 -
 2 files changed, 1 insertion(+), 4 deletions(-)
xen/arch/arm/include/asm/config.h +1 -3
index 2aced0bc3b8b..b25c9d39bb32 100644
@@ -77,8 +77,7 @@
  *   2M -   4M   Xen text, data, bss
  *   4M -   6M   Fixmap: special-purpose 4K mapping slots
  *   6M -  10M   Early boot mapping of FDT
- *   10M - 12M   Early relocation address (used when relocating Xen)
- *               and later for livepatch vmap (if compiled in)
+ *   10M - 12M   Livepatch vmap (if compiled in)
  *
  * ARM32 layout:
  *   0  -  12M   <COMMON>
@@ -115,7 +114,6 @@
 #define BOOT_FDT_SLOT_SIZE     MB(4)
 #define BOOT_FDT_VIRT_END      (BOOT_FDT_VIRT_START + BOOT_FDT_SLOT_SIZE)
 
-#define BOOT_RELOC_VIRT_START  _AT(vaddr_t,0x00a00000)
 #ifdef CONFIG_LIVEPATCH
 #define LIVEPATCH_VMAP_START   _AT(vaddr_t,0x00a00000)
 #define LIVEPATCH_VMAP_END     (LIVEPATCH_VMAP_START + MB(2))
xen/arch/arm/mm.c +0 -1
index 515d0906f85b..8a17222109c6 100644
@@ -196,7 +196,6 @@ static void __init __maybe_unused build_assertions(void)
     /* 2MB aligned regions */
     BUILD_BUG_ON(XEN_VIRT_START & ~SECOND_MASK);
     BUILD_BUG_ON(FIXMAP_ADDR(0) & ~SECOND_MASK);
-    BUILD_BUG_ON(BOOT_RELOC_VIRT_START & ~SECOND_MASK);
     /* 1GB aligned regions */
 #ifdef CONFIG_ARM_32
     BUILD_BUG_ON(XENHEAP_VIRT_START & ~FIRST_MASK);
Signature · 1 line
2.32.0
Reviewed-by on v1 1/1
#1 lore raw

Hi Julien,

Quoted 9 lines · Julien Grall

From: Julien Grall <[email protected]>

We stopped relocating Xen since commit f60658c6ae "xen/arm: Stop relocating Xen".

At the same time, update the memory layout description.

Are these two entries needed? I'd say one is enough.

Quoted 1 line

---

Apart from that:

Cheers,
Michal

#2 lore raw
Quoted 1 line · Michal Orzel

Hi Julien,

Hi Michal,

Quoted 11 lines · Julien Grall
Quoted 9 lines

From: Julien Grall <[email protected]>

We stopped relocating Xen since commit f60658c6ae "xen/arm: Stop relocating Xen".

At the same time, update the memory layout description.

Are these two entries needed? I'd say one is enough.

From my understanding, it is necessary. The person is the same here but the companies are different.

So I should properly account that the work was originaly done while working for Arm (see [1]) and was updated while I was working for Amazon.

Even I didn't touch the patch, I still need to add a signed-off-by because of the DCO [2].

Quoted 4 lines
Quoted 1 line

---

Apart from that:

Cheers,

[1] https://xenbits.xen.org/gitweb/?p=people/julieng/xen-unstable.git;a=commit;h=dfa041f32ae2fef6132d40df7cbce93b6e385937
[2] https://developercertificate.org/

Signature · 1 line
Julien Grall
#3 lore raw

Hi Julien,

Quoted 13 lines · Julien Grall
Quoted 1 line · Michal Orzel

Hi Julien,

Hi Michal,

Quoted 8 lines · Julien Grall
Quoted 7 lines

From: Julien Grall <[email protected]>

We stopped relocating Xen since commit f60658c6ae "xen/arm: Stop relocating Xen".

At the same time, update the memory layout description.

Quoted 9 lines
Quoted 3 lines
Quoted 2 lines

Are these two entries needed? I'd say one is enough.

From my understanding, it is necessary. The person is the same here but the companies are different.

So I should properly account that the work was originaly done while working for Arm (see [1]) and was updated while I was working for Amazon.

Even I didn't touch the patch, I still need to add a signed-off-by because of the DCO [2].

Interesting. Thank you very much for the explanation.

Quoted 10 lines
Quoted 4 lines
Quoted 1 line

---

Apart from that:

Cheers,

[1] https://xenbits.xen.org/gitweb/?p=people/julieng/xen-unstable.git;a=commit;h=dfa041f32ae2fef6132d40df7cbce93b6e385937
[2] https://developercertificate.org/

Cheers,
Michal

Reviewed-by on v1 1/1
#4 lore raw
In reply to Julien Grall

Hi Julien,

Quoted 11 lines · Julien Grall

From: Julien Grall <[email protected]>

We stopped relocating Xen since commit f60658c6ae "xen/arm: Stop relocating Xen".

At the same time, update the memory layout description.

Cheers
Bertrand

Quoted 42 lines

---
xen/arch/arm/include/asm/config.h | 4 +---
xen/arch/arm/mm.c | 1 -

2 files changed, 1 insertion(+), 4 deletions(-)
xen/arch/arm/include/asm/config.h +1 -3
index 2aced0bc3b8b..b25c9d39bb32 100644
@@ -77,8 +77,7 @@
 *   2M -   4M   Xen text, data, bss
 *   4M -   6M   Fixmap: special-purpose 4K mapping slots
 *   6M -  10M   Early boot mapping of FDT
- *   10M - 12M   Early relocation address (used when relocating Xen)
- *               and later for livepatch vmap (if compiled in)
+ *   10M - 12M   Livepatch vmap (if compiled in)
 *
 * ARM32 layout:
 *   0  -  12M   <COMMON>
@@ -115,7 +114,6 @@
 #define BOOT_FDT_SLOT_SIZE     MB(4)
 #define BOOT_FDT_VIRT_END      (BOOT_FDT_VIRT_START + BOOT_FDT_SLOT_SIZE)
 
-#define BOOT_RELOC_VIRT_START  _AT(vaddr_t,0x00a00000)
 #ifdef CONFIG_LIVEPATCH
 #define LIVEPATCH_VMAP_START   _AT(vaddr_t,0x00a00000)
 #define LIVEPATCH_VMAP_END     (LIVEPATCH_VMAP_START + MB(2))
xen/arch/arm/mm.c +0 -1
index 515d0906f85b..8a17222109c6 100644
@@ -196,7 +196,6 @@ static void __init __maybe_unused build_assertions(void)
    /* 2MB aligned regions */
    BUILD_BUG_ON(XEN_VIRT_START & ~SECOND_MASK);
    BUILD_BUG_ON(FIXMAP_ADDR(0) & ~SECOND_MASK);
-    BUILD_BUG_ON(BOOT_RELOC_VIRT_START & ~SECOND_MASK);
    /* 1GB aligned regions */
 #ifdef CONFIG_ARM_32
    BUILD_BUG_ON(XENHEAP_VIRT_START & ~FIRST_MASK);
Signature · 1 line
2.32.0