Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp2628395lqo; Mon, 20 May 2024 11:12:39 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXWplcF5B2THKHtaFd5mVoiLHfaugOXcPDAeZlPF0ng6fq6uLpH4yr0+pHgNM+g0RCV8TaKyxOdLrH0GiU4HHxfFD73xwhTyQjPjTDV0g== X-Google-Smtp-Source: AGHT+IENNh7J1xgXXB+xBRjEprJnHbnrRW22Bi3xgKCCTK6TDx4ZTFgmqBAo3A6Yu1U5waJtQGBz X-Received: by 2002:a17:90a:b38e:b0:2b5:6f9b:a7b with SMTP id 98e67ed59e1d1-2b6cc759192mr26409781a91.15.1716228758935; Mon, 20 May 2024 11:12:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716228758; cv=pass; d=google.com; s=arc-20160816; b=u157ltgou/AcvIeyCZS7dwFc+dVQjgFH/j49zvHiDIG1/lLp2B2VSwEwcMolHoX/Xj c8n8XiUgpQvM17ln9RzQhEFuSIXTlUo1lVx2IpR5/P52HnaQMwNJuGyC9MKSlVJ9kHkg SqxHz1OoZf1UC2gHML0MSpo0JDmJz7PkMkrxgvZPOUzw67Cs3k738q78vRtWLs6nCBNy JQqfT4zI0+cvXvlcMmTIYVAQauf5bN1/rTpieBqt3Iq1ugNUDo4Zjqpbzp3vH0XF8UaY suNqZa/E+bDfSWSX8VBigDgrfTPyqlPbrqDBe+jMzojoVhFYfx+NbCpXNEbYzmD+0UXQ yEGA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:subject:cc:to:from :date:dkim-signature; bh=tpgK0JNXc3vf5jmgzRV5GAwx2RKOrBVvEHmBko1zztQ=; fh=nqB3IlQFKTcYv0K5eUd8WpLns89Q91Q3Ps6fokITJtI=; b=XlB1BTtIZyC+DSJ/ygeEUrVsKgp5QL2MHsBHFIq8u4zSo4YDQAjhYwLUlMY/gdZTAE /SnIrOalkkVC4HmduycTrFal0qT42CUK7/xvEex0qxU8Ms8F0mcTjCDT4c5NJP1i/f/S KbNYk4CnsJ5ZgjiS0qHWZAHqdU9UhGF/GyULj2vOA+bX4tHEO6A7lmLHau+ScruzZe0L lmhHTWnY6aWaMtkyxgZ1iqU0RIGiZGMUXErwoyXqGMG1K54JApZSLg7VrC6twU9fXanv QEU6mDoUth2DEk49zPnn6dwdSOs1IzyV3TNNoSZgCkVTjOZ7lR2GXSyrr3BixP+VSLl0 ureQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ed32qkpI; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-184051-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-184051-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2ba1dd99b2esi172314a91.183.2024.05.20.11.12.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 May 2024 11:12:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-184051-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ed32qkpI; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-184051-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-184051-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 8A2B2282A37 for ; Mon, 20 May 2024 18:12:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3C1381CA81; Mon, 20 May 2024 18:12:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="ed32qkpI" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A0C0613398E for ; Mon, 20 May 2024 18:12:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716228751; cv=none; b=mhqSfxTvgRZGjxi37Jpn+BVDqHeYOCz27rABa+n125VDiwVQ/6iLQ56p0qKA+rLl6euHM2tZdSEpX3DXJWzj+kmkjXEyWCB83MzYMzG25Fam/+7jJqn2qLCJElWzC7ahUsUVLl5AMB68EA3oDiU7xxvLbBQCG6kKpZZnUEb7q7A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716228751; c=relaxed/simple; bh=AvNgiG7Ty6On1gO7eAIVeqPSZaEDl5cwVHkvkiALAVM=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type; b=EuuqQYT+dqkO3neROwkOY/YJl8d3xhcXOcBZmOpvapM+cfNJBkvFHqiTm6Rs/5kw+it21NItNBW4q+rWY/scNnG5uq/Jk7RgbF4DjcFmZXxz6Wh3avnGEHN8rKkTfnPGinGnJTqd5tpPIricZRt12F0yQTKCQBDTEw5at2fKyaE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=ed32qkpI; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1716228748; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=tpgK0JNXc3vf5jmgzRV5GAwx2RKOrBVvEHmBko1zztQ=; b=ed32qkpILSvZzSyLw8dK8NOIjSePC81HFefd2AlNQQzZH2POJPe7mB+pMo5PkHyGdjBvX1 E1Qa+GDUnhW9ZI6i4LMFXeU4/sFgHN3vPQ0wcO6WKbxmcdy4mqCs+ppVUfpYT6mCyJwHpO xyGRI3r5UCUdrZPCe5kqWM/XA+XvKas= Received: from mail-il1-f198.google.com (mail-il1-f198.google.com [209.85.166.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-222-AejZVx5DM0aKGww6ACSSrw-1; Mon, 20 May 2024 14:12:26 -0400 X-MC-Unique: AejZVx5DM0aKGww6ACSSrw-1 Received: by mail-il1-f198.google.com with SMTP id e9e14a558f8ab-36c1af8f2f3so132536275ab.3 for ; Mon, 20 May 2024 11:12:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716228746; x=1716833546; h=content-transfer-encoding:mime-version:message-id:subject:cc:to :from:date:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=tpgK0JNXc3vf5jmgzRV5GAwx2RKOrBVvEHmBko1zztQ=; b=rB2XxwqyE/5p+1m1AvUCXXwy7jKk32jL3SzhDmPR/0f0AcTT9TBGg7TDfuF4rPOf7v fT08Fi61Znscp7cOHvkWzbbR3Pl+0F6GcxgSJNjVRs0AocA/UpC9g5Ixxwwo/W1zkv5u xOBu82qT3MvfqRBg9YpnlkLp3XZM63UdDEDKT7hXuGyKivkAIbtSBC6w55bgj7MgQfvj o2YNiKa/8utQBQ+d4JzrR/3TbEu7cqQMK0U3GTx85r5hUrzb4awpNa3Ree5hxPUgudSY Y8v28RY01zpthbi4bFOO9y/he04vce2zbw7I5lnDybbJQFDLvS+zPk7XL//uMVN/4trd 4xvA== X-Forwarded-Encrypted: i=1; AJvYcCXI6lrQTRbt44t0XUebRUPvbMO7JqYRPAUNCOa8sEsLm/MkixgHGZHMghrz9wsC8fX9YWaZJvycni0scIgFytNk6+2RQwRobfaXtfjE X-Gm-Message-State: AOJu0Yy39h6CEDhfzoTdhledWBRcc7J/y+XG4R+eZjq/rNUGyJ+fkKrP YhJdxSNYSTz7cCNqR5LLlUPLT7WrBb/MPRnNpnN0V0NmkFZhVsApVVEjpW2qOfwfICP96G+ld+0 LJ98ZX1t9mXS/WcfxzpmbZwloJvTan4IVJrFBr4qkPUxUQb77fvoKaTdWYWjAUw== X-Received: by 2002:a05:6e02:2169:b0:36d:b8cd:7c76 with SMTP id e9e14a558f8ab-36db8cd7e71mr171582915ab.8.1716228746134; Mon, 20 May 2024 11:12:26 -0700 (PDT) X-Received: by 2002:a05:6e02:2169:b0:36d:b8cd:7c76 with SMTP id e9e14a558f8ab-36db8cd7e71mr171582795ab.8.1716228745816; Mon, 20 May 2024 11:12:25 -0700 (PDT) Received: from redhat.com ([38.15.36.11]) by smtp.gmail.com with ESMTPSA id e9e14a558f8ab-36dc7c21e1asm20816795ab.81.2024.05.20.11.12.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 May 2024 11:12:25 -0700 (PDT) Date: Mon, 20 May 2024 12:12:23 -0600 From: Alex Williamson To: Linus Torvalds Cc: "kvm@vger.kernel.org" , Subject: [GIT PULL] VFIO updates for v6.10-rc1 Message-ID: <20240520121223.5be06e39.alex.williamson@redhat.com> X-Mailer: Claws Mail 4.2.0 (GTK 3.24.41; x86_64-redhat-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Hi Linus, I've provided the simplified diffstat from a temporary merge branch to avoid the noise of merging QAT dependencies from a branch provided by Herbert. The dependencies were already merged in commit 84c7d76b5ab6 ("Merge tag 'v6.10-p1' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6") Thanks, Alex The following changes since commit ed30a4a51bb196781c8058073ea720133a65596f: Linux 6.9-rc5 (2024-04-21 12:35:54 -0700) are available in the Git repository at: https://github.com/awilliam/linux-vfio.git tags/vfio-v6.10-rc1 for you to fetch changes up to cbb325e77fbe62a06184175aa98c9eb98736c3e8: vfio/pci: Restore zero affected bus reset devices warning (2024-05-17 08:00:52 -0600) ---------------------------------------------------------------- VFIO updates for v6.10-rc1 - The vfio fsl-mc bus driver has become orphaned. We'll consider removing it in future releases if a new maintainer isn't found. (Alex Williamson) - Improved usage of opaque data in vfio-pci INTx handling, avoiding lookups of the eventfd through the interrupt and irqfd runtime paths. (Alex Williamson) - Resolve an error path memory leak introduced in vfio-pci interrupt code. (Ye Bin) - Addition of interrupt support for vfio devices exposed on the CDX bus, including a new MSI allocation helper and export of existing helpers for MSI alloc and free. (Nipun Gupta) - A new vfio-pci variant driver supporting migration of Intel QAT VF devices for the GEN4 PFs. (Xin Zeng & Yahui Cao) - Resolve a possibly circular locking dependency in vfio-pci by avoiding copy_to_user() from a PCI bus walk callback. (Alex Williamson) - Trivial docs update to remove a duplicate semicolon. (Foryun Ma) ---------------------------------------------------------------- Alex Williamson (6): MAINTAINERS: Orphan vfio fsl-mc bus driver vfio/pci: Pass eventfd context to IRQ handler vfio/pci: Pass eventfd context object through irqfd Merge branch 'vfio' of https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6 into v6.10/vfio/qat-v7 vfio/pci: Collect hot-reset devices to local buffer vfio/pci: Restore zero affected bus reset devices warning Nipun Gupta (2): genirq/msi: Add MSI allocation helper and export MSI functions vfio/cdx: add interrupt support Xin Zeng (1): vfio/qat: Add vfio_pci driver for Intel QAT SR-IOV VF devices Ye Bin (1): vfio/pci: fix potential memory leak in vfio_intx_enable() foryun.ma (1): vfio: remove an extra semicolon Documentation/driver-api/vfio.rst | 2 +- MAINTAINERS | 11 +- drivers/vfio/cdx/Makefile | 2 +- drivers/vfio/cdx/intr.c | 217 ++++++++++++ drivers/vfio/cdx/main.c | 63 +++- drivers/vfio/cdx/private.h | 18 + drivers/vfio/pci/Kconfig | 2 + drivers/vfio/pci/Makefile | 2 + drivers/vfio/pci/qat/Kconfig | 12 + drivers/vfio/pci/qat/Makefile | 3 + drivers/vfio/pci/qat/main.c | 702 ++++++++++++++++++++++++++++++++++++++ drivers/vfio/pci/vfio_pci_core.c | 81 +++-- drivers/vfio/pci/vfio_pci_intrs.c | 61 ++-- include/linux/msi.h | 6 + kernel/irq/msi.c | 2 + 15 files changed, 1116 insertions(+), 68 deletions(-) create mode 100644 drivers/vfio/cdx/intr.c create mode 100644 drivers/vfio/pci/qat/Kconfig create mode 100644 drivers/vfio/pci/qat/Makefile create mode 100644 drivers/vfio/pci/qat/main.c