_real_time flag in CI for most test cases, but disable it for
some time sensitive test cases? Normally, enable use_real_time
will give several times improvement of FVP performance.
Cheers,
Wei Chen
~Michal
g
+M: Oleksii Kurochko
R:Community Manager
S:Maintained
F:CHANGELOG.md
I'm proud of your work on the last two Xen releases.
Thanks for your works!
Cheers,
Wei Chen
ink introduce CONFIG_NEW_VGIC to generic Arm code might be not a
good idea (here and elsewhere in the patch below). We may need a
helper-like abstraction to hide these differences in vgic itself.
Cheers,
Wei Chen
res = domain_fdt_begin_node(fdt, "in
CONFIG_NEW_VGIC macro?
Cheers,
Wei Chen
#endif /* __ASM_ARM_VGIC_H__ */
/*
diff --git a/xen/arch/arm/vgic/vgic.h b/xen/arch/arm/vgic/vgic.h
index 534b24bcd3..c6bc3509a5 100644
--- a/xen/arch/arm/vgic/vgic.h
+++ b/xen/arch/arm/vgic/vgic.h
@@ -45,9 +45,6 @@ static inline bool
a commit (229ebd517b9d) that
> now define _end_boot in the linker script.
>
> The .text.idmap section can be added before the definition of _end_boot.
>
Oh, my branch was a little old, I have seen this new definition in xen.ld.S
after I update the branch. I understand now.
> >
&
Hi Julien,
> -Original Message-
> From: Xen-devel On Behalf Of
> Julien Grall
> Sent: 2023年1月18日 19:00
> To: Wei Chen ; Penny Zheng ; xen-
> de...@lists.xenproject.org
> Cc: Stefano Stabellini ; Bertrand Marquis
> ; Volodymyr Babchuk ;
> Jiamei Xie
> Sub
Hi Julien,
> -Original Message-
> From: Julien Grall
> Sent: 2023年1月18日 17:50
> To: Wei Chen ; Penny Zheng ; xen-
> de...@lists.xenproject.org
> Cc: Stefano Stabellini ; Bertrand Marquis
> ; Volodymyr Babchuk
> Subject: Re: [PATCH v2 05/40] xen/arm64: prepar
Hi Julien,
> -Original Message-
> From: Julien Grall
> Sent: 2023年1月18日 17:44
> To: Wei Chen ; Penny Zheng ; xen-
> de...@lists.xenproject.org
> Cc: Stefano Stabellini ; Bertrand Marquis
> ; Volodymyr Babchuk ;
> Jiamei Xie
> Subject: Re: [PATCH v2 04/40
Hi Julien,
> -Original Message-
> From: Julien Grall
> Sent: 2023年1月18日 7:37
> To: Penny Zheng ; xen-devel@lists.xenproject.org
> Cc: Wei Chen ; Stefano Stabellini
> ; Bertrand Marquis ;
> Volodymyr Babchuk
> Subject: Re: [PATCH v2 05/40] xen/arm64: prepare for m
Hi Julien,
> -Original Message-
> From: Julien Grall
> Sent: 2023年1月18日 7:24
> To: Penny Zheng ; xen-devel@lists.xenproject.org
> Cc: Wei Chen ; Stefano Stabellini
> ; Bertrand Marquis ;
> Volodymyr Babchuk ; Jiamei Xie
>
> Subject: Re: [PATCH v2 04/40] xen/a
Hi Julien,
> -Original Message-
> From: Julien Grall
> Sent: 2023年1月18日 7:17
> To: Penny Zheng ; xen-devel@lists.xenproject.org
> Cc: Wei Chen ; Stefano Stabellini
> ; Bertrand Marquis ;
> Volodymyr Babchuk
> Subject: Re: [PATCH v2 03/40] xen/arm: adjust Xen TLB
Hi Julien,
> -Original Message-
> From: Julien Grall
> Sent: 2023年1月18日 7:09
> To: Penny Zheng ; xen-devel@lists.xenproject.org
> Cc: Wei Chen ; Stefano Stabellini
> ; Bertrand Marquis ;
> Volodymyr Babchuk
> Subject: Re: [PATCH v2 02/40] xen/arm: make ARM_
Hi Julien,
> -Original Message-
> From: Julien Grall
> Sent: 2023年1月18日 7:46
> To: Penny Zheng ; xen-devel@lists.xenproject.org
> Cc: Wei Chen ; Stefano Stabellini
> ; Bertrand Marquis ;
> Volodymyr Babchuk
> Subject: Re: [PATCH v2 07/40] xen/arm64: add .tex
Hi Julien,
> -Original Message-
> From: Julien Grall
> Sent: 2023年1月18日 7:49
> To: Penny Zheng ; xen-devel@lists.xenproject.org
> Cc: Wei Chen ; Stefano Stabellini
> ; Bertrand Marquis ;
> Volodymyr Babchuk
> Subject: Re: [PATCH v2 08/40] x
Hi Jan,
> -Original Message-
> From: Jan Beulich
> Sent: 2023年1月16日 19:15
> To: Wei Chen
> Cc: nd ; Stefano Stabellini ; Julien
> Grall ; Bertrand Marquis ;
> Volodymyr Babchuk ; Andrew Cooper
> ; George Dunlap ; Wei
> Liu ; Roger Pau Monné ; xen-
> de...@
Hi Julien,
On 2023/1/12 17:47, Julien Grall wrote:
Hi,
On 12/01/2023 08:11, Jan Beulich wrote:
On 12.01.2023 07:31, Wei Chen wrote:
-Original Message-
From: Jan Beulich
Sent: 2023年1月11日 0:47
On 10.01.2023 09:49, Wei Chen wrote:
--- a/xen/arch/arm/include/asm/numa.h
+++ b/xen/arch
Hi Jan,
On 2023/1/12 16:08, Jan Beulich wrote:
On 12.01.2023 07:22, Wei Chen wrote:
-Original Message-
From: Jan Beulich
Sent: 2023年1月11日 0:38
On 10.01.2023 09:49, Wei Chen wrote:
--- a/xen/arch/arm/include/asm/numa.h
+++ b/xen/arch/arm/include/asm/numa.h
@@ -22,6 +22,12 @@ typedef
Hi Jan,
> -Original Message-
> From: Jan Beulich
> Sent: 2023年1月12日 16:11
> To: Wei Chen
> Cc: nd ; Stefano Stabellini ; Julien
> Grall ; Bertrand Marquis ;
> Volodymyr Babchuk ; Andrew Cooper
> ; George Dunlap ; Wei
> Liu ; Roger Pau Monné ; xen-
> de...@
Hi Jan,
> -Original Message-
> From: Jan Beulich
> Sent: 2023年1月11日 0:47
> To: Wei Chen
> Cc: nd ; Stefano Stabellini ; Julien
> Grall ; Bertrand Marquis ;
> Volodymyr Babchuk ; Andrew Cooper
> ; George Dunlap ; Wei
> Liu ; Roger Pau Monné ; xen-
> de...@
Hi Jan,
> -Original Message-
> From: Jan Beulich
> Sent: 2023年1月11日 0:38
> To: Wei Chen
> Cc: nd ; Stefano Stabellini ; Julien
> Grall ; Bertrand Marquis ;
> Volodymyr Babchuk ; Andrew Cooper
> ; George Dunlap ; Wei
> Liu ; Roger Pau Monné ; xen-
> de...@
Hi Jan,
> -Original Message-
> From: Jan Beulich
> Sent: 2023年1月10日 18:00
> To: Wei Chen
> Cc: nd ; Stefano Stabellini ; Julien
> Grall ; Bertrand Marquis ;
> Volodymyr Babchuk ; Andrew Cooper
> ; George Dunlap ; Wei
> Liu ; xen-devel@lists.xenproject.org
>
for
these two types of nodes.
However, some devices like PCIe may have "numa-node-id"
property too. We have to skip them as well.
Signed-off-by: Wei Chen
Reviewed-by: Stefano Stabellini
---
v1 -> v2:
1. Add Rb
---
xen/arch/arm/domain_build.c | 6 ++
1 file changed, 6 insertio
A NUMA aware device tree will provide a "distance-map" node to
describe distance between any two nodes. This patch introduce a
new helper to parse this distance map.
Signed-off-by: Wei Chen
---
v1 -> v2:
1. Get rid of useless braces.
2. Use new NUMA status helper.
3. Use PRIu32 to
node_online_map in smpboot still need for Arm when NUMA is turn
off by Kconfig.
Signed-off-by: Wei Chen
---
v1 -> v2:
1. No change.
---
xen/arch/arm/smpboot.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/xen/arch/arm/smpboot.c b/xen/arch/arm/smpboot.c
index 5ee6ab11e9..3ae359b
processor node, the device tree will be marked as NUMA
information invalid.
Signed-off-by: Wei Chen
---
v1 -> v2:
1. Move numa_disabled from fdt_numa_processor_affinity_init
to fdt_parse_numa_cpu_node.
2. Move invalid NUMA id check to fdt_parse_numa_cpu_node.
3. Return ENODATA for normal dtb wi
ption for ARM_NUMA
to select when HAS_DEVICE_TREE option is enabled.
Once when ACPI NUMA for Arm is supported, ACPI_NUMA
can be selected here too.
Signed-off-by: Wei Chen
---
v1 -> v2:
1. Remove the condition of selecting DEVICE_TREE_NUMA.
---
xen/arch/arm/Kconfig | 11 +++
1 file cha
Device tree based NUMA doesn't have the proximity domain like
ACPI. So we can return node id directly as arch nid.
Signed-off-by: Wei Chen
---
v1 -> v2:
1. Use numa_node_to_arch_nid instead of dummy node_to_pxm.
---
xen/arch/arm/include/asm/numa.h | 9 +
1 file changed, 9 in
From: Henry Wang
In the common sysctl command XEN_SYSCTL_physinfo, the cores_per_socket
is calculated based on the cpu_core_mask of CPU0. Currently on Arm
this is a fixed value 1 (can be checked via xl info), which is not
correct. This is because during the Arm cpu online process,
set_cpu_sibling
Current numa command in documentation is x86 only. Remove
x86 from numa command's arch limitation in this patch.
Signed-off-by: Wei Chen
---
v1 -> v2:
1. Update Arm NUMA status in SUPPORT.md to "Tech Preview".
---
SUPPORT.md| 1 +
docs/misc/xen-comma
In this patch, we can start to create NUMA system that is
based on device tree.
Signed-off-by: Wei Chen
---
v1->v2:
1. replace ~0 by INVALID_PADDR.
2. only print error messages for invalid dtb data.
3. remove unnecessary return.
4. remove the parameter of numa_init.
---
xen/arch/arm/include/
been changed to unsigned char.
Signed-off-by: Wei Chen
---
v1 -> v2:
1. Use unsigned int/char instead of uint32_t/u8.
2. Re-org the commit message.
---
xen/arch/arm/Makefile | 1 +
xen/arch/arm/include/asm/numa.h | 14 +
xen/arch/arm/numa.c |
scan whole device tree to find CPU NUMA id and
distance-map. In this case, we include memory NUMA id parse in this
function too. Another benefit is that we have a unique entry for device
tree NUMA data parse.
Signed-off-by: Wei Chen
---
v1->v2:
1. Fix typos in commit message.
2. Fix code style
in dt_smp_init_cpus, so we don't
need to setup cpu_to_node in numa_detect_cpu_node.
Signed-off-by: Wei Chen
---
v2 -> v3:
1. Use unsigned int instead of int for cpu id.
2. Use static inline for stub to do type check.
v1 -> v2:
1. Use numa_detect_cpu_node to online node.
2. Use macros
Memory blocks' NUMA ID information is stored in device tree's
memory nodes as "numa-node-id". We need a new helper to parse
and verify this ID from memory nodes.
Signed-off-by: Wei Chen
---
v1->v2:
1. Move numa_disabled check to fdt_parse_numa_memory_node.
2. Use numa_bad
CPU NUMA id
at the same time for cpu_to_node.
Signed-off-by: Wei Chen
---
v1 -> v2:
1. Use static inline to replace macros to perform
function paramerters type check.
2. Add numa_disabled to gate the numa-node-id check for
CONFIG_NUMA on but numa disabled user case.
3. Use macro instead
://lists.xenproject.org/archives/html/xen-devel/2021-09/msg02322.html
Signed-off-by: Wei Chen
---
v1 -> v2:
1. Add code comments to explain using NR_MEM_BANKS for Arm
2. Refine commit messages.
---
xen/arch/arm/include/asm/numa.h | 19 ++-
xen/include/xen/numa.h |
for
arch_numa_setup we have not provided boot arguments to setup
device_tree_numa. So we just return -EINVAL in this patch.
Signed-off-by: Wei Chen
---
v1 -> v2:
1. Use arch_numa_disabled to replace numa_enable_with_firmware.
2. Introduce enumerations for device tree numa status.
3. Use com
Implement the same helper "arch_get_ram_range" as x86 for NUMA
code to get memory bank from Arm bootinfo.
Signed-off-by: Wei Chen
---
v2 -> v3:
1. Use arch_get_ram_range instead of arch_get_memory_map.
v1 -> v2:
1. Use arch_get_memory_map to replace arch_get_memory_b
Henry Wang (1):
xen/arm: Set correct per-cpu cpu_core_mask
Wei Chen (16):
xen/arm: use NR_MEM_BANKS to override default NR_NODE_MEMBLKS
xen/arm: implement helpers to get and update NUMA status
xen/arm: implement node distance helpers for Arm
xen/arm: use arch_get_ram_range to memory ranges
s commit solved.
Because just looking at the changes, as your said in RFC, it doesn't
completely solve the problem.
Cheers,
Wei Chen
--- a/xen/arch/x86/x86_64/mm.c
+++ b/xen/arch/x86/x86_64/mm.c
@@ -498,7 +498,7 @@ error:
void __init paging_init(void)
{
unsigned long i, mpt_size
Hi Jan,
> -Original Message-
> From: Jan Beulich
> Sent: 2022年12月13日 17:47
> To: Wei Chen
> Cc: nd ; Andrew Cooper ; George
> Dunlap ; Julien Grall ; Stefano
> Stabellini ; Wei Liu ; Jiamei Xie
> ; xen-devel@lists.xenproject.org; Roger Pau Monné
>
> Subje
ate.
On 2022/11/10 2:24, Julien Grall wrote:
On 09/11/2022 04:55, Wei Chen wrote:
Hi Julien,
Hi Wei,
We had considered to use Kconfig to define the start addresses of v8R64
platforms (prompt users to input the address). But we also want to
provide
a default start address for eac
.
Because some architectures allow to use all 64 physical address
bits, but some architectures are not (like Arm64 allows 52, 48
bits). In this case, we use min(PADDR_BITS, BITS_PER_LONG - 1)
to calculate the shift when only one node is in the system in
this patch too.
Signed-off-by: Wei Chen
Reviewed-
visible
on NUMA enabled architectures. Architectures not supporting NUMA
still use 1 for MAX_NUMNODES.
As NODES_SHIFT is currently unused, we're taking this
opportunity to remove it.
Signed-off-by: Wei Chen
Acked-by: Jan Beulich
---
v8 -> v9:
1. No change.
v7 -> v8:
1. No change.
could support it in the future.
As asm/acpi.h has been removed from common/numa.c, we have to
move NR_NODE_MEMBLKS from asm/acpi.h to xen/numa.h in this patch
as well.
Signed-off-by: Wei Chen
---
v8 -> v9:
1. Remove incrrect description from commit log.
2. Add code comments for the places
massage seems more common.
As arch_get_ram_range use unsigned int for index, we also adjust
the index in nodes_cover_memory from int to unsigned int.
Signed-off-by: Wei Chen
Reviewed-by: Jan Beulich
---
v8 -> v9:
1. No change.
v7 -> v8:
1. No change.
v6 -> v7:
1. No change.
v5 -> v6:
NUMA implementations.
Signed-off-by: Wei Chen
Reviewed-by: Jan Beulich
---
v8 -> v9:
1. No change.
v7 -> v8:
1. No change.
v6 -> v7:
1. Add Rb.
v5 -> v6:
1. Revert arch_numa_broken to arch_numa_disabled, as acpi_numa
can be set to -1 by users. So acpi_numa < 0 does not mean
a broken f
ind any valid address from a
node with 0 bytes memory.
Signed-off-by: Wei Chen
Tested-by: Jiamei Xie
Acked-by: Jan Beulich
---
v8 -> v9:
1. No change.
v7 -> v8:
1. No change.
v6 -> v7:
1. No change.
v5 -> v6:
1. No change.
v4 -> v5:
1. No change.
v3 -> v4:
1. No change.
v2 -> v3
code to common.
16. Export node_to_pxm to keep pxm information in NUMA scan
nodes error messages.
17. Change the code style to target file's Xen code-style.
18. Adjust some __init and __initdata for some functions and
variables.
19. Replace CONFIG_ACPI_NUMA by CONFIG_NUMA. Replace "
egions(paddr_t addr)
> > acpi_table_parse(ACPI_SIG_SRAT, acpi_parse_srat))
> > return;
> >
> > + numa_fw_nid_name = "PXM";
>
> ... this as well. Otherwise someone may spot the redundancy and either
> propose to drop one, or it'll take them quite a bit of time to figure
> why both are there. I thought this would go without saying, so I'm
> sorry for not making this explicit earlier on.
...
/* Set "PXM" as earlier as we can for those functions will use it. */
> > + numa_fw_nid_name = "PXM";
Cheers,
Wei Chen
>
> Jan
Hi Julien,
On 2022/11/7 3:12, Julien Grall wrote:
Hi Wei,
On 04/11/2022 10:07, Wei Chen wrote:
Current EFI boot services support of Arm64 could not
work well for Armv8-R64 system that only has MPU in
EL2. That is because EFI boot services may need some
relocation support or partial PIE/PIC
" is
not an official Arm architecture name. The Arm official name is Armv8-R
AArch32/AArch64. And currently, MPU will only be selected by Arm64, so
current MPU code can only work in AArch64 state. When you're trying to
enable Armv8-R AArch32 like R52, you can remove this limit
Hi Jan,
> -Original Message-
> From: Jan Beulich
> Sent: 2022年11月14日 17:29
> To: Wei Chen
> Cc: nd ; Andrew Cooper ; Roger Pau
> Monné ; Wei Liu ; George Dunlap
> ; Julien Grall ; Stefano
> Stabellini ; xen-devel@lists.xenproject.org
> Subject: Re: [PATCH v8
Hi Jan,
> -Original Message-
> From: Jan Beulich
> Sent: 2022年11月14日 16:23
> To: Wei Chen
> Cc: nd ; Andrew Cooper ; Roger Pau
> Monné ; Wei Liu ; George Dunlap
> ; Julien Grall ; Stefano
> Stabellini ; xen-devel@lists.xenproject.org
> Subject: Re: [PATCH v8
Hi Jan,
> -Original Message-
> From: Jan Beulich
> Sent: 2022年11月14日 16:05
> To: Wei Chen
> Cc: nd ; Andrew Cooper ; Roger Pau
> Monné ; Wei Liu ; George Dunlap
> ; Julien Grall ; Stefano
> Stabellini ; xen-devel@lists.xenproject.org
> Subject: Re: [PATCH v8
massage seems more common.
As arch_get_ram_range use unsigned int for index, we also adjust
the index in nodes_cover_memory from int to unsigned int.
Signed-off-by: Wei Chen
Reviewed-by: Jan Beulich
---
v7 -> v8:
1. No change.
v6 -> v7:
1. No change.
v5 -> v6:
1. No change.
v4 -> v5:
n/numa.h in this patch
as well.
Signed-off-by: Wei Chen
---
v7 -> v8:
1. Add numa_fw_nid_name setting in srat_parse_regions after
acpi_table_parse succeeded.
v6 -> v7:
1. Add __init for arch_numa_unavailable.
2. Use __ro_after_init for mem_hotplug.
3. Use "???" instead o
visible
on NUMA enabled architectures. Architectures not supporting NUMA
still use 1 for MAX_NUMNODES.
As NODES_SHIFT is currently unused, we're taking this
opportunity to remove it.
Signed-off-by: Wei Chen
Acked-by: Jan Beulich
---
v7 -> v8:
1. No change.
v6 -> v7:
1. No change.
.
Because some architectures allow to use all 64 physical address
bits, but some architectures are not (like Arm64 allows 52, 48
bits). In this case, we use min(PADDR_BITS, BITS_PER_LONG - 1)
to calculate the shift when only one node is in the system in
this patch too.
Signed-off-by: Wei Chen
Reviewed-
ind any valid address from a
node with 0 bytes memory.
Signed-off-by: Wei Chen
Tested-by: Jiamei Xie
Acked-by: Jan Beulich
---
v7 -> v8:
1. No change.
v6 -> v7:
1. No change.
v5 -> v6:
1. No change.
v4 -> v5:
1. No change.
v3 -> v4:
1. No change.
v2 -> v3:
1. Remove unnecessary
NUMA implementations.
Signed-off-by: Wei Chen
Reviewed-by: Jan Beulich
---
v7 -> v8:
1. No change.
v6 -> v7:
1. Add Rb.
v5 -> v6:
1. Revert arch_numa_broken to arch_numa_disabled, as acpi_numa
can be set to -1 by users. So acpi_numa < 0 does not mean
a broken firmware.
v4 -> v5:
1.
or messages.
17. Change the code style to target file's Xen code-style.
18. Adjust some __init and __initdata for some functions and
variables.
19. Replace CONFIG_ACPI_NUMA by CONFIG_NUMA. Replace "SRAT" texts.
20. Turn numa_scan_nodes to static.
21. Change NR_NUMA_NODES upper boun
or messages.
17. Change the code style to target file's Xen code-style.
18. Adjust some __init and __initdata for some functions and
variables.
19. Replace CONFIG_ACPI_NUMA by CONFIG_NUMA. Replace "SRAT" texts.
20. Turn numa_scan_nodes to static.
21. Change NR_NUMA_NODES upper boun
Hi Julien,
> -Original Message-
> From: Julien Grall
> Sent: 2022年11月14日 5:43
> To: Wei Chen ; xen-devel@lists.xenproject.org
> Cc: nd ; Stefano Stabellini ; Bertrand
> Marquis ; Volodymyr Babchuk
> ; Henry Wang
> Subject: Re: [PATCH v6 08/11] xen/arm64: mo
Hi Stefano, Julien,
> -Original Message-
> From: Stefano Stabellini
> Sent: 2022年11月11日 6:26
> To: Wei Chen
> Cc: Julien Grall ; xen-devel@lists.xenproject.org; nd
> ; Stefano Stabellini ; Bertrand
> Marquis ; Volodymyr Babchuk
>
> Subject: RE: [PATCH v6 00
Hi Stefano, Julien,
> -Original Message-
> From: Xen-devel On Behalf Of
> Stefano Stabellini
> Sent: 2022年11月11日 6:13
> To: Julien Grall
> Cc: Wei Chen ; xen-devel@lists.xenproject.org; nd
> ; Stefano Stabellini ; Bertrand
> Marquis ; Volodymyr Babchuk
>
Hi Julien,
> -Original Message-
> From: Julien Grall
> Sent: 2022年11月10日 2:30
> To: Wei Chen ; xen-devel@lists.xenproject.org
> Cc: nd ; Stefano Stabellini ; Bertrand
> Marquis ; Volodymyr Babchuk
>
> Subject: Re: [PATCH v6 07/11] xen/arm: implement FIXMA
Hi Jan,
> -Original Message-
> From: Jan Beulich
> Sent: 2022年11月9日 17:30
> To: Wei Chen
> Cc: nd ; Andrew Cooper ; Roger Pau
> Monné ; Wei Liu ; George Dunlap
> ; Julien Grall ; Stefano
> Stabellini ; xen-devel@lists.xenproject.org
> Subject: Re: [PATCH
Hi Jan,
> -Original Message-
> From: Jan Beulich
> Sent: 2022年11月9日 0:55
> To: Wei Chen
> Cc: nd ; Andrew Cooper ; Roger Pau
> Monné ; Wei Liu ; George Dunlap
> ; Julien Grall ; Stefano
> Stabellini ; xen-devel@lists.xenproject.org
> Subject: Re: [PATCH
Hi Julien,
> -Original Message-
> From: Julien Grall
> Sent: 2022年11月7日 4:06
> To: Wei Chen ; xen-devel@lists.xenproject.org
> Cc: nd ; Stefano Stabellini ; Bertrand
> Marquis ; Volodymyr Babchuk
> ; Henry Wang
> Subject: Re: [PATCH v6 08/11] xen/arm64: move MMU
Hi Julien,
> -Original Message-
> From: Julien Grall
> Sent: 2022年11月7日 3:45
> To: Wei Chen ; xen-devel@lists.xenproject.org
> Cc: nd ; Stefano Stabellini ; Bertrand
> Marquis ; Volodymyr Babchuk
>
> Subject: Re: [PATCH v6 07/11] xen/arm: implement FIXMAP_ADDR f
Hi Julien,
> -Original Message-
> From: Julien Grall
> Sent: 2022年11月7日 3:20
> To: Wei Chen ; xen-devel@lists.xenproject.org
> Cc: nd ; Stefano Stabellini ; Bertrand
> Marquis ; Volodymyr Babchuk
> ; Jiamei Xie
> Subject: Re: [PATCH v6 05/11] xen/arm: define X
Hi Julien,
> -Original Message-
> From: Julien Grall
> Sent: 2022年11月7日 3:12
> To: Wei Chen ; xen-devel@lists.xenproject.org
> Cc: nd ; Stefano Stabellini ; Bertrand
> Marquis ; Volodymyr Babchuk
>
> Subject: Re: [PATCH v6 03/11] xen/arm: disable EFI boot se
> > So I would consider to use ioremap_cache(). That said, this would be a
> > separate patch.
> >
>
> Ok, we will try to use ioremap_cache and test it. If everything works
> well we will introduce a separate patch in next version.
>
Or is it better to send a separate pat
Hi Julien,
> -Original Message-
> From: Xen-devel On Behalf Of
> Julien Grall
> Sent: 2022年11月7日 2:55
> To: Wei Chen ; xen-devel@lists.xenproject.org
> Cc: nd ; Stefano Stabellini ; Bertrand
> Marquis ; Volodymyr Babchuk
> ; Henry Wang
> Subject: Re: [P
Hi Julien,
> -Original Message-
> From: Julien Grall
> Sent: 2022年11月7日 18:16
> To: Wei Chen ; xen-devel@lists.xenproject.org
> Cc: nd ; Stefano Stabellini ; Bertrand
> Marquis ; Volodymyr Babchuk
>
> Subject: Re: [PATCH v6 00/11] xen/arm: Add Armv8-R64 MPU s
Hi Jan,
> -Original Message-
> From: Jan Beulich
> Sent: 2022年11月3日 22:26
> To: Wei Chen
> Cc: nd ; Andrew Cooper ; Roger Pau
> Monné ; Wei Liu ; George Dunlap
> ; Julien Grall ; Stefano
> Stabellini ; xen-devel@lists.xenproject.org
> Subject: Re: [
eviewed efficiently. Can we send the patches by stages, even the stage#1
will have about 30 patches?
Cheers,
Wei Chen
> Cheers,
>
> --
> Julien Grall
Sorry for the wrong patch version. This is the first version of this series.
Cheers,
Wei Chen
> -Original Message-
> From: Wei Chen
> Sent: 2022年11月4日 18:08
> To: xen-devel@lists.xenproject.org
> Cc: nd ; Wei Chen ; Stefano Stabellini
> ; Julien Grall ; Bertrand Mar
ace create_page_tables for MMU and MPU.
Signed-off-by: Wei Chen
Signed-off-by: Penny Zheng
---
xen/arch/arm/arm64/Makefile | 2 +
xen/arch/arm/arm64/head.S| 13 ++--
xen/arch/arm/arm64/head_mmu.S| 4 +-
xen/arch/arm/arm64/head_mpu.S|
.S
Signed-off-by: Wei Chen
Signed-off-by: Penny Zheng
---
xen/arch/arm/arm64/head.S | 5 +++--
xen/arch/arm/arm64/head_mmu.S | 4 ++--
xen/arch/arm/arm64/head_mpu.S | 35 +++
3 files changed, 40 insertions(+), 4 deletions(-)
diff --git a/xen/arch/arm/arm64/he
ame as MMU system.
For remove_identity_mapping, we just need an empty function to
make head.S code flow happy.
Signed-off-by: Wei Chen
Signed-off-by: Penny Zheng
---
xen/arch/arm/arm64/head_mpu.S | 49 +++
.../arm/include/asm/platforms/fvp_baser.h | 4 ++
2 fil
and "puts" functions out of assembly
file, so we have to export them in this patch. And the assembly
macros: adr_l and load_paddr will be used by MMU and MPU later,
so we move them to macros.h.
Signed-off-by: Henry Wang
Signed-off-by: Wei Chen
---
xen/arch/arm/arm64/Makefile |
same definition names for MPU
systems, like XEN_VIRT_START and HYPERVISOR_VIRT_START,
but the definition contents are MPU specific.
Signed-off-by: Wei Chen
---
xen/arch/arm/include/asm/config.h | 97 +
xen/arch/arm/include/asm/config_mmu.h | 119
ectly.
As pmap depends on FIXAMP, so we disable pmap for Arm with MPU
enabled systems.
Signed-off-by: Wei Chen
---
xen/arch/arm/Kconfig | 2 +-
xen/arch/arm/include/asm/config_mpu.h | 2 ++
xen/arch/arm/include/asm/fixmap.h | 25 +
3 files changed, 28
ac
Signed-off-by: Wei Chen
---
xen/arch/arm/include/asm/arm64/flushtlb.h | 25 +++
xen/arch/arm/include/asm/flushtlb.h | 22
2 files changed, 47 insertions(+)
diff --git a/xen/arch/arm/include/asm/arm64/flushtlb.h
b/xen/arch/arm/include/asm/arm64
Arm64 platforms should not be listed in Armv8-R platform
list, so we add !ARM_V8R dependency for these platforms.
Signed-off-by: Wei Chen
Signed-off-by: Jiamei.Xie
---
xen/arch/arm/Kconfig | 11 +++
xen/arch/arm/include/asm/platforms/fvp_baser.h | 14
These two variables are stale variables, they only have declarations
in config.h, they don't have any definition and no any code is using
these two variables. So in this patch, we remove them from config.h.
Signed-off-by: Wei Chen
---
xen/arch/arm/include/asm/config.h | 2 --
1 file chang
this patch, we
disable EFI boot services support for Arm MPU systems.
Signed-off-by: Wei Chen
---
xen/arch/arm/Kconfig | 2 +-
xen/arch/arm/arm64/head.S | 8 ++--
2 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/xen/arch/arm/Kconfig b/xen/arch/arm/Kconfig
index 1fe5faf847
Penny Zheng (3):
xen/arm64: create boot-time MPU protection regions
xen/arm64: introduce helpers for MPU enable/disable
xen/arm64: add setup_fixmap and remove_identity_mapping for MPU
Wei Chen (8):
xen/arm: remove xen_phys_start and xenheap_phys_end from config.h
xen/arm: add iounmap af
.
Signed-off-by: Wei Chen
---
xen/arch/arm/domain_build.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/xen/arch/arm/domain_build.c b/xen/arch/arm/domain_build.c
index 4fb5c20b13..bd30d3798c 100644
--- a/xen/arch/arm/domain_build.c
+++ b/xen/arch/arm/domain_build.c
@@ -3418,6 +3418,8
visible
on NUMA enabled architectures. Architectures not supporting NUMA
still use 1 for MAX_NUMNODES.
As NODES_SHIFT is currently unused, we're taking this
opportunity to remove it.
Signed-off-by: Wei Chen
Acked-by: Jan Beulich
---
v6 -> v7:
1. No change.
v5 -> v6:
1. No change.
.
Because some architectures allow to use all 64 physical address
bits, but some architectures are not (like Arm64 allows 52, 48
bits). In this case, we use min(PADDR_BITS, BITS_PER_LONG - 1)
to calculate the shift when only one node is in the system in
this patch too.
Signed-off-by: Wei Chen
---
v6 -&g
n/numa.h in this patch
as well.
Signed-off-by: Wei Chen
---
v6 -> v7:
1. Add __init for arch_numa_unavailable.
2. Use __ro_after_init for mem_hotplug.
3. Use "???" instead of "NONAME" for unset numa_fw_nid_name.
4. Fix code-style.
v5 -> v6:
1. Fix code-style.
2. Use
NUMA implementations.
Signed-off-by: Wei Chen
Reviewed-by: Jan Beulich
---
v6 -> v7:
1. Add Rb.
v5 -> v6:
1. Revert arch_numa_broken to arch_numa_disabled, as acpi_numa
can be set to -1 by users. So acpi_numa < 0 does not mean
a broken firmware.
v4 -> v5:
1. Use arch_numa_
massage seems more common.
As arch_get_ram_range use unsigned int for index, we also adjust
the index in nodes_cover_memory from int to unsigned int.
Signed-off-by: Wei Chen
Reviewed-by: Jan Beulich
---
v6 -> v7:
1. No change.
v5 -> v6:
1. No change.
v4 -> v5:
1. Add Rb.
2. Adjust the code
ind any valid address from a
node with 0 bytes memory.
Signed-off-by: Wei Chen
Tested-by: Jiamei Xie
Acked-by: Jan Beulich
---
v6 -> v7:
1. No change.
v5 -> v6:
1. No change.
v4 -> v5:
1. No change.
v3 -> v4:
1. No change.
v2 -> v3:
1. Remove unnecessary change items in histo
Export node_to_pxm to keep pxm information in NUMA scan
nodes error messages.
17. Change the code style to target file's Xen code-style.
18. Adjust some __init and __initdata for some functions and
variables.
19. Replace CONFIG_ACPI_NUMA by CONFIG_NUMA. Replace "SRAT" texts.
20.
Hi Jan,
> -Original Message-
> From: Jan Beulich
> Sent: 2022年10月19日 14:46
> To: Wei Chen
> Cc: nd ; Andrew Cooper ; Roger Pau
> Monné ; Wei Liu ; George Dunlap
> ; Julien Grall ; Stefano
> Stabellini ; xen-devel@lists.xenproject.org
> Subject: Re: [
Hi Jan,
> -Original Message-
> From: Jan Beulich
> Sent: 2022年10月18日 22:08
> To: Wei Chen
> Cc: nd ; Andrew Cooper ; Roger Pau
> Monné ; Wei Liu ; George Dunlap
> ; Julien Grall ; Stefano
> Stabellini ; xen-devel@lists.xenproject.org
> Subject: Re: [PATCH
1 - 100 of 595 matches
Mail list logo