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