Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1290384rwl; Fri, 24 Mar 2023 08:36:52 -0700 (PDT) X-Google-Smtp-Source: AKy350aK7bKBSrpFenMiM2Q0QnEirGCSuAhZjrpud0MOoUPg+x3KFsoW1rOpedO8BrfkWuBNojTa X-Received: by 2002:a17:906:4356:b0:93d:1bfd:8fa with SMTP id z22-20020a170906435600b0093d1bfd08famr3020898ejm.36.1679672211990; Fri, 24 Mar 2023 08:36:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679672211; cv=none; d=google.com; s=arc-20160816; b=pEQgbV6RY+h9bGxedRhdfAirqrsX63ZFaJk/+yeI4Qcm7t9Y3Ppixptkegh0l6otUW o12XsHPInhVhpQDrut486ATba8rNupgP1vd+wnuh0t1Ru449be+072xcymyXavMARtPz FoEN/RxwGcYuDOR5vrp8bQJ8O8x+1Vl0saDkirGWmiZxfpcIaO5U4L71SanrJyh0iXlN HMq+ARBad6fv66syHoeNR6uZxRuYeIEU4XnrMulR6z2Ltneo87CZaQB0XtKen2W1RNGU sE10bdZDZ0Yv1ESHDw4HgATLVKHB3a5MjsOOPt8mOBWZ3nzs3Mbb1MULVn1ygvh9zKiy TVHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=SSTZ7cl5XEcqzxbUy7Jr4kfCQ2Xr7H6DuAMhXS4kUz4=; b=uJeN2BYu/NM1sMvsDgNFY/pS+Bh00l8I7oPLDHYQJ4GvYHlB/RTsySkQN2YV95FkNN bH8T21H9ZLbgp7vdTZTLhn+CTBaVlGrGuvOWVxJeQC0RGosc6wgiWVtsCYcBjGNoeRUI twaP7BOwLHRmAdl3KjagIwimDCU6kL/YTntPCmZiWdB6IrKLeti5YpKy8pnbsH2ykVLi GB9ajKhqAAje6Jfwc6wprciZCr2QosMwAsp2TnCU3EkecFisA8tlFvfCOVCDN7WtSm3B ifeVESoELh5RdYfg/AHjAjans9XLmnwZgBpSnPCEG//0Dhuuk/Xn7ru4fDHf8nB6xyDh ZVkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="B4rjk5/4"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qa9-20020a170907868900b00933ccc61787si17546500ejc.727.2023.03.24.08.36.26; Fri, 24 Mar 2023 08:36:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="B4rjk5/4"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232417AbjCXPYc (ORCPT + 99 others); Fri, 24 Mar 2023 11:24:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54512 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231795AbjCXPYb (ORCPT ); Fri, 24 Mar 2023 11:24:31 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 73818F77D; Fri, 24 Mar 2023 08:24:30 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 2A435B824F8; Fri, 24 Mar 2023 15:24:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A1F96C433EF; Fri, 24 Mar 2023 15:24:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679671467; bh=jOuFrReXEcmNuXh48EzaKOxXoRuwvYMtKdgb5EN0x2g=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=B4rjk5/4fCLDYsZ5Pz+6iIesW3ftkP0Qw2eR3A+P7kCtTCqII0uwahfAftC2UASHI tn3wkODgEA/o8SqZ6zloKnijXRxo+9NFG9BGiVusrdjb/wZgGVm8SKzEFOCRaiwFjw avkMfwuIVl5dsfQE/nctb674GJK+pBX+k0w6HfDOxdHVoR/gNorJkTkAJqQ/20VRFt 2whdHWHfBoe5N3Z6ElPzvw9OQ6jGzud+oqXxKBgtPKvWev7HsJCPSOirgfFh5HKIYx 0Xr4mNzf8CejJmJoLOxwsWZ5GuYN46mxVqGqRVKBLqS4VdhBajDNQLQL1KL1UnCPYQ SI8jSmqMJQ3fA== Date: Fri, 24 Mar 2023 16:24:14 +0100 From: Lorenzo Pieralisi To: "Michael Kelley (LINUX)" Cc: "hpa@zytor.com" , KY Srinivasan , Haiyang Zhang , "wei.liu@kernel.org" , Dexuan Cui , "luto@kernel.org" , "peterz@infradead.org" , "davem@davemloft.net" , "edumazet@google.com" , "kuba@kernel.org" , "pabeni@redhat.com" , "robh@kernel.org" , "kw@linux.com" , "bhelgaas@google.com" , "arnd@arndb.de" , "hch@lst.de" , "m.szyprowski@samsung.com" , "robin.murphy@arm.com" , "thomas.lendacky@amd.com" , "brijesh.singh@amd.com" , "tglx@linutronix.de" , "mingo@redhat.com" , "bp@alien8.de" , "dave.hansen@linux.intel.com" , Tianyu Lan , "kirill.shutemov@linux.intel.com" , "sathyanarayanan.kuppuswamy@linux.intel.com" , "ak@linux.intel.com" , "isaku.yamahata@intel.com" , "dan.j.williams@intel.com" , "jane.chu@oracle.com" , "seanjc@google.com" , "tony.luck@intel.com" , "x86@kernel.org" , "linux-kernel@vger.kernel.org" , "linux-hyperv@vger.kernel.org" , "netdev@vger.kernel.org" , "linux-pci@vger.kernel.org" , "linux-arch@vger.kernel.org" , "iommu@lists.linux.dev" Subject: Re: [PATCH v6 12/13] PCI: hv: Add hypercalls to read/write MMIO space Message-ID: References: <1678329614-3482-1-git-send-email-mikelley@microsoft.com> <1678329614-3482-13-git-send-email-mikelley@microsoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 24, 2023 at 03:13:02PM +0000, Michael Kelley (LINUX) wrote: > From: Lorenzo Pieralisi Sent: Friday, March 24, 2023 7:48 AM > > > > On Wed, Mar 08, 2023 at 06:40:13PM -0800, Michael Kelley wrote: > > > To support PCI pass-thru devices in Confidential VMs, Hyper-V > > > has added hypercalls to read and write MMIO space. Add the > > > appropriate definitions to hyperv-tlfs.h and implement > > > functions to make the hypercalls. > > > > > > Co-developed-by: Dexuan Cui > > > Signed-off-by: Dexuan Cui > > > Signed-off-by: Michael Kelley > > > Reviewed-by: Haiyang Zhang > > > --- > > > arch/x86/include/asm/hyperv-tlfs.h | 3 ++ > > > drivers/pci/controller/pci-hyperv.c | 64 > > +++++++++++++++++++++++++++++++++++++ > > > include/asm-generic/hyperv-tlfs.h | 22 +++++++++++++ > > > 3 files changed, 89 insertions(+) > > > > Nit: I'd squash this in with the patch where the calls are used, > > don't think this patch is bisectable as it stands (maybe you > > split them for review purposes, apologies if so). > > > > Lorenzo > > I did split the new code into two patches to make it more > consumable from a review standpoint. But I'm not understanding > what you mean by not being bisectable. After applying the first > of the two patches, everything should still compile and work > even though there are no users of the new hypercalls. Or maybe > your concern is that there would be "unused function" warnings? That's what I meant - that's it. > In any case, squashing the two patches isn't a problem. Thanks, Lorenzo