Re: [PATCH v2 03/24] KVM: arm64: Add flags to struct hyp_page
From: Vincent Donnefort <hidden>
Date: 2022-07-18 10:58:24
Also in:
kvm, kvmarm
On Mon, Jul 18, 2022 at 11:54:24AM +0100, Vincent Donnefort wrote:
On Thu, Jun 30, 2022 at 02:57:26PM +0100, Will Deacon wrote:quoted
From: Quentin Perret <redacted> Add a 'flags' field to struct hyp_page, and reduce the size of the order field to u8 to avoid growing the struct size. Signed-off-by: Quentin Perret <redacted> Signed-off-by: Will Deacon <will@kernel.org> --- arch/arm64/kvm/hyp/include/nvhe/gfp.h | 6 +++--- arch/arm64/kvm/hyp/include/nvhe/memory.h | 3 ++- arch/arm64/kvm/hyp/nvhe/page_alloc.c | 14 +++++++------- 3 files changed, 12 insertions(+), 11 deletions(-)diff --git a/arch/arm64/kvm/hyp/include/nvhe/gfp.h b/arch/arm64/kvm/hyp/include/nvhe/gfp.h index 0a048dc06a7d..9330b13075f8 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 0xffBUG_ON in hyp_page_ref_inc() might now need to test for 0xff/HYP_NO_ORDER instead of USHRT_MAX.
My bad, read to quickly, refcount/order...
[...]
_______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel