[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v5 2/9] xen/arm/static-shmem: Static-shmem should be direct-mapped for direct-mapped domains


  • To: Stefano Stabellini <stefano.stabellini@xxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
  • From: "Orzel, Michal" <michal.orzel@xxxxxxx>
  • Date: Thu, 6 Feb 2025 09:04:16 +0100
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=WSkQvAczRhjw8CF4SlqTnu6U5e+qrEE4SHAH7N80e4w=; b=eToJL2OUMXteB/yfPFReE7NtnxnZkFvtj4o6/mI9Q/CWHJ8lwPfXbcj25OM7IDwxxFwO/3UIwGVFr6+/utf3y3gLlFjgkjsczFlutLEf641axVk/S86wDQUGXX/WAHL+aL8x4/0vWKN+h0endpZRk7eVWe2PHvVL9k4t8w5PXa0kuRKAW/tmTFMOf6T2IRAJOyECaMez5t74DuLdYpjHXg5aWfWtD9UT8EYs6Ho8JG8DC2l2MkLlknlsLbG7AL2x6wv+O/xfuAGKA/iPUjIwPYgH9sDjZrrIL9YEXrb4cWDt+HQNuTrzpDyOJ+VhG8zkUlVZgpotiO1ryiHAhRnTcA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=y6sDqNBRcE7gU1D0Z9qiGWTfaFj7+BMAeYvRIePIkbvvnslsgvQEED0UV8WkuTZqQo3eVxltndSMpUSoVgFSbSG4aFW0C37EyeSQe/YOu6jxZtnklFfBNLD9+7s4x/iFpHGIZcLZ750wX5VPbfH0R+NukkHJoKko8dQezBXEHnl+HX9jW+hXpL5oOF/oHdepTfUODF+QQNFb4Jre/9XiNR0wQXeqHwQ3sedSuIKOPMl2yP/OnPDh77bS8NnBvXCtruNsqJVjI/czjNGGc9sfRX0piz6+jrcijqiSsPJuQYvmffYPL5Nylt2hFGiLbxolzhsf6DWhkbt3LVx+e4a/VQ==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com;
  • Cc: sstabellini@xxxxxxxxxx, bertrand.marquis@xxxxxxx, julien@xxxxxxx, Volodymyr_Babchuk@xxxxxxxx, Henry Wang <xin.wang2@xxxxxxx>
  • Delivery-date: Thu, 06 Feb 2025 08:04:31 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>


On 06/02/2025 02:08, Stefano Stabellini wrote:
> From: Henry Wang <xin.wang2@xxxxxxx>
> 
> Currently, users are allowed to map static shared memory in a
> non-direct-mapped way for direct-mapped domains. This can lead to
> clashing of guest memory spaces. Also, the current extended region
> finding logic only removes the host physical addresses of the
> static shared memory areas for direct-mapped domains, which may be
> inconsistent with the guest memory map if users map the static
> shared memory in a non-direct-mapped way. This will lead to incorrect
> extended region calculation results.
> 
> To make things easier, add restriction that static shared memory
> should also be direct-mapped for direct-mapped domains. Check the
> host physical address to be matched with guest physical address when
> parsing the device tree. Document this restriction in the doc.
> 
> Signed-off-by: Henry Wang <xin.wang2@xxxxxxx>
> Signed-off-by: Stefano Stabellini <stefano.stabellini@xxxxxxx>
> Acked-by: Michal Orzel <michal.orzel@xxxxxxx>
This patch has already been committed (see 0a0f30c1b55e) and later on fixed 
(see 988f1c7e1f40).

DO NOT COMMIT.

~Michal




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.