Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1521500rwb; Fri, 19 Aug 2022 05:16:39 -0700 (PDT) X-Google-Smtp-Source: AA6agR5h7i/UDYy+uG1gJQMG3DloBsZuJ0nw0Vo3vTKtLOIe1T2z2/6W7nVNe82pjtc25I3NuUcs X-Received: by 2002:a17:907:6d8f:b0:730:b108:5062 with SMTP id sb15-20020a1709076d8f00b00730b1085062mr4832944ejc.461.1660911399125; Fri, 19 Aug 2022 05:16:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660911399; cv=none; d=google.com; s=arc-20160816; b=bMTivBCTamtvLjLzqe2vyDFpc20PAvaSAv6KithCFilSW3xChdGw6yudAYN4O6YKIl zOi0gkRoZUJH/IlO0U112lMWjz7Nq4RwSTTIZpcI6kVcgM1xNgtFkMoQIFQ5iJ6OzD+E S0x2EXbZAqyGsxrWeUd+5JhrpXj5H4H6opL9KpyGAskEaLknP5BWBC1b+WgIimZvQVIm 4UVH2k72G5AxagCFGoFi2upWAb/YCIzLJA2i+hbgnbZ/kBVfIScC24MewfLpFoICi/bs CT9+m5bcKnBIAZX3BM4O3eanPVdESu1AnYM3LRwUNt6kPlYUDZVpEfnaRqsKlGbCmBPP 89/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=eMYxvmLsm5iUEOW6SBmPUb7Z+2GvFGXcg+1PfhEYPkg=; b=zzQ9b9uRpPB/9Ko0fUlFMHkYclrnwbZXNDl8U8ndzXPJm1UiuGZ5r/RPQuOCp9OX7/ GxEY1qdukS6suYySVqLAjcVKw+FGU3xEc5xXaC9+7m/zPG7HxA8ixU2HI4eSezFSieyA WZYL/yeBFheUvdFby/8lgQnOSeKZGndkSH2u4ElplAgr0QGbz6kchf3FcdFgaImM0Omz vqU0zZx15kFNrQgMJPk2+jFg8avBnfVxZ8gHKZSgRAyIv1iYitNnnFKUVXWNjoInk6Pz bbDFGf3jrZ57LawURc1D3bvvc2xZ+KbBSaqhAowZopJTSIfxzDEoVrJqPXTMnSeohiut 0CEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=i4ACEMZQ; 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=ibm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h19-20020a170906829300b007262d20d6cesi2401684ejx.200.2022.08.19.05.16.07; Fri, 19 Aug 2022 05:16:39 -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=@ibm.com header.s=pp1 header.b=i4ACEMZQ; 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=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348357AbiHSLtq (ORCPT + 99 others); Fri, 19 Aug 2022 07:49:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60530 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348061AbiHSLtm (ORCPT ); Fri, 19 Aug 2022 07:49:42 -0400 Received: from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E112BE86B3; Fri, 19 Aug 2022 04:49:41 -0700 (PDT) Received: from pps.filterd (m0098419.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 27JBNqXv027771; Fri, 19 Aug 2022 11:49:35 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=message-id : subject : from : to : cc : date : in-reply-to : references : content-type : mime-version : content-transfer-encoding; s=pp1; bh=eMYxvmLsm5iUEOW6SBmPUb7Z+2GvFGXcg+1PfhEYPkg=; b=i4ACEMZQ0aKj2CEuprWNtZAiP2N4QjeWrC5z3THOqv9mo8Jhm/sV5AzZn5Fx2xOy/YsI RzJoh43Uq5We7g303KX+W07of2sAkYUkwlCLz8Adem8dgyXdvYIMLzeFDxpPRziYytQ4 orJ3BURZmgGHjkeNey9YbSrH45cTKZcA/b2mvLZpV8Va+TfofeXusN/G6ErY/b1dWZCP DtLG2GM1nkUVbANZH96Ys7GgCVAsj3MxONCxgEUi7LUAjW+EmmRokGPC25RyzSR+m8g3 lWHK1yraVSczoXquHTx+lMPHoUFjPkA0kagy1L/ao0bATLilwQG64/yAHzk1svCzAtkM FQ== Received: from ppma05fra.de.ibm.com (6c.4a.5195.ip4.static.sl-reverse.com [149.81.74.108]) by mx0b-001b2d01.pphosted.com (PPS) with ESMTPS id 3j29m1ghqt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 19 Aug 2022 11:49:35 +0000 Received: from pps.filterd (ppma05fra.de.ibm.com [127.0.0.1]) by ppma05fra.de.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 27JBLEus029171; Fri, 19 Aug 2022 11:49:33 GMT Received: from b06cxnps4075.portsmouth.uk.ibm.com (d06relay12.portsmouth.uk.ibm.com [9.149.109.197]) by ppma05fra.de.ibm.com with ESMTP id 3hyp8skttd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 19 Aug 2022 11:49:33 +0000 Received: from d06av24.portsmouth.uk.ibm.com (mk.ibm.com [9.149.105.60]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 27JBnUpU33423776 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 19 Aug 2022 11:49:30 GMT Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 5D24C42041; Fri, 19 Aug 2022 11:49:30 +0000 (GMT) Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id ADD154203F; Fri, 19 Aug 2022 11:49:29 +0000 (GMT) Received: from sig-9-145-84-131.uk.ibm.com (unknown [9.145.84.131]) by d06av24.portsmouth.uk.ibm.com (Postfix) with ESMTP; Fri, 19 Aug 2022 11:49:29 +0000 (GMT) Message-ID: <5c06e9dae0848e21168a70183f2cfa4e55793586.camel@linux.ibm.com> Subject: Re: [PATCH] KVM: s390: pci: Hook to access KVM lowlevel from VFIO From: Niklas Schnelle To: Pierre Morel , mjrosato@linux.ibm.com Cc: rdunlap@infradead.org, linux-kernel@vger.kernel.org, lkp@intel.com, borntraeger@linux.ibm.com, farman@linux.ibm.com, linux-s390@vger.kernel.org, kvm@vger.kernel.org, gor@linux.ibm.com, hca@linux.ibm.com, frankja@linux.ibm.com Date: Fri, 19 Aug 2022 13:49:29 +0200 In-Reply-To: References: <20220818164652.269336-1-pmorel@linux.ibm.com> <2ae0bf9abffe2eb3eb2fb3f84873720d39f73d4d.camel@linux.ibm.com> <0d7d055d-f323-acba-cb79-f859b5e182b4@linux.ibm.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5 (3.28.5-18.el8) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: AyeLoIx0s6d3qrs920OQHpAddIe_F9GL X-Proofpoint-ORIG-GUID: AyeLoIx0s6d3qrs920OQHpAddIe_F9GL X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.517,FMLib:17.11.122.1 definitions=2022-08-19_06,2022-08-18_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 spamscore=0 bulkscore=0 mlxlogscore=999 malwarescore=0 adultscore=0 suspectscore=0 mlxscore=0 phishscore=0 impostorscore=0 priorityscore=1501 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2207270000 definitions=main-2208190044 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham 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 ---8<--- > > > > > diff --git a/arch/s390/pci/Makefile b/arch/s390/pci/Makefile > > > > > index bf557a1b789c..c02dbfb415d9 100644 > > > > > --- a/arch/s390/pci/Makefile > > > > > +++ b/arch/s390/pci/Makefile > > > > > @@ -7,3 +7,5 @@ obj-$(CONFIG_PCI) += pci.o pci_irq.o pci_dma.o pci_clp.o pci_sysfs.o \ > > > > > pci_event.o pci_debug.o pci_insn.o pci_mmio.o \ > > > > > pci_bus.o > > > > > obj-$(CONFIG_PCI_IOV) += pci_iov.o > > > > > + > > > > > +obj-y += pci_kvm_hook.o > > > > > > > > I thought we wanted to compile this only for CONFIG_PCI? > > > > > > Ah sorry, that is indeed what I understood with Matt but then I > > > misunderstood your own answer from yesterday. > > > I change to > > > obj-$(CONFIG_PCI) += pci_kvm_hook.o > > > > > > > > diff --git a/arch/s390/pci/pci_kvm_hook.c b/arch/s390/pci/pci_kvm_hook.c > > > > > new file mode 100644 > > > > > index 000000000000..ff34baf50a3e > > > > ---8<--- > > > > > > > > Ok with the two things above plus the comment by Matt incorporated: > > > > Reviewed-by: Niklas Schnelle > > > > Just a little correction, it changes nothing if the pci_kvm_hook.c goes > on same lines as other CONFIG_PCI depending files. > So I put it on the same line. > > Thanks > > Pierre > Of course yes. Thanks for fixing this and I'm assuming this would either go through the KVM or vfio trees, correct?