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

Re: [PATCH] tools/xl: Guard main_dt_overlay() with LIBXL_HAVE_DT_OVERLAY


  • To: Michal Orzel <michal.orzel@xxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Wed, 6 Sep 2023 10:42:57 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.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=m66DQlzf2OSwC8Hx2KkbPczMJLaxP7cV8n+9xN/rQRw=; b=T+XwVvAENSCK4bhXRNyRfs9Rp8mFBcgfD2ZHtet2o5/hZjhGcnvRMSjmqjBYblEsZx57EPbRpoETayfIow69MaKprDGlUyLq8vb8JYPnaFQUafC6I2RMrEgQF5ZPBxPYK/3pGygdokRQsshuXHEq/rDlCRVQRbmP3mh4ewQYq7mLSAB6INPf3rHxZalJuTTkDBHU5Dpcu78zie3FrNkWxh9nKfxYhPUbwFSguXq/wk1cZA1+IFwGxAf1Zg3h39gmj5wX/2jQk82IHn3QPWQFBj4B/7q8VNeXWF92gM+4w4qh/XfVF31Un11wxj3S2+3McJzy4kepPNf3PRMTitd31g==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=U3pnbfk89S2w6jrKwkt3lziEyqrUjwGu/vodG91o/RVjznbDSm70BquTy5cE+a/AwcgFFvzDPbqr8GlHZVvyEj/axkBmt1NMV+T6Lx8vAQgATa2umhFmCjfLRbP2rmNRJdfodErwnZCFjJnLnRrRSmpg/lBEChLiPjlo2+D96/4gkmje+7+tXpdn6ZyYymgSxjLn/MluzzHCcl5tGddtQeuEBZMk4M4JqfxgPbKZKXawwb50JcozAlDzcS+3Asz/BrV9xwSLqk8U0HBvKP+vnxZpBlCJ3HJ897XEdhAx2DYZbjqX5fsINnXASSsiQ53x9habfKyVPiod6PhkWtFfUQ==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Wei Liu <wl@xxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, stefano.stabellini@xxxxxxx, vikram.garhwal@xxxxxxx, xen-devel@xxxxxxxxxxxxxxxxxxxx
  • Delivery-date: Wed, 06 Sep 2023 08:43:40 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 06.09.2023 10:36, Michal Orzel wrote:
> main_dt_overlay() makes a call to libxl_dt_overlay() which is for now
> only compiled for Arm. This causes the build failure as reported by
> gitlab CI and OSSTEST. Fix it by guarding the function, prototype and
> entry in cmd_table[] using LIBXL_HAVE_DT_OVERLAY. This has an advantage
> over regular Arm guard so that the code will not need to be modified again
> if other architecture gain support for this feature.
> 
> Fixes: 61765a07e3d8 ("tools/xl: Add new xl command overlay for device tree 
> overlay support")
> Reported-by: Jan Beulich <jbeulich@xxxxxxxx>
> Signed-off-by: Michal Orzel <michal.orzel@xxxxxxx>
> ---
> There are still other parts of dt overlay support in toolstack that would
> want to be revisited in order to use guards suitable to be used by other
> arches.

Since from all I can tell this will do
Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx>

But I still wonder: We agreed to leave libxc alone for now, but was it
really intentional that you didn't adjust libxl.h right here, but instead
...

> --- a/tools/xl/xl.h
> +++ b/tools/xl/xl.h
> @@ -138,7 +138,9 @@ int main_shutdown(int argc, char **argv);
>  int main_reboot(int argc, char **argv);
>  int main_list(int argc, char **argv);
>  int main_vm_list(int argc, char **argv);
> +#ifdef LIBXL_HAVE_DT_OVERLAY
>  int main_dt_overlay(int argc, char **argv);
> +#endif
>  int main_create(int argc, char **argv);
>  int main_config_update(int argc, char **argv);
>  int main_button_press(int argc, char **argv);

... made this adjustment, which imo isn't strictly necessary.

Jan



 


Rackspace

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