From: Volodymyr Babchuk <Volodymyr_Babchuk@epam.com>
To: Grygorii Strashko <grygorii_strashko@epam.com>
Cc: "xen-devel@lists.xenproject.org" <xen-devel@lists.xenproject.org>,
Stefano Stabellini <sstabellini@kernel.org>,
Julien Grall <julien@xen.org>,
Bertrand Marquis <bertrand.marquis@arm.com>,
Michal Orzel <michal.orzel@amd.com>
Subject: Re: [PATCH v2 4/4] xen/arm64: constify is_32/64bit_domain() macro for CONFIG_ARM64_AARCH32=n
Date: Wed, 27 Aug 2025 00:19:07 +0000 [thread overview]
Message-ID: <87h5xt39c5.fsf@epam.com> (raw)
In-Reply-To: <20250806094929.293658-5-grygorii_strashko@epam.com> (Grygorii Strashko's message of "Wed, 6 Aug 2025 09:49:43 +0000")
Hi,
Grygorii Strashko <grygorii_strashko@epam.com> writes:
> From: Grygorii Strashko <grygorii_strashko@epam.com>
>
> Constify is_32/64bit_domain() macro for the case CONFIG_ARM64_AARCH32=n and
> so allow compiler to opt out Aarch32 specific code.
>
> Before (CONFIG_ARM64_AARCH32=y):
> text data bss dec hex filename
> 859212 322404 270880 1452496 1629d0 xen-syms-before
>
> After (CONFIG_ARM64_AARCH32=n):
> text data bss dec hex filename
> 851256 322404 270880 1444540 160abc xen-syms-after
>
> Signed-off-by: Grygorii Strashko <grygorii_strashko@epam.com>
Reviewed-by: Volodymyr Babchuk <volodymyr_babchuk@epam.com>
> ---
> v2:
> - use IS_ENABLED(CONFIG_ARM64_AARCH32) instead of ifdefs
>
> xen/arch/arm/include/asm/arm64/domain.h | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/xen/arch/arm/include/asm/arm64/domain.h b/xen/arch/arm/include/asm/arm64/domain.h
> index bebcbc582f97..70dfbeac7443 100644
> --- a/xen/arch/arm/include/asm/arm64/domain.h
> +++ b/xen/arch/arm/include/asm/arm64/domain.h
> @@ -12,14 +12,16 @@ struct kernel_info;
> *
> * @d: pointer to the domain structure
> */
> -#define is_32bit_domain(d) ((d)->arch.type == DOMAIN_32BIT)
> +#define is_32bit_domain(d) \
> + (IS_ENABLED(CONFIG_ARM64_AARCH32) && (d)->arch.type == DOMAIN_32BIT)
>
> /*
> * Returns true if guest execution state is AArch64
> *
> * @d: pointer to the domain structure
> */
> -#define is_64bit_domain(d) ((d)->arch.type == DOMAIN_64BIT)
> +#define is_64bit_domain(d) \
> + (!IS_ENABLED(CONFIG_ARM64_AARCH32) || (d)->arch.type == DOMAIN_64BIT)
>
> /*
> * Arm64 declares AArch32 (32bit) Execution State support in the
--
WBR, Volodymyr
prev parent reply other threads:[~2025-08-27 0:19 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-06 9:49 [PATCH v2 0/4] xen/arm64: allow to make aarch32 support optional Grygorii Strashko
2025-08-06 9:49 ` [PATCH v2 2/4] xen/arm: split is_32bit/64bit_domain() between arm64/arm32 Grygorii Strashko
2025-08-27 0:23 ` Volodymyr Babchuk
2025-08-06 9:49 ` [PATCH v2 1/4] xen/arm: split set_domain_type() " Grygorii Strashko
2025-08-27 0:22 ` Volodymyr Babchuk
2025-09-04 20:09 ` Grygorii Strashko
2025-09-05 12:10 ` Volodymyr Babchuk
2025-08-06 9:49 ` [PATCH v2 3/4] xen/arm64: allow to make aarch32 support optional Grygorii Strashko
2025-08-27 0:16 ` Volodymyr Babchuk
2025-09-04 20:09 ` Grygorii Strashko
2025-09-05 12:15 ` Volodymyr Babchuk
2025-09-05 13:07 ` Julien Grall
2025-09-05 18:30 ` Grygorii Strashko
2025-09-05 3:43 ` Demi Marie Obenour
2025-09-05 9:35 ` Grygorii Strashko
2025-09-05 7:04 ` Julien Grall
2025-09-05 9:34 ` Grygorii Strashko
2025-08-06 9:49 ` [PATCH v2 4/4] xen/arm64: constify is_32/64bit_domain() macro for CONFIG_ARM64_AARCH32=n Grygorii Strashko
2025-08-27 0:19 ` Volodymyr Babchuk [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87h5xt39c5.fsf@epam.com \
--to=volodymyr_babchuk@epam.com \
--cc=bertrand.marquis@arm.com \
--cc=grygorii_strashko@epam.com \
--cc=julien@xen.org \
--cc=michal.orzel@amd.com \
--cc=sstabellini@kernel.org \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.