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

Re: [PATCH 2/6] xen/bitops: Rename for_each_set_bit() to bitmap_for_each()


  • To: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Michal Orzel <michal.orzel@xxxxxxx>
  • Date: Mon, 1 Jul 2024 09:22:30 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=citrix.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=pYkdXjYaArJWI8mrkdJOkyZpmTVWqrido83lu/309xY=; b=bDmwjRcKJSvhUgeM84AlT25Hwx5iYMXjrZqKmpQ+yKpf228hTPb8YdEk9Vs5BTGK/RXVmlJXsAE2YALhRp0vyczZtouOhe6rGyxzddYhjFy6PaIFT0ArpStTE32SDX9QDn3Z38/tg/cHOf/jUiCkOYIw2RYEQmfIw4IDP5euv7w9d2rkCSP2aJf7OpJZKcvvZASeyx0/gvkm6vZMgCZZg5s8//UL2D0bEfdwGGv3QtlmIvso71DILLEIhInlGcXqe7uYr+MVGyK6d3LC7s+Hk2Bt8sVkkmuxx7zBB4tL5IfAGfUYBd+CNZ9Hr4Cyr83g/OqTUf0/KAjHplwLqSYUsw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BOnhsj/73+JSBq9LU3p5ENHyL0PjxKJPjbHoFCCmfOC0v34pF/mP7ijlQXDuA9P1seUdgP+xFLccxWbzxZE2HpLtY16tRVKyuN37rTdze7zK3avwI2EOJ1VqYMnbUwM8NvIcnC5AIvT+n6zKBR/Ai1FdQzVruxOFwnz+L79U95euWORJqn5UMh2BuU1W76hmhAJoYD05yJJWm5D/P/aVSjDkSMenRz6pajDxTySW1xU4VwyrLZChUyKn58z44wZpriAuYi6aFF+csThrfG91UXryaHDFXsZcsx9TlNKcrxRKbUOm8YdApWlycstgDAyPyHFVhtl2bsc9HJ5oxmqNBg==
  • Cc: Jan Beulich <JBeulich@xxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, "Julien Grall" <julien@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Oleksii Kurochko <oleksii.kurochko@xxxxxxxxx>
  • Delivery-date: Mon, 01 Jul 2024 07:22:47 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>


On 25/06/2024 21:07, Andrew Cooper wrote:
> 
> 
> The current implementation wants to take an in-memory bitmap.  However, all
> ARM callers and all-but-1 x86 callers spill a scalar to the stack in order to
> use the "generic arbitrary bitmap" helpers under the hood.
> 
> This functions, but it's far from ideal.
> 
> Rename the construct and move it into bitmap.h, because having an iterator for
> an arbitrary bitmap is a useful thing.
> 
> This will allow us to re-implement for_each_set_bit() to be more appropriate
> for scalar values.
> 
> No functional change.
> 
> Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
Acked-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®.