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

Re: [PATCH v3 06/12] xen/arm: Avoid code duplication in find_unallocated_memory


  • To: Luca Fancellu <luca.fancellu@xxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Michal Orzel <michal.orzel@xxxxxxx>
  • Date: Thu, 18 Apr 2024 10:33:39 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=arm.com 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=uWthPApBIm8sXStuRh5N72puBOUMJ3gy6Syd0ri4G3Q=; b=enU4P4ycmnk5nryfNukskfDgyXTtzkgHd6h1SyQkC47k9M7JfaFhsN8jWu8DM9fqTLi8HjncDdXheXLstbuuemK3GkuQy0q4jZJzaoCVt2r+3cuXOd7OY4SD5OJ3cZzJNvhwmXi7E0BeGg+srqJ9fwPUvdFddZhsqqJe6zeUunQnWcyrMBcaWm+rzymtoz4/Y06Qci6fosvDx5i9WLPCCII3GhJ1QLNrLiQidBH2xjLivNklZrva+WJBmCbCSBK2qA/dAFn8D4Aw9YnerCEBFN2XT/NjDixDspJCLoLNflrStAhqBi6zW7Ybqi3hi465QcfNPLDO6cZHfSo4bVA3hw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=e3cf/ZIL85VzW3ebUzFYRC3xXD9gzk6gpIu4AF9lx8oyCeXuKRZWNoYq5tjilDXUt1VZbw/xJ6apQdZt2l+E70yzMmT/FdIxVFypOLfTd2pR4X80C16n6FNLO9uN4vKqXEesMBoy0IFX65z2vYEa//yA1Hb44iE7GBTYYdXoO8+p6/BL6prM4Kk9EK6N4eubD+CEUVj+UFoxbW2/M21CMgrpfM0R9HKK+0lMDBYuCLbdIOtAmGKsstsiTfCNgOhYD0eBdu35CHroe4Pvn1vL3r6kFXQuocWuNaGnKOXTcABeIjxYA6XxIQ4E9IgNcngTzgGe3Awqa5WwVv8s6NK6ow==
  • Cc: Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, "Volodymyr Babchuk" <Volodymyr_Babchuk@xxxxxxxx>
  • Delivery-date: Thu, 18 Apr 2024 08:33:49 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

Hi Luca,

On 18/04/2024 09:36, Luca Fancellu wrote:
> 
> 
> The function find_unallocated_memory is using the same code to
> loop through 2 structure of the same type, in order to avoid
> code duplication, rework the code to have only one loop that
> goes through all the structures, this will be used to avoid
> duplication when the static shared memory banks will be introduced
> as a separate structure from reserved memory.
> 
> Take the occasion to add the error code to the error message in
> case 'rangeset_remove_range' fails.
> 
> Signed-off-by: Luca Fancellu <luca.fancellu@xxxxxxx>
Reviewed-by: Michal Orzel <michal.orzel@xxxxxxx>

~Michal




 


Rackspace

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