[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v6 02/11] xen/arm: add iounmap after initrd has been loaded in domain_build
- To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Wei Chen <wei.chen@xxxxxxx>
- Date: Fri, 4 Nov 2022 18:07:32 +0800
- Arc-authentication-results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 63.35.35.123) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dmarc=[1,1,header.from=arm.com])
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 40.67.248.234) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=none (message not signed); arc=none
- Arc-message-signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=wnPM1xFo4l+7IWvKEJmJLFxA1jz0PVO8B+lteuoaFGI=; b=U38r1RTUs+fkOCVGUhaqoUHto9ycd7HEdSfNbmKW8bsmKsV2rSlztX2WAnLC3e13GhjZ10llGsWbpXi7l4bBMEN2dDiutKn3dxixN9ejf+/iu5VXq55jr6HNAMg1kSoqp+r5FU0TaEtSAAP72Xc/mStg82HuGOIr+9esT2ai/96+Km9B4BjvI6m5wWlkOglMiZhvygaNgeYDmG7MR1aoRzKwVOnz/m2oyGgowshAYWcfmraRwpYMJIpxpGmQVBdXrMMYluZt4iSyb7IUsdt2xDBscLCkMI/f84xCoMT/1HFmj4HFOcyci+dx+iTi41Is24aWcdJkq3eXaPeA/nUUkA==
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=wnPM1xFo4l+7IWvKEJmJLFxA1jz0PVO8B+lteuoaFGI=; b=d5iDv055lkPfwavtOhaZWMYZd3+7/I6Lw8YEQlOPiyddWUPZd9KmW+JmFVZby1GiR4V3d2Bi/KdntVNqFc8xTXiYTJ1MAV4l+7IuhZPqA4osWMIvnPsPwDFTSXgi6j8RfTcWF2kPQBZwYYxh97buljxHK5bsH5W9BG6KCPgIfSjqFD0GiIXeTe8v1l1YGCZwK88gQcvDt9S21P94TJPmYq/irXtYVCfuMPb/zOajI7oVR+HMh3sZP62fObR2j+DfOC+qb34gI2hugb++80HnkCif7qvv006gceHTJD/8LpaUuDg5mBZwGHsxGJUB/47j30dA9N+PCfp/MR88/bCH4w==
- Arc-seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=ocRIxqAe0rTYDLZ7vGYC2mCseq2tMleYk83Sahdkv5Ixj44lpL0Px7bdgazygnt7tGP6eqImPVQNuK5NgxXqcxTmOnzHmBIiedwXME+pYzur9wM+ZS2noYbZORki1j5CXJXMZrWzpjDvuRHzDy4+19mqLTuSuhU0cc3H395sQb//xnfIYOh8mEteP75YaIldsBnAIdteiMhdIsiLQh2bgDTHEylwZjgViJdn/YFnJoG5MAx4q0b11oIOeyMMoN8pKDotQnoWPQBQcAzGHcBtqwH37kr4ZZI8ORCx85wrfTAC0kH6OzVxOs90ZVRRyDE9+mHFtoBH4E6zr9Q3gCCjTw==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NLGVoQKsIoS9nfq+l6xtfc591eudryOlvFdqbdrT0+m/henrC5SqEYonMfPVOIlP3dLT+xhzZU6t8bHo5hu3+QrBh32v/18bI5DI4tgA1mD2VKZ0FGO7RiTpzOnkKDQcdNesvWVFJyoJ0HwOO+eb+xmakTFw9ziIa5mf186TuZ2xTVK0XWEo73YC9w66cap3od91nd9/tmX7udvcvYpfIq3hXDnms7m635zE/84AOjqnQC6pLusvtjb7/SbyRcDvl4VlzwBcBDQ3cmZ3/m9BMywm3aOig37aDvmuAtF9oEHiV+54pf4SMUyVYJdmRbBXrTFZwFYI3jLhMFgKe0Qntg==
- Cc: <nd@xxxxxxx>, Wei Chen <wei.chen@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
- Delivery-date: Fri, 04 Nov 2022 10:08:30 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Nodisclaimer: true
domain_build use ioremap_wc to map a new non-cacheable virtual
address for initrd. After Xen copy initrd from this address to
guest, this new allocated virtual address has not been unmapped.
So in this patch, we add an iounmap to the end of domain_build,
after Xen loaded initrd to guest memory.
Signed-off-by: Wei Chen <wei.chen@xxxxxxx>
---
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 @@ static void __init initrd_load(struct kernel_info *kinfo)
initrd, len);
if ( res != 0 )
panic("Unable to copy the initrd in the hwdom memory\n");
+
+ iounmap(initrd);
}
/*
--
2.25.1
|