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 96FC2C433EF for ; Mon, 18 Jul 2022 10:55:59 +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=kkRinEMcGfsbneZQO05v6xkGC6oY1ERL4Q2INFMaN5c=; b=hK2Wu61WTyCTl8 A8AXfl3BAV/1mwgz3glLAci27X6wZ7bGsObjxde1EUDVhug2Xts9twAWREHq4MeUvIZIX593FC8BK j09FpRcjsowBVtpA58WFRSTyljmoGX2hHjfxh1d7YJlv+8WPyVGrVDLGilMmy+0niKCHRAiDOSid+ its7HsIcgC79Rt1LdwwJs00JBmpOCEp+0e6Q4xXVJClOSf9/EbV/ZAD0rRIRX5N9l6aKc8MVfh/uE hLQMnbHjun2jDlOEBUVlC5Gf5FFvejUPkbiYvDNIQY/5HhpbnHjanMCRcmfMjFCG2bBQawM7UXM7M zTkUpSxFtwrZTq6XB1Nw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oDOOZ-00CcdI-VU; Mon, 18 Jul 2022 10:54:36 +0000 Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oDOOX-00CcaS-RN for linux-arm-kernel@lists.infradead.org; Mon, 18 Jul 2022 10:54:35 +0000 Received: by mail-wr1-x42e.google.com with SMTP id d16so16418976wrv.10 for ; Mon, 18 Jul 2022 03:54:29 -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=EnNyVXrZhTsXbUVxkr3n4VsUhRgF1qEMC8DKDk1V3bg=; b=rA1jEp0LpZP1+P6mDlvjxu6wXht3l3c85gezvxbNTLmGEt+mwhGqy8ciWXMPEiQhsV Py0iFtckCil7igYZcFp6sDt9mXipN8SxsYKXB5MT84MHrGLgoU3DpAvT4AD37DSgCo41 O2wryFz75Kg83wzds9RuyLwCZeqZc7MgLh7CfbywkTH7Ra8ougAgyYpb/Yl90sKTdEFV 9X6BfYNDnl6+npLtohqcJirL2eijkmdGaL+ShhNBfVUdkzqXuAlyfZMAB0qlmZ5JYBc3 HFpTXa1MudIGNW7loLT1zL2/chxy33iqWg5/mSXStWMV3XpVFqIWy2xSLd3ZT3tBeNR5 RBWQ== 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=EnNyVXrZhTsXbUVxkr3n4VsUhRgF1qEMC8DKDk1V3bg=; b=NWZOp5d9Tg+d0vRexFZztNlSIu1KlUZDWY5d5LgFMJ4TJM83+RshylTSRqnQRRR1dY BfLxZaDCtRBtwwUCmIFINXEXMYsVoS1lENrFtLXv7WMV9TmBZPi+l9NoXmTb50muxcJ/ HMw0/jSG7p2FzvlG2Zi6QpPfGQeOsg0gLB/U0K5mK7fs1bOovu/kuOjHpLzpffrGKsQf mBkiY6Thw5vwCrwbmQ/mtLx1/K53d3Wx5NR5wwWdG4VDXf6sGlp5S34snYbr2oX6wVzf ujGX3m1CpQPKb+pEpJ/5/pkSPeDnWED13pJZDpy/7jns0J9af5xDqS9iF76uFOH9hS6n ISLA== X-Gm-Message-State: AJIora9iBu0zlDdoP1xIoiljAK0m5qSoUBd1uN3wqT4fauscMUNieOwP yf1/68kd8GuJzfjrx4RGk5QUQg== X-Google-Smtp-Source: AGRyM1s++fQ9NM06ad06/mDC5sdqkaLBhNndHCSSldelrOBvrP9ZoL8WSbkS9NkWyl/ehH7BaNd77Q== X-Received: by 2002:adf:d20e:0:b0:21d:7654:729b with SMTP id j14-20020adfd20e000000b0021d7654729bmr22523907wrh.239.1658141668639; Mon, 18 Jul 2022 03:54:28 -0700 (PDT) Received: from google.com (109.36.187.35.bc.googleusercontent.com. [35.187.36.109]) by smtp.gmail.com with ESMTPSA id o42-20020a05600c512a00b0039c457cea21sm15087975wms.34.2022.07.18.03.54.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Jul 2022 03:54:28 -0700 (PDT) Date: Mon, 18 Jul 2022 11:54:24 +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: <20220630135747.26983-4-will@kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220718_035433_917577_3CBDA11B X-CRM114-Status: GOOD ( 17.14 ) 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 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. [...] _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel