Hi Michal
On 2023/12/6 19:35, Michal Orzel wrote:
Hi Penny,
On 06/12/2023 10:06, Penny Zheng wrote:
Putting overlap and overflow checking in the loop is causing repetitive
operation, so this commit extracts both checking outside the loop.
Signed-off-by: Penny Zheng
In general the patch
insert the shm node along with the copying.
And avoiding duplication, we add a checking before make_resv_memory_node().
Signed-off-by: Penny Zheng
---
v3 -> v4:
new commit
---
v4 -> v5:
rebase and no change
---
xen/arch/arm/domain_build.c | 27 ++---
xen/ar
Static shared memory region shall be described both under /memory and
/reserved-memory.
We introduce export_shm_memory_node() to create another /memory node to
contain the static shared memory ranges.
Signed-off-by: Penny Zheng
---
v3 -> v4:
new commit
---
v4 -> v5:
rebase and no c
em-1",
not "0x1".
Signed-off-by: Penny Zheng
---
docs/misc/arm/device-tree/booting.txt | 52 ---
1 file changed, 39 insertions(+), 13 deletions(-)
diff --git a/docs/misc/arm/device-tree/booting.txt
b/docs/misc/arm/device-tree/booting.txt
index bbd955e9c2..ac4bad6
references for foreign superpages.
Signed-off-by: Penny Zheng
---
v1 -> v2:
- new commit
---
v2 -> v3:
- rebase and no change
---
v3 -> v4:
rebase and no change
---
v4 -> v5:
rebase and no change
---
xen/arch/arm/mmu/p2m.c | 58 +++---
1 file
m_memnode" as function parameter to replace them all, to make codes more
clear and tidy.
Signed-off-by: Penny Zheng
---
v1 -> v2:
- combine commits 4 - 6 in Serie 1
- Adapt to changes of introducing "struct shm_memnode"
---
v2 -> v3
- fix infinite loop bug and bad indentation
rs.
This commit defines callback "retrieve_meminfo" for data structure
"struct meminfo".
Signed-off-by: Penny Zheng
---
v1 -> v2:
- define a set of MACRO helpers to access common fields in data structure of
"meminfo" type. "struct meminfo" is one of them, a
use "remove_shm_from_rangeset" to remove static shm.
For direct-map domain with iommu off, as static shm has already been taken
care of through reserved memory banks, we do nothing.
Signed-off-by: Penny Zheng
---
v1 -> v2:
- new commit
---
v2 -> v3:
- error out non-zero res before rem
Putting overlap and overflow checking in the loop is causing repetitive
operation, so this commit extracts both checking outside the loop.
Signed-off-by: Penny Zheng
---
v6:
new commit
---
xen/arch/arm/static-shmem.c | 39 +++--
1 file changed, 16 insertions
..).
Also, to make codes tidy and clear, we extract codes about parsing
"xen,shared-mem" property from function "process_shm" and move them into
a new helper "parse_shm_property".
Signed-off-by: Penny Zheng
---
v1 -> v2
- In order to get allocated banked host memo
DOC[2]
All above objects have been divided into two parts to complete. And this
patch serie is PART I.
[1] https://lore.kernel.org/all/20220908135513.1800511-1-penny.zh...@arm.com/
[2]
https://www.kernel.org/doc/Documentation/devicetree/bindings/reserved-memory/xen%2Cshared-memory.txt
Penny Zheng
describing shared memory regions in guest address space, is created in "kinfo"
when dealing with domain information.
Signed-off-by: Penny Zheng
---
v1 -> v2:
- As the original "struct shm_membank" was making reserving memory more
complex and actually memory infor
Function parameters {addr_cells,size_cells} are stale parameters in
assign_shared_memory, so we shall remove them.
Signed-off-by: Penny Zheng
Reviewed-by: Michal Orzel
---
v1 -> v2:
- new commit
---
v2 -> v3:
rebase and no change
---
v3 -> v4:
rebase and no change
---
v4 -> v5:
r
Thanks for the reminder!
I’ll send the updated version ASAP :)
Thanks,
Penny
> 在 2023年11月30日,18:09,Michal Orzel 写道:
>
> Hi Penny,
>
>> On 11/09/2023 12:04, Penny Zheng wrote:
>>
>>
>> Hi Michal
>>
>>> On 2023/9/11 17:01, Michal Orze
Hi, Ayan
On 2023/9/11 21:59, Ayan Kumar Halder wrote:
The VMSA specific registers (ie TCR, TTBR0, TTBR1, VTTBR, etc) are valid when
MMU is used, thus we can enclose them with CONFIG_MMU.
Signed-off-by: Ayan Kumar Halder
---
xen/arch/arm/traps.c | 17 +++--
1 file changed, 15 ins
Hi Michal
On 2023/9/11 17:01, Michal Orzel wrote:
Hi Penny,
On 11/09/2023 06:04, Penny Zheng wrote:
There are some unsolving issues on current 4.17 static shared memory
feature[1], including:
- In order to avoid keeping growing 'membank', having the shared memory
info in separate
Hi,
On 2023/9/11 12:04, Penny Zheng wrote:
We use paddr_assigned to indicate whether host address is provided, by
checking the length of "xen,shared-mem" property.
The shm matching criteria shall also be adapt to cover the new scenario, by
adding when host address is not provided
Hi Michal
On 2023/9/11 17:40, Michal Orzel wrote:
Hi Penny,
On 11/09/2023 06:04, Penny Zheng wrote:
In case there is a /reserved-memory node already present in the host dtb,
current Xen codes would create yet another /reserved-memory node specially
s/codes/code/
for the static shm in
Hi Michal
Sorry for the delayed response, caught up in internal release lately. :\
On 2023/8/22 16:57, Michal Orzel wrote:
Hi Penny,
On 22/08/2023 07:32, Penny Zheng wrote:
Hi, michal
On 2023/8/21 18:49, Michal Orzel wrote:
Hi Penny,
On 21/08/2023 06:00, Penny Zheng wrote:
There are
em-1",
not "0x1".
Signed-off-by: Penny Zheng
---
v1 -> v2:
- no new changes
---
v2 -> v3
- rebase and no change
---
v3 -> v4:
rebase and no change
---
docs/misc/arm/device-tree/booting.txt | 52 ---
1 file changed, 39 insertions(+), 13 deletions(-)
insert the shm node along with the copying.
And avoiding duplication, we add a checking before make_resv_memory_node().
Signed-off-by: Penny Zheng
---
v3 -> v4:
new commit
---
xen/arch/arm/domain_build.c | 31 ---
xen/arch/arm/include/asm/kernel.h | 2 ++
Static shared memory region shall be described both under /memory and
/reserved-memory.
We introduce export_shm_memory_node() to create another /memory node to
contain the static shared memory ranges.
Signed-off-by: Penny Zheng
---
v3 -> v4:
new commit
---
xen/arch/arm/domain_build.c |
use "remove_shm_from_rangeset" to remove static shm.
For direct-map domain with iommu off, as static shm has already been taken
care of through reserved memory banks, we do nothing.
Signed-off-by: Penny Zheng
---
v1 -> v2:
- new commit
---
v2 -> v3:
- error out non-zero res before rem
references for foreign superpages.
Signed-off-by: Penny Zheng
---
v1 -> v2:
- new commit
---
v2 -> v3:
- rebase and no change
---
v3 -> v4:
rebase and no change
---
xen/arch/arm/p2m.c | 58 ++
1 file changed, 43 insertions(+), 15 deletions(-)
d
m_memnode" as function parameter to replace them all, to make codes more
clear and tidy.
Signed-off-by: Penny Zheng
---
v1 -> v2:
- combine commits 4 - 6 in Serie 1
- Adapt to changes of introducing "struct shm_memnode"
---
v2 -> v3
- fix infinite loop bug and bad indentation
- reb
nd clear, we extract codes about parsing
"xen,shared-mem" property from function "process_shm" and move them into
a new helper "parse_shm_property".
Signed-off-by: Penny Zheng
---
v1 -> v2
- In order to get allocated banked host memory info during domain creation,
rs.
This commit defines callback "retrieve_meminfo" for data structure
"struct meminfo".
Signed-off-by: Penny Zheng
---
v1 -> v2:
- define a set of MACRO helpers to access common fields in data structure of
"meminfo" type. "struct meminfo" is one of them, a
DOC[2]
All above objects have been divided into two parts to complete. And this
patch serie is PART I.
[1] https://lore.kernel.org/all/20220908135513.1800511-1-penny.zh...@arm.com/
[2]
https://www.kernel.org/doc/Documentation/devicetree/bindings/reserved-memory/xen%2Cshared-memory.txt
Penny Zheng
Function parameters {addr_cells,size_cells} are stale parameters in
assign_shared_memory, so we shall remove them.
Signed-off-by: Penny Zheng
---
v1 -> v2:
- new commit
---
v2 -> v3:
rebase and no change
---
v3 -> v4:
rebase and no change
---
xen/arch/arm/domain_build.c | 2 --
1 fil
tructure that contains SHMID and a "struct membank membank"
describing shared memory regions in guest address space, is created in "kinfo"
when dealing with domain information.
Signed-off-by: Penny Zheng
---
v1 -> v2:
- As the original "struct shm_membank" was m
enable_boot_cpu_mm() for boot CPU and
enable_secondary_cpu_mm() for secondary CPUs in this patch.
Signed-off-by: Wei Chen
Signed-off-by: Penny Zheng
Signed-off-by: Henry Wang
Reviewed-by: Julien Grall
---
v6:
- Add Julien's Reviewed-by tag.
v5:
- Add missing "()" in title.
- U
Hi Julien
On 2023/8/23 02:01, Julien Grall wrote:
Hi Henry,
On 14/08/2023 05:25, Henry Wang wrote:
From: Penny Zheng
Current P2M implementation is designed for MMU system only.
We move the MMU-specific codes into mmu/p2m.c, and only keep generic
codes in p2m.c, like VMID allocator, etc. We
Hi, michal
On 2023/8/21 18:49, Michal Orzel wrote:
Hi Penny,
On 21/08/2023 06:00, Penny Zheng wrote:
There are some unsolving issues on current 4.17 static shared memory
feature[1], including:
- In order to avoid keeping growing 'membank', having the shared memory
info i
references for foreign superpages.
Signed-off-by: Penny Zheng
---
v1 -> v2:
- new commit
---
v2 -> v3:
- rebase and no change
---
xen/arch/arm/p2m.c | 58 ++
1 file changed, 43 insertions(+), 15 deletions(-)
diff --git a/xen/arch/arm/p2m.c b/xe
em-1",
not "0x1".
Signed-off-by: Penny Zheng
---
v1 -> v2:
- no new changes
---
v2 -> v3
- rebase and no change
---
docs/misc/arm/device-tree/booting.txt | 52 ---
1 file changed, 39 insertions(+), 13 deletions(-)
diff --git a/docs/misc/arm/device-tree/boot
use "remove_shm_from_rangeset" to remove static shm.
For direct-map domain with iommu off, as static shm has already been taken
care of through reserved memory banks, we do nothing.
Signed-off-by: Penny Zheng
---
v1 -> v2:
- new commit
---
v2 -> v3:
- error out non-zero res bef
m_memnode" as function parameter to replace them all, to make codes more
clear and tidy.
Signed-off-by: Penny Zheng
---
v1 -> v2:
- combine commits 4 - 6 in Serie 1
- Adapt to changes of introducing "struct shm_memnode"
---
v2 -> v3
- fix infinite loop bug and bad ind
nd clear, we extract codes about parsing
"xen,shared-mem" property from function "process_shm" and move them into
a new helper "parse_shm_property".
Signed-off-by: Penny Zheng
---
v1 -> v2
- In order to get allocated banked host memory info during domain creation,
rs.
This commit defines callback "retrieve_meminfo" for data structure
"struct meminfo".
Signed-off-by: Penny Zheng
---
v1 -> v2:
- define a set of MACRO helpers to access common fields in data structure of
"meminfo" type. "struct meminfo" is one of them, a
tructure that contains SHMID and a "struct membank membank"
describing shared memory regions in guest address space, is created in "kinfo"
when dealing with domain information.
Signed-off-by: Penny Zheng
---
v1 -> v2:
- As the original "struct shm_membank" was m
Function parameters {addr_cells,size_cells} are stale parameters in
assign_shared_memory, so we shall remove them.
Signed-off-by: Penny Zheng
---
v1 -> v2:
- new commit
---
v2 -> v3:
rebase and no change
---
xen/arch/arm/domain_build.c | 2 --
1 file changed, 2 deletions(-)
diff --git
1] https://lore.kernel.org/all/20220908135513.1800511-1-penny.zh...@arm.com/
[2]
https://www.kernel.org/doc/Documentation/devicetree/bindings/reserved-memory/xen%2Cshared-memory.txt
Penny Zheng (8):
xen/arm: remove stale addr_cells/size_cells in assign_shared_memory
xen/arm: re-define a set
Hi, Ayan
On 2023/7/5 23:35, Ayan Kumar Halder wrote:
Hi Penny,
On 26/06/2023 04:34, Penny Zheng wrote:
CAUTION: This message has originated from an External Source. Please
use proper judgment and caution when opening attachments, clicking
links, or responding to this email.
We inherit
Hi,
On 2023/7/5 21:52, Julien Grall wrote:
Hi,
On 05/07/2023 10:53, Penny Zheng wrote:
Since if not and when anyone wants to update map_pages_to_xen(),
destroy_xen_mappings() and modify_xen_mappings() in the future, it
is possible for them to leave changes in only one file.
The helpers are
Hi Ayan
On 2023/7/5 22:21, Ayan Kumar Halder wrote:
On 26/06/2023 04:34, Penny Zheng wrote:
CAUTION: This message has originated from an External Source. Please
use proper judgment and caution when opening attachments, clicking
links, or responding to this email.
VSTCR_EL2, Virtualization
Hi Ayan
On 2023/7/5 22:01, Ayan Kumar Halder wrote:
Hi Penny,
On 26/06/2023 04:34, Penny Zheng wrote:
CAUTION: This message has originated from an External Source. Please
use proper judgment and caution when opening attachments, clicking
links, or responding to this email.
A set of
Hi Ayan
On 2023/7/5 21:33, Ayan Kumar Halder wrote:
On 05/07/2023 11:16, Penny Zheng wrote:
Hi Ayan
Hi Penny,
On 2023/7/4 23:10, Ayan Kumar Halder wrote:
Hi Penny,
On 26/06/2023 04:34, Penny Zheng wrote:
CAUTION: This message has originated from an External Source. Please
use proper
Hi Julien
On 2023/7/3 17:20, Julien Grall wrote:
Hi,
On 03/07/2023 06:12, Penny Zheng wrote:
Hi,
On 2023/6/30 23:02, Julien Grall wrote:
Hi,
On 30/06/2023 15:42, Ayan Kumar Halder wrote:
Hi Julien,
On 30/06/2023 12:22, Julien Grall wrote:
On 30/06/2023 11:49, Ayan Kumar Halder wrote
Hi Julien
On 2023/7/5 18:35, Julien Grall wrote:
Hi Penny,
On 05/07/2023 10:03, Penny Zheng wrote:
On 2023/7/5 06:25, Julien Grall wrote:
Hi Penny,
Title: You want to clarify that this change is arm64 only. So:
xen/arm64: mmu: ...
On 26/06/2023 04:34, Penny Zheng wrote:
Original
Hi Julien
On 2023/7/5 18:31, Julien Grall wrote:
Hi Penny,
On 05/07/2023 09:19, Penny Zheng wrote:
On 2023/7/5 06:12, Julien Grall wrote:
On 26/06/2023 04:34, Penny Zheng wrote:
diff --git a/xen/arch/arm/Kconfig b/xen/arch/arm/Kconfig
index fb77392b82..22b28b8ba2 100644
--- a/xen/arch/arm
Hi Julien
On 2023/7/5 18:30, Julien Grall wrote:
Hi Penny,
On 05/07/2023 07:51, Penny Zheng wrote:
On 2023/7/5 05:54, Julien Grall wrote:
Hi Penny,
On 26/06/2023 04:34, Penny Zheng wrote:
From: Wei Chen
Xen defines some global configuration macros for Arm in config.h.
We still want to
Hi Julien
On 2023/7/5 03:25, Julien Grall wrote:
Hi Penny,
On 26/06/2023 04:34, Penny Zheng wrote:
From: Wei Chen
There is no VMSA support on MPU systems, so we can not map early
UART to FIXMAP_CONSOLE. In stead, we can use PA == VA for early
UART on MPU systems.
Signed-off-by: Wei Chen
Hi Julien
On 2023/7/5 18:43, Julien Grall wrote:
Hi Penny,
One more remark.
On 26/06/2023 04:33, Penny Zheng wrote:
From: Wei Chen
There are lots of MMU specific code in head.S. This code will not
be used in MPU systems. If we use #ifdef to gate them, the code
will become messy and hard to
Hi Julien
On 2023/7/5 03:21, Julien Grall wrote:
Hi,
On 26/06/2023 04:33, Penny Zheng wrote:
From: Wei Chen
On Armv8-A, Xen has a fixed virtual start address (link address
too) for all Armv8-A platforms. In an MMU based system, Xen can
map its loaded address to this virtual start address
On 2023/7/4 19:47, Julien Grall wrote:
On 04/07/2023 11:36, Ayan Kumar Halder wrote:
Hi Penny,
Hi Ayan,
On 26/06/2023 04:33, Penny Zheng wrote:
CAUTION: This message has originated from an External Source. Please
use proper judgment and caution when opening attachments, clicking
Hi Ayan
On 2023/7/5 01:49, Ayan Kumar Halder wrote:
Hi Penny,
Most of these are specific to ARM_64, thus we can add "#ifdef
CONFIG_ARM_64" as follows :-
Yes, you're right.
On 26/06/2023 04:34, Penny Zheng wrote:
CAUTION: This message has originated from an External Sour
Hi Ayan
On 2023/7/4 23:10, Ayan Kumar Halder wrote:
Hi Penny,
On 26/06/2023 04:34, Penny Zheng wrote:
CAUTION: This message has originated from an External Source. Please
use proper judgment and caution when opening attachments, clicking
links, or responding to this email.
In function
Hi,
On 2023/7/3 17:31, Julien Grall wrote:
Hi,
On 03/07/2023 07:10, Penny Zheng wrote:
On 2023/6/30 23:19, Ayan Kumar Halder wrote:
Hi Penny,
On 26/06/2023 04:34, Penny Zheng wrote:
CAUTION: This message has originated from an External Source. Please
use proper judgment and caution when
Hi Julien
On 2023/7/5 06:25, Julien Grall wrote:
Hi Penny,
Title: You want to clarify that this change is arm64 only. So:
xen/arm64: mmu: ...
On 26/06/2023 04:34, Penny Zheng wrote:
Original setup_fixmap is actually doing two seperate tasks, one is
enabling
the early UART when earlyprintk
Hi,
On 2023/7/5 06:12, Julien Grall wrote:
Hi,
On 26/06/2023 04:34, Penny Zheng wrote:
FIXMAP in MMU system is used to do special-purpose 4K mapping, like
mapping early UART, temporarily mapping source codes for copy and paste
(copy_from_paddr), etc.
As FIXMAP feature is highly dependent on
Hi Julien
On 2023/7/5 05:54, Julien Grall wrote:
Hi Penny,
On 26/06/2023 04:34, Penny Zheng wrote:
From: Wei Chen
Xen defines some global configuration macros for Arm in config.h.
We still want to use it for MMU systems, but there are some address
Did you mean MPU?
yes, typo
layout
Hi Julien
On 2023/7/5 05:46, Julien Grall wrote:
Hi Penny,
On 26/06/2023 04:33, Penny Zheng wrote:
From: Wei Chen
There are lots of MMU specific code in head.S. This code will not
be used in MPU systems. If we use #ifdef to gate them, the code
will become messy and hard to maintain. So we
Hi Julien
On 2023/7/5 05:35, Julien Grall wrote:
Hi Penny,
On 26/06/2023 04:33, Penny Zheng wrote:
From: Wei Chen
We want to reuse head.S for MPU systems, but there are some
code are implemented for MMU systems only. We will move such
code to another MMU specific file. But before that we
Hi Julien and Ayan
On 2023/7/4 20:04, Ayan Kumar Halder wrote:
On 04/07/2023 12:44, Julien Grall wrote:
Hi,
On 04/07/2023 12:14, Ayan Kumar Halder wrote:
On 26/06/2023 04:33, Penny Zheng wrote:
CAUTION: This message has originated from an External Source. Please
use proper judgment and
Hi Julien
On 2023/7/5 05:24, Julien Grall wrote:
Hi Penny,
On 26/06/2023 04:33, Penny Zheng wrote:
From: Wei Chen
At the moment, on MMU system, enable_mmu() will return to an
address in the 1:1 mapping, then each path is responsible to
switch to virtual runtime mapping. Then
Hi Ayan
On 2023/7/1 00:17, Ayan Kumar Halder wrote:
On 26/06/2023 04:34, Penny Zheng wrote:
CAUTION: This message has originated from an External Source. Please
use proper judgment and caution when opening attachments, clicking
links, or responding to this email.
This commit expands
Hi Ayan
On 2023/6/30 23:19, Ayan Kumar Halder wrote:
Hi Penny,
On 26/06/2023 04:34, Penny Zheng wrote:
CAUTION: This message has originated from an External Source. Please
use proper judgment and caution when opening attachments, clicking
links, or responding to this email.
Xen is using
Hi,
On 2023/6/30 23:02, Julien Grall wrote:
Hi,
On 30/06/2023 15:42, Ayan Kumar Halder wrote:
Hi Julien,
On 30/06/2023 12:22, Julien Grall wrote:
On 30/06/2023 11:49, Ayan Kumar Halder wrote:
On 30/06/2023 05:07, Penny Zheng wrote:
Hi,
Hi Penny,
On 2023/6/30 01:22, Ayan Kumar
Hi,
On 2023/6/30 01:22, Ayan Kumar Halder wrote:
On 26/06/2023 04:34, Penny Zheng wrote:
CAUTION: This message has originated from an External Source. Please
use proper judgment and caution when opening attachments, clicking
links, or responding to this email.
In MPU system, MPU memory
Hi,
On 2023/6/29 22:50, Ayan Kumar Halder wrote:
On 29/06/2023 15:29, Julien Grall wrote:
Hi,
On 29/06/2023 15:05, Ayan Kumar Halder wrote:
On 26/06/2023 04:34, Penny Zheng wrote:
CAUTION: This message has originated from an External Source. Please
use proper judgment and caution when
Hi,
On 2023/6/29 23:14, Julien Grall wrote:
Hi,
On 29/06/2023 15:44, Ayan Kumar Halder wrote:
On 29/06/2023 15:23, Andrew Cooper wrote:
On 29/06/2023 3:20 pm, Ayan Kumar Halder wrote:
On 26/06/2023 04:34, Penny Zheng wrote:
diff --git a/xen/arch/arm/include/asm/mm.h
b/xen/arch/arm/include
Hi Ayan
On 2023/6/28 18:08, Ayan Kumar Halder wrote:
(Forgot to cc)
On 28/06/2023 11:05, Ayan Kumar Halder wrote:
Hi Penny,
On 26/06/2023 04:34, Penny Zheng wrote:
CAUTION: This message has originated from an External Source. Please
use proper judgment and caution when opening attachments
Hi Julien
On 2023/6/28 15:59, Julien Grall wrote:
Hi,
On 28/06/2023 06:38, Penny Zheng wrote:
On 2023/6/26 14:00, Jan Beulich wrote:
On 26.06.2023 05:34, Penny Zheng wrote:
--- a/xen/common/vmap.c
+++ b/xen/common/vmap.c
@@ -331,4 +331,11 @@ void vfree(void *va)
while ( (pg
Hi Jan
On 2023/6/26 15:01, Jan Beulich wrote:
On 26.06.2023 05:34, Penny Zheng wrote:
--- a/xen/common/Kconfig
+++ b/xen/common/Kconfig
@@ -54,6 +54,9 @@ config HAS_IOPORTS
config HAS_KEXEC
bool
+config HAS_PAGING_MEMPOOL
+ bool
+
config HAS_PDX
bool
--- a/xen
Hi Jan
On 2023/6/26 14:00, Jan Beulich wrote:
On 26.06.2023 05:34, Penny Zheng wrote:
--- a/xen/arch/x86/Kconfig
+++ b/xen/arch/x86/Kconfig
@@ -27,6 +27,7 @@ config X86
select HAS_PDX
select HAS_SCHED_GRANULARITY
select HAS_UBSAN
+ select HAS_VMAP
With this
In MPU system, resource, like Xenheap, must be statically configured to
meet the requirement of static system with expected behavior.
Then, in MPU version of setup_mm, we introduce setup_staticheap_mappings to
map fixed MPU memory region for static Xenheap.
Signed-off-by: Penny Zheng
Signed-off
The layout shall be compliant with what we describe in xen.lds.S,
or the codes need adjustment.
Signed-off-by: Penny Zheng
Signed-off-by: Wei Chen
---
v3:
- cache maintanence for safety when modifying MPU memory mapping table
- Hardcode index for all data/text sections
- To make sure that
In MPU system, we implement map_domain_page()/unmap_domain_page()
through mapping the domain page with a transient MPU region on demand.
Signed-off-by: Penny Zheng
Signed-off-by: Wei Chen
---
v3:
- new patch
---
xen/arch/arm/Makefile | 4 ++
xen/arch/arm/include/asm/mpu/mm.h | 1
In order to enable device passthrough in MPU system, we only need to
provide p2m_mmio_direct_dev permission set up.
Signed-off-by: Penny Zheng
Signed-off-by: Wei Chen
---
v3:
- new commit
---
xen/arch/arm/mpu/p2m.c | 11 ++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a
MPU memory region, as
it will be relocated into heap and unmapped at the end of boot.
Signed-off-by: Penny Zheng
Signed-off-by: Wei Chen
---
v3:
- map the first 2MB. Check the size and then re-map with an extra 2MB if needed
---
xen/arch/arm/include/asm/arm64/mpu.h | 3 ++-
xen/arch/arm/include
releated codes, then
we fold it into MMU system.
Since PMAP relies on FIXMAP, so we fold it too into MMU system.
Under !CONFIG_HAS_FIXMAP, we provide empty stubbers for not breaking
compilation.
Signed-off-by: Penny Zheng
Signed-off-by: Wei Chen
---
v1 -> v2
- new patch
---
v3:
- f
components differently
in MPU, like xenheap, etc. There are some components that is specific to
MMU only, like direct-mapping.
In the commit, we move MMU-specific components into mmu/setup.c, in preparation
of implementing MPU version of setup_mm later in future commit.
Signed-off-by: Penny Zheng
Signed
/setup.c, setup_mm_mappings
, with a more generic name, is introduced to replace setup_pagetables.
Signed-off-by: Penny Zheng
Signed-off-by: Wei Chen
---
v3:
- introduce bitmap xen_mpumap_mask for dynamic allocation on MPU regions
---
xen/arch/arm/include/asm/arm64/mpu.h | 1 +
xen/arch/arm
try()
- insert the new entry into domain P2M table(p2m->root)
Signed-off-by: Penny Zheng
Signed-off-by: Wei Chen
---
v3:
- new commit
---
xen/arch/arm/include/asm/arm64/mpu.h | 3 +-
xen/arch/arm/include/asm/mpu/mm.h| 6 +
xen/arch/arm/include/asm/p2m.h | 3 +
xen/arch/arm/mp
Signed-off-by: Penny Zheng
Signed-off-by: Wei Chen
---
v3:
- new commit
---
xen/arch/arm/include/asm/arm64/sysregs.h | 3 ++
xen/arch/arm/include/asm/page.h | 4 ++
xen/arch/arm/mpu/mm.c| 6 ++-
xen/arch/arm/mpu/p2m.c | 61 +++
init data section. we introduce a new helper
xen_is_using_staticheap to tell whether Xenheap is statically configured in
Device Tree. It is always returning false when !CONFIG_STATIC_MEMORY,
since static heap depends on static memory feature.
Signed-off-by: Penny Zheng
Signed-off-by: Wei Chen
---
v3
on is accessible through PRBAR0_EL2 and PRLAR0_EL2
- Region 17 configuration is accessible through PRBAR1_EL2 and PRLAR1_EL2
- Region 18 configuration is accessible through PRBAR2_EL2 and PRLAR2_EL2
- ...
- Region 31 configuration is accessible through PRBAR15_EL2 and PRLAR15_EL2
Signed-off-by: Pen
Kconfig CONFIG_HAS_VMAP, and make it only
support in MMU system on ARM architecture. And we make features like
ALTERNATIVE, CPUERRATA, LIVEPATCH, Grant Table, etc, now depend on VMAP.
Signed-off-by: Penny Zheng
Signed-off-by: Wei Chen
---
v2:
- new commit
---
v3:
- make LIVEPATCH/ALTERNATIVE
ap on demand", to map static memory
temporarily before its initialization, and unmap immediately after its
initialization.
Signed-off-by: Penny Zheng
Signed-off-by: Wei Chen
---
v3:
- new commit
---
xen/arch/arm/include/asm/mm.h | 2 ++
xen/arch/arm/mmu/mm.c | 10 ++
xen/ar
From: Wei Chen
There is no VMSA support on MPU systems, so we can not map early
UART to FIXMAP_CONSOLE. In stead, we can use PA == VA for early
UART on MPU systems.
Signed-off-by: Wei Chen
Signed-off-by: Penny Zheng
---
v2:
1. New patch
---
v3:
1. fix comment
2. change CONFIG_ARM_V8R to
e PA space, we keep SA bit as 0.
VSTCR_EL2.SC is NS check enable bit.
To make sure that Stage 2 NS configuration is checked against stage 1
NS configuration in EL1&0 translation regime for the given address, and
generates a fault if they are different, we set SC bit 1.
Signed-off-by: Penny Zheng
later commit.
Signed-off-by: Penny Zheng
Signed-off-by: Wei Chen
---
v3:
- new commit
---
xen/arch/arm/kernel.c| 27 ---
xen/arch/arm/mmu/setup.c | 27 +++
2 files changed, 27 insertions(+), 27 deletions(-)
diff --git a/xen/arch/arm/kernel.c b
, we also just need to implement MPU version of ioremap_xxx.
Signed-off-by: Penny Zheng
Signed-off-by: Wei Chen
---
v3:
- new commit
---
xen/arch/arm/kernel.c | 12
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/xen/arch/arm/kernel.c b/xen/arch/arm/kernel.c
index
: Penny Zheng
Signed-off-by: Wei Chen
---
v3:
- Fix typos
- Move the implementation from mm/mpu.h to mm.h, to share as much as
possible with MMU system.
---
xen/arch/arm/include/asm/mm.h | 15 +++
1 file changed, 15 insertions(+)
diff --git a/xen/arch/arm/include/asm/mm.h b/xen/arch
A set of helpers dump_xxx and show_registers are responsible for
dumping memory mapping info and register info when debugging.
In this commit, we implement them all in MPU system too.
Signed-off-by: Penny Zheng
Signed-off-by: Wei Chen
---
v3:
- new commit
---
xen/arch/arm/include/asm/mpu/mm.h
contents are MPU specific.
Signed-off-by: Wei Chen
Signed-off-by: Penny Zheng
---
v3:
- new commit
---
xen/arch/arm/include/asm/config.h | 2 ++
xen/arch/arm/include/asm/mpu/layout.h | 32 +++
2 files changed, 34 insertions(+)
create mode 100644 xen/arch/arm/include/asm
: Penny Zheng
Signed-off-by: Wei Chen
---
v2:
- new commit
---
v3:
- remove MPU stubs
- adapt to the introduction of new directories: mmu/
---
xen/arch/arm/Makefile |1 +
xen/arch/arm/include/asm/mmu/p2m.h | 18 +
xen/arch/arm/include/asm/p2m.h | 30 +-
xen/arch/arm/mmu/p2m.c
disabled.
Since the default memory map of the Armv8-R AArch64
architecture is IMPLEMENTATION DEFINED, we always turn off
the Background region.
Signed-off-by: Penny Zheng
Signed-off-by: Wei Chen
---
v3:
- introduce code clearing SCTLR_EL2.BR
- document the reason of isb
---
xen/arch/arm/arm64
attribute Index
[3:4] Execute Never
[5:6] Access Permission
[7] Region Present
Also, we provide a set of definitions(REGION_HYPERVISOR_RW, etc) that combine
the memory attribute and permission for common combinations.
Signed-off-by: Penny Zheng
Signed-off-by: Wei Chen
---
v3:
- implement pr_set_base
address
mappings and associated memory properties held in memory-mapped tables
known as translation tables.
Signed-off-by: Penny Zheng
Signed-off-by: Wei Chen
---
v3:
- new patch
---
xen/arch/arm/Kconfig | 8
1 file changed, 8 insertions(+)
diff --git a/xen/arch/arm/Kconfig b/xen/arch/arm
1 - 100 of 718 matches
Mail list logo