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

Re: [PATCH] tools: Move MASK_INSR to common-macros.h


  • To: Jan Beulich <jbeulich@xxxxxxxx>
  • From: Luca Fancellu <Luca.Fancellu@xxxxxxx>
  • Date: Fri, 9 Jun 2023 09:37:27 +0000
  • Accept-language: en-GB, en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none
  • 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=CuU3SgvnK7MDsOwCCGmAlrRRrtahHvYoYwml7YKnp9Q=; b=a64D9PBt+2a35od7fQla0gzkkTbHmmYFjWSlcpWuD3PbarUhFOiohgyi/V2kLmFMUpWpXN1mUHzRA9zIoPXSGP5Sx90lxLQhqnm+gUnAw0j8HyDptny2+5+RS+byHFejLHzXPo4eFFNeyvoA9poAnDo1R/S9am0txvfy5XyC00UdVgLn+83tc/vjGFxAJrof5RxyBGIBeB3G3707Ml664NMbwOXS3AfI1k0TlAN4L382TBil6uyQzTpOTG6uCVyu4eIHarmVCY5u44QrTIZ8eZnICYudoIitli+XjFdgxvzQr/EQidOc2hESooAYkYxIfS+WDD9Sp+GccSaHYLvgfw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=X07rhNoe6lHgrQ/THlSE2rlkiCeMy2y4q29k/Obud9Y6rwwkvDD/Rjjv57YzGF1qJFWLrfptzLxFLIAO+MpbBSdVlEQPkro+uPB/Ex8A9k4FYZDdRwob5DV4QpykKM9YleChanHXLt3ssr9xIiJV1U+KYk8irqcGDwTwEsf3LaMPgLwcHxmfnqbjcr4jp8B2VlY1JmIHzL2R9vKX7Tnz+usSDX0ykcNglOAQD7HkEj9ZiBCMkP4TUDdB65OsXrxSUBb72TOniqEcV/og3VDntlGxOLCYrdjSEBBJPh71XUkTmzcbezIGrZOi49NfdNOUmJzSnAkNBCbYvfPgmRarlA==
  • Authentication-results-original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, Juergen Gross <jgross@xxxxxxxx>, Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Fri, 09 Jun 2023 09:37:48 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Nodisclaimer: true
  • Original-authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • Thread-index: AQHZmjBTIpVZOkjuH06O82Z2wJSQ2a+CNhYAgAABfoA=
  • Thread-topic: [PATCH] tools: Move MASK_INSR to common-macros.h


> On 9 Jun 2023, at 10:31, Jan Beulich <jbeulich@xxxxxxxx> wrote:
> 
> On 08.06.2023 19:40, Andrew Cooper wrote:
>> MASK_EXTR() and MASK_INSR() are a matching pair.  Keep them together.
> 
> Right, that's one thing which should have been done right away.
> The other is that both macros should have been purged from
> tools/tests/x86_emulator/x86-emulate.h (which includes
> xen-tools/common-macros.h). Luca?

mmm right I’ve missed that, if Andrew can handle it in this patch I’m ok, if you
want me to send a patch I can do it

> 
> Jan
> 
>> Fixes: 56a7aaa16bfe ("tools: add physinfo arch_capabilities handling for 
>> Arm")
>> Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
>> ---
>> CC: Anthony PERARD <anthony.perard@xxxxxxxxxx>
>> CC: Juergen Gross <jgross@xxxxxxxx>
>> CC: Luca Fancellu <luca.fancellu@xxxxxxx>
>> ---
>> tools/include/xen-tools/common-macros.h | 1 +
>> tools/libs/light/libxl_internal.h       | 2 --
>> 2 files changed, 1 insertion(+), 2 deletions(-)
>> 
>> diff --git a/tools/include/xen-tools/common-macros.h 
>> b/tools/include/xen-tools/common-macros.h
>> index d53b88182560..168691be0e93 100644
>> --- a/tools/include/xen-tools/common-macros.h
>> +++ b/tools/include/xen-tools/common-macros.h
>> @@ -73,6 +73,7 @@
>> #endif
>> 
>> #define MASK_EXTR(v, m) (((v) & (m)) / ((m) & -(m)))
>> +#define MASK_INSR(v, m) (((v) * ((m) & -(m))) & (m))
>> 
>> #ifndef __must_check
>> #define __must_check __attribute__((__warn_unused_result__))
>> diff --git a/tools/libs/light/libxl_internal.h 
>> b/tools/libs/light/libxl_internal.h
>> index 8aba3e138909..61f4fe1dec55 100644
>> --- a/tools/libs/light/libxl_internal.h
>> +++ b/tools/libs/light/libxl_internal.h
>> @@ -132,8 +132,6 @@
>> 
>> #define DIV_ROUNDUP(n, d) (((n) + (d) - 1) / (d))
>> 
>> -#define MASK_INSR(v, m) (((v) * ((m) & -(m))) & (m))
>> -
>> #define LIBXL__LOGGING_ENABLED
>> 
>> #ifdef LIBXL__LOGGING_ENABLED
> 


 


Rackspace

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