Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp3623782pxy; Tue, 4 May 2021 06:32:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxMc6fdrin/ZClpz+Ml6gu5rwKOpe72qhlwnjTGJFR03Y3v844Q3hTJcELZK9lYvCBksT94 X-Received: by 2002:a05:6402:3513:: with SMTP id b19mr25682747edd.368.1620135146490; Tue, 04 May 2021 06:32:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620135146; cv=none; d=google.com; s=arc-20160816; b=vR02vIQPUM0UMtr1HCo9FU1EF5ZUH+rjCdkLAAwFt81ZsrNZP2qK77NKlr393MpBnp 9qIDk3CJ3zQvFTucUdbuguvUKp2oRrf1COW4GMnGQt3otQZ6LtR7h1z/OZ0/mjE1etBu T68dZi7En9DLau+cfGh0UAZkPegQFR+4CLSCr3JJUdWYWCvYn6auCsCr+Hm/nHcSrP4k 1Gq8Ny/z7ez6W7qimPP465Dsjn199T1hppM4VcEcBInpsUJ2tAMYxRD1j+90cN2z5dk9 ObbYLa37Se9kCbvMfiyPz6GBPOp9AUQkF6wc30EBfNfdy64+eRK6xwLHrFu1b5X+Q3bW udGQ== 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=pK5JaGMPbKpNaAAqa/L9qgr6/hzWXIDM8CHlm64TOJE=; b=N01B+0YzKcffqP2ylQviHXQBjm4lyB5+w385HRvGm6rzOsqNlnuGdOq5tTH3y4pQcW kdNb90eUR/jUoc93seAMcbklU58ajR2rGkMZbaBaQFr/L9U5M3AjaKOQCVQl5d769i4H mmEwJD+h10CLLCEbtyqNxEQWzSsVthZB7FgAfZ8sSo9dHlO+ntAcmE99+5JPIHXBVPxr NxO9OTJTJKDg1S9LH89NPPtGpNk2cLaJ6wFNGdatKj/rgan6XE3i4dqTba/ypFi4LMs+ cLDE3mqFBduzC8JYVDWGdZDZwBYo5E9ucMOg25+2aRPDObQss80TrHYi+h+EGAM8ijLR Z20Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=rtsctj9O; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g14si10863904edm.540.2021.05.04.06.32.01; Tue, 04 May 2021 06:32:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=rtsctj9O; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231219AbhEDNbR (ORCPT + 99 others); Tue, 4 May 2021 09:31:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:57490 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231126AbhEDNbN (ORCPT ); Tue, 4 May 2021 09:31:13 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0354A611AC; Tue, 4 May 2021 13:30:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620135017; bh=K7jOMW5zxYrXVgqj4YX3jlgoXwGfte8Q1gPc0IQQxmg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=rtsctj9Ov4ebaVfqmb8gRZiVYEWb9O63QSOpgigHe4Bfem/KRiz924DWKfJrXCA1x W4d/PdSPAuO3zWlqN2xdW0Ro5Srwxz2EwzPkSRaNhB9OEvbctTVDx4HN9Behn8Fwwp nhrWTmovaEXCGQD5zqQXRd2b0oKZ8L3sVy0jARV8= Date: Tue, 4 May 2021 15:30:15 +0200 From: Greg Kroah-Hartman To: Greg Kurz Cc: Christoph Hellwig , Michael Ellerman , Alex Williamson , Jason Gunthorpe , kvm@vger.kernel.org, David Airlie , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Paul Mackerras , Daniel Vetter , linux-api@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, qemu-devel@nongnu.org, qemu-ppc@nongnu.org Subject: Re: remove the nvlink2 pci_vfio subdriver v2 Message-ID: References: <20210326061311.1497642-1-hch@lst.de> <20210504142236.76994047@bahia.lan> <20210504152034.18e41ec3@bahia.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210504152034.18e41ec3@bahia.lan> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 04, 2021 at 03:20:34PM +0200, Greg Kurz wrote: > On Tue, 4 May 2021 14:59:07 +0200 > Greg Kroah-Hartman wrote: > > > On Tue, May 04, 2021 at 02:22:36PM +0200, Greg Kurz wrote: > > > On Fri, 26 Mar 2021 07:13:09 +0100 > > > Christoph Hellwig wrote: > > > > > > > Hi all, > > > > > > > > the nvlink2 vfio subdriver is a weird beast. It supports a hardware > > > > feature without any open source component - what would normally be > > > > the normal open source userspace that we require for kernel drivers, > > > > although in this particular case user space could of course be a > > > > kernel driver in a VM. It also happens to be a complete mess that > > > > does not properly bind to PCI IDs, is hacked into the vfio_pci driver > > > > and also pulles in over 1000 lines of code always build into powerpc > > > > kernels that have Power NV support enabled. Because of all these > > > > issues and the lack of breaking userspace when it is removed I think > > > > the best idea is to simply kill. > > > > > > > > Changes since v1: > > > > - document the removed subtypes as reserved > > > > - add the ACK from Greg > > > > > > > > Diffstat: > > > > arch/powerpc/platforms/powernv/npu-dma.c | 705 --------------------------- > > > > b/arch/powerpc/include/asm/opal.h | 3 > > > > b/arch/powerpc/include/asm/pci-bridge.h | 1 > > > > b/arch/powerpc/include/asm/pci.h | 7 > > > > b/arch/powerpc/platforms/powernv/Makefile | 2 > > > > b/arch/powerpc/platforms/powernv/opal-call.c | 2 > > > > b/arch/powerpc/platforms/powernv/pci-ioda.c | 185 ------- > > > > b/arch/powerpc/platforms/powernv/pci.c | 11 > > > > b/arch/powerpc/platforms/powernv/pci.h | 17 > > > > b/arch/powerpc/platforms/pseries/pci.c | 23 > > > > b/drivers/vfio/pci/Kconfig | 6 > > > > b/drivers/vfio/pci/Makefile | 1 > > > > b/drivers/vfio/pci/vfio_pci.c | 18 > > > > b/drivers/vfio/pci/vfio_pci_private.h | 14 > > > > b/include/uapi/linux/vfio.h | 38 - > > > > > > > > > Hi Christoph, > > > > > > FYI, these uapi changes break build of QEMU. > > > > What uapi changes? > > > > All macros and structure definitions that are being removed > from include/uapi/linux/vfio.h by patch 1. > > > What exactly breaks? > > > > These macros and types are used by the current QEMU code base. > Next time the QEMU source tree updates its copy of the kernel > headers, the compilation of affected code will fail. So does QEMU use this api that is being removed, or does it just have some odd build artifacts of the uapi things? What exactly is the error messages here? And if we put the uapi .h file stuff back, is that sufficient for qemu to work, as it should be checking at runtime what the kernel has / has not anyway, right? thanks, greg k-h