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 AE800C00528 for ; Thu, 3 Aug 2023 00:17:22 +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=fhuqiUyqA/kUqP97QWEvu+8qsGuCUaTxmOcPUuP07Kk=; b=S3g50G0acSQ4yK bIpKgK6ugNmSZay/vkeP8mtzd2nNsQikktlGKeGxr/ODTmS/FiId4vwVYApEBlUYaye3jRbpm13rf sr+TkFRlJJcF7F1hJN1+OYH/hrs3PeCU/L1dcjA04MqjLaFy4pAyD+R1VuTzmcRlWk1KqvxpOFGJm ollCEDr/FhDlrZ99nJiNjqd3n2z40X9YRR8DaxSVyeyCxJthh/e7Bpfbn1e1NhIGX1oyISCNqVsYn mJtes8R+5nSyoPHrHNSUP1RCQXiEls+rgTn57pZUI2mcqMrwZCoeD7h8RIT/hu9alVBQnfSqusT6E IE1gvMdUFKyTradD/oVA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qRM1I-006FWl-1o; Thu, 03 Aug 2023 00:16:48 +0000 Received: from mail-pl1-f182.google.com ([209.85.214.182]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qRM1F-006FVj-2f for linux-arm-kernel@lists.infradead.org; Thu, 03 Aug 2023 00:16:47 +0000 Received: by mail-pl1-f182.google.com with SMTP id d9443c01a7336-1bb2468257fso3418125ad.0 for ; Wed, 02 Aug 2023 17:16:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691021805; x=1691626605; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=gVrG8SmJV4YoZPJumklaBBg3JMAiIwsiaH9SPEZme84=; b=dvJHqzj0OPzeaUoA8qG/m3rdJL7/kREITUKRW6HU673eHg466EmQd5gA3nzgH7l8gi YapD1UNE7S/if/CUZEsGzGcNqfrgHNghVAXyE0kUNpBfg7GD91qA8o8ArAasj4aYONzu cQp/izYESSF6tzziewfwMzV1jKaAYqM+VMGy/sf4gapnD+9pTHMwSu4Flji4QBbo1lzl qprzdObhqo4HRSmitSNidrZ/G/s4kKHUVf5l54CsgmJn9AbC22tc/glaQazkuCUXXSbW AU5jmIh4OB5LqeFQ082EAi+yQGVyYYFmzpfUd2TQvpvEPoeCPkZlU3HqqXPL+VahBgfg ocyA== X-Gm-Message-State: ABy/qLbkY6XHRSBGIGrxytSqv6XwUVIp+MZqDOH+e5TuI6SsMtHNl2Kn qgu2oxDbQLtY6D73DT5tPqE= X-Google-Smtp-Source: APBJJlFPPRsV/o6afwX7zXRPC1zXopOTPZFHt1xcbcX9/fyCA2S/CaERxMT7ZHQ4WwWf8Dtuj3IbmQ== X-Received: by 2002:a17:902:7b85:b0:1ac:3605:97ec with SMTP id w5-20020a1709027b8500b001ac360597ecmr14604489pll.62.1691021804751; Wed, 02 Aug 2023 17:16:44 -0700 (PDT) Received: from liuwe-devbox-debian-v2 ([20.69.120.36]) by smtp.gmail.com with ESMTPSA id w8-20020a170902e88800b001b9be2e2b3esm12932603plg.277.2023.08.02.17.16.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Aug 2023 17:16:44 -0700 (PDT) Date: Thu, 3 Aug 2023 00:16:38 +0000 From: Wei Liu To: Nuno Das Neves 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, wei.liu@kernel.org, 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 Subject: Re: [PATCH 09/15] Drivers: hv: Introduce hv_output_arg_exists in hv_common Message-ID: References: <1690487690-2428-1-git-send-email-nunodasneves@linux.microsoft.com> <1690487690-2428-10-git-send-email-nunodasneves@linux.microsoft.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1690487690-2428-10-git-send-email-nunodasneves@linux.microsoft.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230802_171645_860752_66F7C469 X-CRM114-Status: GOOD ( 17.92 ) 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, 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. 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