[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 1/5] xen/arm: Rename assign_static_memory_11() for consistency
- To: Henry Wang <xin.wang2@xxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Michal Orzel <michal.orzel@xxxxxxx>
- Date: Fri, 8 Mar 2024 09:18:11 +0100
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0)
- 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=/o/qfVD/Fv0BwhkYHbhR/IRyVl9FYyao5rHFVXRWxes=; b=H9lardNGijMNj7PUOu1qgIzXMpQ2RaLO8YOSsxQCft4dlzwy6nrbOdKvprsJlAmgGyZTL3eTjUcPeHVtEfdzHkYVvjPTTJzATQAqT6iXeaPWkDbmXdmNGw8B+uHvRMSQErrfwBA2xIDX1LmGf3/fLSftBKHyCj5wk9b1aP41LxIbMEETwBAoO9h7n6b3XT/2yarjw+wgVXLGtf3nfEYT9A3HlR+P4IqI/2LZ6A8+v4ury4dhYVyy2sCu9hPdBR4rDGivQS02u61aBneBStDge9iKk/CzpDqvKIbre7TD1ZFKadaJwsJIoPHugp7teDHzdmD5StwsGXwO7djW1ZZx0g==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OWPc4cajZmRnA2RhpiRSvId2fIIcm+Vmpu77pK6gMs1naY0dfRe2Q6dh/JpQq/tr1rL5Ish+u5CRwVm+vs3Snit4adOfnesYM8lRZ+RSTq8C7uixg1UYZPfd6/0Mbf0Bas/wis+T0GLoIwWgJufIrSqrv+vTDAjREcUnrBlM4uuUxCAYcRPb7zAULpZUwHnTvYqoGBNRxTeGcfo6qzwlgmh0cT1dunhbyres3weYUZHN929B0HcmRIgQuq7ttihfXYWTztNEYJi7IuUlKQYkyerrxOZ7ETDC/1yD4slycyNXBJkk6dZXoVy/Dr7hCNhRw6K1wT+CRpCHu8VsFParPQ==
- Cc: Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, "Volodymyr Babchuk" <Volodymyr_Babchuk@xxxxxxxx>
- Delivery-date: Fri, 08 Mar 2024 08:18:26 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
Hi Henry,
On 08/03/2024 02:54, Henry Wang wrote:
> Currently on Arm there are 4 functions to allocate memory as domain
> RAM at boot time for different types of domains:
> (1) allocate_memory(): To allocate memory for Dom0less DomUs that
> do not use static memory.
> (2) allocate_static_memory(): To allocate memory for Dom0less DomUs
> that use static memory.
> (3) allocate_memory_11(): To allocate memory for Dom0.
> (4) assign_static_memory_11(): To allocate memory for Dom0less DomUs
> that use static memory and directmapped.
>
> To keep consistency between the names and the in-code comment on top
> of the functions, rename assign_static_memory_11() to
> allocate_static_memory_11(). No functional change intended.
There was a reason for this naming. The function is called assign_ and not
allocate_ because
there is no allocation done inside. The function maps specified host regions to
guest regions.
Refer:
https://lore.kernel.org/xen-devel/20220214031956.3726764-6-penny.zheng@xxxxxxx/
~Michal
|