 
	
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH v1 06/13] xen/arm: set up shared memory foreign mapping for borrower domain
 Hi, On 08/04/2022 23:59, Julien Grall wrote: On 11/03/2022 06:11, Penny Zheng wrote:From: Penny Zheng <penny.zheng@xxxxxxx>This commits introduces a new helper guest_physmap_add_shm to set up sharedmemory foreign mapping for borrower domain. Firstly it should get and take reference of statically shared pages fromowner dom_shared. Then it will setup P2M foreign memory map of these staticallyshared pages for borrower domain. This commits only considers owner domain is the default dom_shared, the other scenario will be covered in the following patches. Signed-off-by: Penny Zheng <penny.zheng@xxxxxxx> --- xen/arch/arm/domain_build.c | 52 +++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/xen/arch/arm/domain_build.c b/xen/arch/arm/domain_build.c index 984e70e5fc..8cee5ffbd1 100644 --- a/xen/arch/arm/domain_build.c +++ b/xen/arch/arm/domain_build.c@@ -798,6 +798,48 @@ static int __init allocate_shared_memory(struct domain *d,return ret; }+static int __init guest_physmap_add_shm(struct domain *od, struct domain *bd, There is another issue here. guest_physmap_add_pages() may use superpage mapping. The P2M code is currently assuming the foreing mapping will be using L3 mapping (4KB). Do you need to use superpage mapping here? Cheers, -- Julien Grall 
 
 
 | 
|  | Lists.xenproject.org is hosted with RackSpace, monitoring our |