[PATCH v3 03/18] KVM: arm64: Make hyp_page::order a u8
Marc Zyngier
maz at kernel.org
Tue Dec 17 02:55:58 PST 2024
On Mon, 16 Dec 2024 17:57:48 +0000,
Quentin Perret <qperret at google.com> wrote:
>
> We don't need 16 bits to store the hyp page order, and we'll need some
> bits to store page ownership data soon, so let's reduce the order
> member.
>
> Signed-off-by: Quentin Perret <qperret at google.com>
> ---
> arch/arm64/kvm/hyp/include/nvhe/gfp.h | 6 +++---
> arch/arm64/kvm/hyp/include/nvhe/memory.h | 5 +++--
> arch/arm64/kvm/hyp/nvhe/page_alloc.c | 14 +++++++-------
> 3 files changed, 13 insertions(+), 12 deletions(-)
>
> diff --git a/arch/arm64/kvm/hyp/include/nvhe/gfp.h b/arch/arm64/kvm/hyp/include/nvhe/gfp.h
> index 97c527ef53c2..f1725bad6331 100644
> --- a/arch/arm64/kvm/hyp/include/nvhe/gfp.h
> +++ b/arch/arm64/kvm/hyp/include/nvhe/gfp.h
> @@ -7,7 +7,7 @@
> #include <nvhe/memory.h>
> #include <nvhe/spinlock.h>
>
> -#define HYP_NO_ORDER USHRT_MAX
> +#define HYP_NO_ORDER 0xff
nit: (u8)(~0)?
M.
--
Without deviation from the norm, progress is not possible.
More information about the linux-arm-kernel
mailing list