xen/arm64: Use virtual address when setting up early_printk fixmap
PATCH v2 1/1 xen/arm64: Use virtual address when setting up early_printk fixmap
We have already had the boot pagetable when reaching the point of early_printk fixmap setup. Thus there is no longer necessary to calculate physical address of xen_fixmap.
--- xen/arch/arm/arm64/head.S | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
xen/arch/arm/arm64/head.S +1 -2
@@ -519,8 +519,7 @@ paging: cbnz x22, 1f /* Add UART to the fixmap table */ - ldr x1, =xen_fixmap - add x1, x1, x20 /* x1 := paddr (xen_fixmap) */ + ldr x1, =xen_fixmap /* x1 := vaddr (xen_fixmap) */ lsr x2, x23, #THIRD_SHIFT lsl x2, x2, #THIRD_SHIFT /* 4K aligned paddr of UART */ mov x3, #PT_DEV_L3
Signature · 1 line
2.1.4
Hi Chen,
Quoted 1 line · Chen Baozi
We have already had the boot pagetable when reaching the point
s/had/added/ ?
Quoted 1 line
of
early_printkfixmap setup. Thus there is no longer necessary
s/there is/it is/ ?
Quoted 3 lines
to calculate physical address of
xen_fixmap.Signed-off-by Chen Baozi <[email protected]>
Other than the possible typoes above:
Regards,
Signature · 1 line
Julien Grall
Ian Campbell
Acked-byQuoted 6 lines · Julien Grall
Hi Chen,
Quoted 1 line · Chen Baozi
We have already had the boot pagetable when reaching the point
s/had/added/ ?
I think "switched too" is what was meant and more correct.
Quoted 3 lines
Quoted 1 line
of
early_printkfixmap setup. Thus there is no longer necessarys/there is/it is/ ?
Yes.
Quoted 7 lines
Quoted 3 lines
to calculate physical address of
xen_fixmap.Signed-off-by Chen Baozi <[email protected]>Other than the possible typoes above:
Reviewed-by Julien Grall <[email protected]>
If it is confirmed that I got the correct meaning in the first one I can fix both on commit.
Ian.
Quoted 10 lines · Ian Campbell
Quoted 6 lines · Julien Grall
Hi Chen,
Quoted 1 line · Chen Baozi
We have already had the boot pagetable when reaching the point
s/had/added/ ?
I think "switched too" is what was meant and more correct.
So do I ;-)
Quoted 10 lines
Quoted 3 lines
Quoted 1 line
of
early_printkfixmap setup. Thus there is no longer necessarys/there is/it is/ ?
Yes.
Quoted 4 lines
Quoted 3 lines
to calculate physical address of
xen_fixmap.Signed-off-by Chen Baozi <[email protected]>
Quoted 8 lines
Quoted 3 lines
Other than the possible typoes above:
Reviewed-by Julien Grall <[email protected]>Acked-by Ian Campbell <[email protected]>If it is confirmed that I got the correct meaning in the first one I can fix both on commit.
Yes, please. Thanks.
Baozi
Hi Ian,
Quoted 5 lines · Chen Baozi
We have already had the boot pagetable when reaching the point of
early_printkfixmap setup. Thus there is no longer necessary to calculate physical address ofxen_fixmap.Signed-off-by Chen Baozi <[email protected]>
This patch has been fully ack and Chen agreed that you fix the typoes. Can you commit it?
Cheers,
Quoted 19 lines
--- xen/arch/arm/arm64/head.S | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)xen/arch/arm/arm64/head.S +1
-2@@ -519,8 +519,7 @@ paging: cbnz x22, 1f /* Add UART to the fixmap table */ - ldr x1, =xen_fixmap - add x1, x1, x20 /* x1 := paddr (xen_fixmap) */ + ldr x1, =xen_fixmap /* x1 := vaddr (xen_fixmap) */ lsr x2, x23, #THIRD_SHIFT lsl x2, x2, #THIRD_SHIFT /* 4K aligned paddr of UART */ mov x3, #PT_DEV_L3
Signature · 1 line
Julien Grall
Quoted 7 lines · Chen Baozi
Quoted 5 lines
Acked-by Ian Campbell <[email protected]>If it is confirmed that I got the correct meaning in the first one I can fix both on commit.
Yes, please. Thanks.
Done and pushed, thanks.