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 A3EFAC27C54 for ; Wed, 16 Aug 2023 21:56:47 +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:From:References:Cc:To: Subject:MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=NEtBya8xiW/57Su/vO7D4BjZVuZZLZhZvBuPQIwHVTI=; b=dlGf/6yFQY+v+O ACodq0PXH+lswQ0CXU2ymXZdEgklYYg+vl7t0oKlgdc8JgvWSFsEe+bqGi8DSUtr2jY/+3cZLviyd ESN1bJXuAOaVSQty0FCP6WqFaaUNdjxZZLlOdvRN1HRyqR+WoYbPnpn6bM9DQqRyPZq7Nqz97Ej2M 2DSh33T1qVSGw9HdzCy1dTdYdjxqvaoRFWutYxyTksvmlceZP9FoC+zom5QTqjXNau9dJ6ZP+n5zR p1TEcWQ3KxgG3BHQdOE+6kaNpwVtPrFHL7RL3YPRDOXVzf9BDqfu04LqmNm72JhuWNLDk+NJsmP+p U5WgRarRDJdIY7f8xC7g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qWOUy-00542O-1V; Wed, 16 Aug 2023 21:56:16 +0000 Received: from linux.microsoft.com ([13.77.154.182]) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qWOUv-00541h-0L for linux-arm-kernel@lists.infradead.org; Wed, 16 Aug 2023 21:56:14 +0000 Received: from [192.168.0.5] (71-212-112-68.tukw.qwest.net [71.212.112.68]) by linux.microsoft.com (Postfix) with ESMTPSA id B7663211F617; Wed, 16 Aug 2023 14:56:11 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com B7663211F617 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1692222972; bh=TcBeYn9mQXOHIb67yyVRR1Bs9s8VL8uFOeaa9wR+MIM=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=ausrTEkYhRFOv5htMYsJcYgAHDG+cbBqoggTvPnlE+avIcWkaDB4hAl3RULni0HW7 3OllRJ+GEAZ7xDtmTqolLZUBmvAbPgT46YFdVXzGsVeZn9+0lLm7PNSGGrazQEQuV5 6Rz4JdSrw6Yy4LyoQBV/nlRxB7XilKf7n6BQLsds= Message-ID: <92ed100d-b17d-4779-a10f-ca513f9b30ea@linux.microsoft.com> Date: Wed, 16 Aug 2023 14:56:11 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 09/15] Drivers: hv: Introduce hv_output_arg_exists in hv_common Content-Language: en-US To: Wei Liu Cc: linux-hyperv@vger.kernel.org, linux-kernel@vger.kernel.org, x86@kernel.org, linux-arm-kernel@lists.infradead.org, linux-arch@vger.kernel.org, mikelley@microsoft.com, kys@microsoft.com, haiyangz@microsoft.com, decui@microsoft.com, ssengar@linux.microsoft.com, mukeshrathor@microsoft.com, stanislav.kinsburskiy@gmail.com, jinankjain@linux.microsoft.com, apais@linux.microsoft.com, Tianyu.Lan@microsoft.com, vkuznets@redhat.com, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, hpa@zytor.com, will@kernel.org, catalin.marinas@arm.com References: <1690487690-2428-1-git-send-email-nunodasneves@linux.microsoft.com> <1690487690-2428-10-git-send-email-nunodasneves@linux.microsoft.com> From: Nuno Das Neves In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230816_145613_189451_E0454B65 X-CRM114-Status: GOOD ( 14.49 ) 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 8/2/2023 5:16 PM, Wei Liu wrote: > On Thu, Jul 27, 2023 at 12:54:44PM -0700, Nuno Das Neves wrote: >> This is a more flexible approach for determining whether to allocate the >> output page. > >> This will be used in both mshv_vtl and root partition. >> >> Signed-off-by: Nuno Das Neves >> --- >> drivers/hv/hv_common.c | 30 +++++++++++++++++++++++++----- >> 1 file changed, 25 insertions(+), 5 deletions(-) >> >> diff --git a/drivers/hv/hv_common.c b/drivers/hv/hv_common.c >> index 99d9b262b8a7..16f069beda78 100644 >> --- a/drivers/hv/hv_common.c >> +++ b/drivers/hv/hv_common.c >> @@ -57,6 +57,18 @@ EXPORT_SYMBOL_GPL(hyperv_pcpu_input_arg); >> void * __percpu *hyperv_pcpu_output_arg; >> EXPORT_SYMBOL_GPL(hyperv_pcpu_output_arg); >> >> +/* >> + * Determine whether output arg is in use, for allocation/deallocation >> + */ >> +static bool hv_output_arg_exists(void) >> +{ >> + bool ret = hv_root_partition ? true : false; >> +#ifdef CONFIG_MSHV_VTL >> + ret = true; >> +#endif > > This should not be here. As far as I can tell, CONFIG_MSHV_VTL is > introduced in a later patch. > Ok, I will introduce this #ifdef with the mshv_vtl module. > The rest looks okay. > > Thanks, > Wei. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel