From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mm01.cs.columbia.edu (mm01.cs.columbia.edu [128.59.11.253]) by smtp.lore.kernel.org (Postfix) with ESMTP id 558B3C43334 for ; Mon, 18 Jul 2022 10:57:39 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id 08EC54D539; Mon, 18 Jul 2022 06:57:39 -0400 (EDT) X-Virus-Scanned: at lists.cs.columbia.edu Authentication-Results: mm01.cs.columbia.edu (amavisd-new); dkim=softfail (fail, message has been altered) header.i=@google.com Received: from mm01.cs.columbia.edu ([127.0.0.1]) by localhost (mm01.cs.columbia.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nx8yZp9jfJCo; Mon, 18 Jul 2022 06:57:37 -0400 (EDT) Received: from mm01.cs.columbia.edu (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id EF3274D522; Mon, 18 Jul 2022 06:57:37 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id 3EE834D51D for ; Mon, 18 Jul 2022 06:57:19 -0400 (EDT) X-Virus-Scanned: at lists.cs.columbia.edu Received: from mm01.cs.columbia.edu ([127.0.0.1]) by localhost (mm01.cs.columbia.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EWJfIL3j6B7g for ; Mon, 18 Jul 2022 06:57:18 -0400 (EDT) Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) by mm01.cs.columbia.edu (Postfix) with ESMTPS id 2B2F64D458 for ; Mon, 18 Jul 2022 06:57:18 -0400 (EDT) Received: by mail-wm1-f42.google.com with SMTP id be14-20020a05600c1e8e00b003a04a458c54so7084885wmb.3 for ; Mon, 18 Jul 2022 03:57:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=l+h2HYoyNpOTO71DMUTeHgfk/XO5dsFlakdohwm5DuU=; b=h1D8GxvDEHEp7hVSx8zz/boM9eIlbBFd3sUSsLcdyQ9XnBYcgPl95iHw4cQm6tt8Vf MPs79MZF3K4E9gZ2AGN0f+UFjTB4hU8z+Q7ziriYEakNbclvFu3z4eEy0jqDw04HshGP w/vdnBuuunuSFqMcPqkxy72xlOX2wztN3O3IceMuK6xtj2SB/TYr/QC+jY7q5xwe8Tg7 Nhw4VAiUs5FQ/NDJsMnZkENeDju2dbcTHm5gfR7TshrGArFdjEPrBu0PW+02jJtB+NFw o6R6XkYuX5o1/KZyLqJr2yHurhS7R2mx2IhDiNEuFGh01u32GySQJ9TEYwxQJBuB2K6N UQNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=l+h2HYoyNpOTO71DMUTeHgfk/XO5dsFlakdohwm5DuU=; b=jGQap0897Y0id67UbA9+eS0m+l9TMs4I4tALLTj+7Hm/uulVVh7F2mH6NsxXpW20Tp fZ2U47b/x01Laz68qjWOGuCEaY8arfSh8g9b+w/Uqy7hpcCSaMqqG87p69LT4o9B7w3N qmgvOMSyq4AKnSea05S6ZepVdPW0w6r1W9r9E2On0QH9efqku24qxlLNzWqR/15MeIrX ap4EjL08PAzm7cOIxWfV/J50wEqDpHeL6W4unQTnt1He8U0GiWa7J6D1sWIlX7m7ghAs JBpHqNLHQAiC4tSYEC4wI4vJaYt7bdjmpgILgbtUuDoAdIfaBZjur5tqYRlJqR+L7z0e fYXg== X-Gm-Message-State: AJIora9ilS99n2ZdVPEqkgN0zaYSua7im+HFdU51jUrBFpeL+/qEbK0h KNb4IEJ3z07v/K80IsvYvtEtnQ== X-Google-Smtp-Source: AGRyM1s/cGj8fdxsA/y4TWPk5jYYyUcQDg5YvtMbBXY2i8ZjsjS6G9zcb8wwxCBGfHjPIxLBqEo4zg== X-Received: by 2002:a05:600c:1908:b0:3a3:f85:702a with SMTP id j8-20020a05600c190800b003a30f85702amr13559591wmq.157.1658141837060; Mon, 18 Jul 2022 03:57:17 -0700 (PDT) Received: from google.com (109.36.187.35.bc.googleusercontent.com. [35.187.36.109]) by smtp.gmail.com with ESMTPSA id j9-20020a05600c190900b0039db31f6372sm21111747wmq.2.2022.07.18.03.57.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Jul 2022 03:57:16 -0700 (PDT) Date: Mon, 18 Jul 2022 11:57:13 +0100 From: Vincent Donnefort To: Will Deacon Subject: Re: [PATCH v2 03/24] KVM: arm64: Add flags to struct hyp_page Message-ID: References: <20220630135747.26983-1-will@kernel.org> <20220630135747.26983-4-will@kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-Mailman-Approved-At: Mon, 18 Jul 2022 06:57:36 -0400 Cc: Marc Zyngier , kernel-team@android.com, kvm@vger.kernel.org, Oliver Upton , Andy Lutomirski , linux-arm-kernel@lists.infradead.org, Michael Roth , Catalin Marinas , Chao Peng , kvmarm@lists.cs.columbia.edu X-BeenThere: kvmarm@lists.cs.columbia.edu X-Mailman-Version: 2.1.14 Precedence: list List-Id: Where KVM/ARM decisions are made List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: kvmarm-bounces@lists.cs.columbia.edu Sender: kvmarm-bounces@lists.cs.columbia.edu 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: > > From: Quentin Perret > > > > 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 > > Signed-off-by: Will Deacon > > --- > > 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 > > #include > > > > -#define HYP_NO_ORDER USHRT_MAX > > +#define HYP_NO_ORDER 0xff > > BUG_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... > > [...] _______________________________________________ kvmarm mailing list kvmarm@lists.cs.columbia.edu https://lists.cs.columbia.edu/mailman/listinfo/kvmarm From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 42AAEC433EF for ; Mon, 18 Jul 2022 10:58:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=d1BcmS3oGkSC7tKas9ctkmuWD/msceBDiW+mcHMkBQs=; b=wS1GlQIHJCI5xK yqChkWqnJVE/oJYpR7P5ZB1EJSB++riwCiBXDbXEJ1SMAjAtTRchjAcGJA2IYw6AJPkhaw+CdsVp8 EOGaL/SqqDw8YpnbnDtFRzCzxFwlsBR/j1Qlr5M9sGVsVsUQSigCFkxuYACjWGO3DX5aTW8YHe0kY jstqp8/Ug57W/Q9+OgLGG7RCvACjgz6nf9I/iBQKDeqR/BNnmWIsA8fc+dbOFhWyFSjxrbJZZFQAf roNXZp/TKLD7+Jk89NIXknHb3js2ACxQGhQyAPhHpieRoqTcv7CYgEVw/9hVtnrbx+c93GESyMEjQ uIWM5LYlB/8aaHhqf6HQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oDORF-00CdpW-VB; Mon, 18 Jul 2022 10:57:22 +0000 Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oDORC-00Cdnu-Qy for linux-arm-kernel@lists.infradead.org; Mon, 18 Jul 2022 10:57:20 +0000 Received: by mail-wm1-x335.google.com with SMTP id h14-20020a1ccc0e000000b0039eff745c53so7076917wmb.5 for ; Mon, 18 Jul 2022 03:57:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=l+h2HYoyNpOTO71DMUTeHgfk/XO5dsFlakdohwm5DuU=; b=h1D8GxvDEHEp7hVSx8zz/boM9eIlbBFd3sUSsLcdyQ9XnBYcgPl95iHw4cQm6tt8Vf MPs79MZF3K4E9gZ2AGN0f+UFjTB4hU8z+Q7ziriYEakNbclvFu3z4eEy0jqDw04HshGP w/vdnBuuunuSFqMcPqkxy72xlOX2wztN3O3IceMuK6xtj2SB/TYr/QC+jY7q5xwe8Tg7 Nhw4VAiUs5FQ/NDJsMnZkENeDju2dbcTHm5gfR7TshrGArFdjEPrBu0PW+02jJtB+NFw o6R6XkYuX5o1/KZyLqJr2yHurhS7R2mx2IhDiNEuFGh01u32GySQJ9TEYwxQJBuB2K6N UQNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=l+h2HYoyNpOTO71DMUTeHgfk/XO5dsFlakdohwm5DuU=; b=E/9yQmb9b7ZGv+K/1oonBmt2VkeMH+xRTvQsRA+as/8dZ7ZczAifW9s4NG/WDgWYpi YonNzorj95Ir5YYbaMc1iQythery8IEUpZIAhMWJK0sO84/QYE+7OD34OqhtxdA5CjJM jQwB5JpW8sn1TxaCGWPk+LmsxsSZhwqSc88ghFLmDpM4rWdvBAtRkHqQ9d2r86BwM/Ps CvcfOHmdoQQXF4T1yfj/m8MvciwYRVcnVUwzm2WXDF/edIeu982K1WC7ZQLvZLg1FC3Z SE3ovKAI5bOp5e5HAfOyRboWTOxPUybMUf8MPGKRE25il1q6etirrNagJHan/ndNqqiy DIZg== X-Gm-Message-State: AJIora9+ukCw3DynbVtIYXD9zmY4CaOmNttSnQekIEeqdS+ISrs7Yvfd GlRHFhhyO7wY5Wui1R9mrg9ZJw== X-Google-Smtp-Source: AGRyM1s/cGj8fdxsA/y4TWPk5jYYyUcQDg5YvtMbBXY2i8ZjsjS6G9zcb8wwxCBGfHjPIxLBqEo4zg== X-Received: by 2002:a05:600c:1908:b0:3a3:f85:702a with SMTP id j8-20020a05600c190800b003a30f85702amr13559591wmq.157.1658141837060; Mon, 18 Jul 2022 03:57:17 -0700 (PDT) Received: from google.com (109.36.187.35.bc.googleusercontent.com. [35.187.36.109]) by smtp.gmail.com with ESMTPSA id j9-20020a05600c190900b0039db31f6372sm21111747wmq.2.2022.07.18.03.57.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Jul 2022 03:57:16 -0700 (PDT) Date: Mon, 18 Jul 2022 11:57:13 +0100 From: Vincent Donnefort To: Will Deacon Cc: kvmarm@lists.cs.columbia.edu, Ard Biesheuvel , Sean Christopherson , Alexandru Elisei , Andy Lutomirski , Catalin Marinas , James Morse , Chao Peng , Quentin Perret , Suzuki K Poulose , Michael Roth , Mark Rutland , Fuad Tabba , Oliver Upton , Marc Zyngier , kernel-team@android.com, kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v2 03/24] KVM: arm64: Add flags to struct hyp_page Message-ID: References: <20220630135747.26983-1-will@kernel.org> <20220630135747.26983-4-will@kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220718_035718_897983_6BE25C42 X-CRM114-Status: GOOD ( 19.10 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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: > > From: Quentin Perret > > > > 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 > > Signed-off-by: Will Deacon > > --- > > 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 > > #include > > > > -#define HYP_NO_ORDER USHRT_MAX > > +#define HYP_NO_ORDER 0xff > > BUG_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 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id AE2F3C43334 for ; Mon, 18 Jul 2022 10:57:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234413AbiGRK5U (ORCPT ); Mon, 18 Jul 2022 06:57:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33906 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234353AbiGRK5T (ORCPT ); Mon, 18 Jul 2022 06:57:19 -0400 Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F3A91C920 for ; Mon, 18 Jul 2022 03:57:18 -0700 (PDT) Received: by mail-wm1-x329.google.com with SMTP id i188-20020a1c3bc5000000b003a2fa488efdso105582wma.4 for ; Mon, 18 Jul 2022 03:57:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=l+h2HYoyNpOTO71DMUTeHgfk/XO5dsFlakdohwm5DuU=; b=h1D8GxvDEHEp7hVSx8zz/boM9eIlbBFd3sUSsLcdyQ9XnBYcgPl95iHw4cQm6tt8Vf MPs79MZF3K4E9gZ2AGN0f+UFjTB4hU8z+Q7ziriYEakNbclvFu3z4eEy0jqDw04HshGP w/vdnBuuunuSFqMcPqkxy72xlOX2wztN3O3IceMuK6xtj2SB/TYr/QC+jY7q5xwe8Tg7 Nhw4VAiUs5FQ/NDJsMnZkENeDju2dbcTHm5gfR7TshrGArFdjEPrBu0PW+02jJtB+NFw o6R6XkYuX5o1/KZyLqJr2yHurhS7R2mx2IhDiNEuFGh01u32GySQJ9TEYwxQJBuB2K6N UQNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=l+h2HYoyNpOTO71DMUTeHgfk/XO5dsFlakdohwm5DuU=; b=BMBC+vNwBLPt/CvCgXOWeQ0ACYVWtjXddULs43KtiCFRuGbWe4aKYh30GiEbPf8R3z nS5pCOWx//DFa1vJM64w6+mT0YeI9nxJ11xsNAcDy2yC5BWkQPlxNGUVUMo7lNDV6ZuF FRGcPisER7Zs4X0CR5i2tBFqfmfbf/yakJuFaJY4AcqyF399vu+l2Hh0l5El1+L2g8S9 adIuntFV4yayGPLU+Un1oDkNpbGdMvB2oXJ99ao8ftMXsUdilvVa7QTwdqRk1CAnLxqL +QGKCc4EUxHEvXvlZdi675YWSHwiXf9BAu0plq51ULFBraPtTdHvxiu+mUdTng1Q+ENT rZsw== X-Gm-Message-State: AJIora+RrJYNAiYEnTypHvDVlUsRRg9OOcF1HkMVC9LpiOr8IFNwhXCE iLplcKGoPifhKD1yirHeXVD1OQ== X-Google-Smtp-Source: AGRyM1s/cGj8fdxsA/y4TWPk5jYYyUcQDg5YvtMbBXY2i8ZjsjS6G9zcb8wwxCBGfHjPIxLBqEo4zg== X-Received: by 2002:a05:600c:1908:b0:3a3:f85:702a with SMTP id j8-20020a05600c190800b003a30f85702amr13559591wmq.157.1658141837060; Mon, 18 Jul 2022 03:57:17 -0700 (PDT) Received: from google.com (109.36.187.35.bc.googleusercontent.com. [35.187.36.109]) by smtp.gmail.com with ESMTPSA id j9-20020a05600c190900b0039db31f6372sm21111747wmq.2.2022.07.18.03.57.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Jul 2022 03:57:16 -0700 (PDT) Date: Mon, 18 Jul 2022 11:57:13 +0100 From: Vincent Donnefort To: Will Deacon Cc: kvmarm@lists.cs.columbia.edu, Ard Biesheuvel , Sean Christopherson , Alexandru Elisei , Andy Lutomirski , Catalin Marinas , James Morse , Chao Peng , Quentin Perret , Suzuki K Poulose , Michael Roth , Mark Rutland , Fuad Tabba , Oliver Upton , Marc Zyngier , kernel-team@android.com, kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v2 03/24] KVM: arm64: Add flags to struct hyp_page Message-ID: References: <20220630135747.26983-1-will@kernel.org> <20220630135747.26983-4-will@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org 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: > > From: Quentin Perret > > > > 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 > > Signed-off-by: Will Deacon > > --- > > 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 > > #include > > > > -#define HYP_NO_ORDER USHRT_MAX > > +#define HYP_NO_ORDER 0xff > > BUG_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... > > [...]