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 8F116238C07 for ; Mon, 4 Aug 2025 22:22:08 +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=1754346130; cv=none; b=H56dBPG9GxaKQlqUPnlshAi5RxsiN8El8z66isHlMrVcaiu3YVSwEYLJGVOdbsRt1JNxnYEkAEz9kv+SYKjiBp1+Qf6PKTJHmxnYWnDgPITJ/4fyC8EudLCbi38BH6BwrZA7AlzSZQ1y5V/c4coJsZMWBlSL3lWQ92EK8VeQnHE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754346130; c=relaxed/simple; bh=Dn5p2DuKosNzWsO5ifWRe1Ae6wx1PGjXcUmxu50cMos=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type; b=t141Rq9eR0clbt7xGyivVgmiAfaBXKb5BEXUB/GAe974vFH5Yp/hzzMX0zoLicpoLPbvmtwKhmiKLvFQmUL70GBdyncs1Azc1qho/mef/lTHnSnBWcKLrbkEiCHqOf5yhClW9Mdn9ehetmPt9SvyxmXlL1HMZ0Z+EwwoYixItGg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine 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=AZRdP5NT; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="AZRdP5NT" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1754346127; 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=F5E3U/trUdUUx6dKnWFWrFF9mfVwnnDI83X6XjlvZJQ=; b=AZRdP5NTOEn+IaLSoT0USKHwJ9M8ryL7IxWosvR47yF2QJOsqlQfNFMOdHvBq9EFsz0mvx XhOpz2lVaDWF+XKgUbRAIV9Ef9ujc42ExlZU6iwT9fTmDBodRWI69Dsh8kgUg1oF+POjk+ NHFi1FJ7OlRGJODiNe3mtdxkaXY+i2Y= 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-538-rC7QLaxQPB6mRFU_VXKARg-1; Mon, 04 Aug 2025 18:22:05 -0400 X-MC-Unique: rC7QLaxQPB6mRFU_VXKARg-1 X-Mimecast-MFC-AGG-ID: rC7QLaxQPB6mRFU_VXKARg_1754346125 Received: by mail-il1-f198.google.com with SMTP id e9e14a558f8ab-3e3d91ee461so9560265ab.1 for ; Mon, 04 Aug 2025 15:22:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1754346125; x=1754950925; h=content-transfer-encoding:mime-version:organization:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=F5E3U/trUdUUx6dKnWFWrFF9mfVwnnDI83X6XjlvZJQ=; b=SLi1YajpMIW20yAo57u7RDJeXDVY00xVDp6VJFA1+5TguM/Qym9zK9G64QYt7fVTXB hTyKsA8ezojvLAEdVTcpg6Wje+hPU5SNz7HxOHRGsFL4oMjRYZ2Kq5G7wxKFQVy+SG5K WdukdJ3M9wa72KYt1H9/rxtQ0nanpca+fTU1mAPjtnp220SUx98e/o5Rf3SutPkpBMuI A+Hl8s3pifGPGHDAlZYNwIwILfGxgA2iK2MKeNheQIUgdUb/PtbZOutHpdkBBKEv15WM CwhZGgWF6b6+Gp8GKWpisYIFan/aCOYm1nMBwz46TOKZsQVYOZ79sL9RHKTbXR8YBaZs +GWg== X-Gm-Message-State: AOJu0YxbpLT+MaciFbG6mN0WPHaP8iVex3rK/ll4IZM52eRkxgfD2iAB FQCUFO8T9K89or4HAaLPanrvAoxDYkoByVQdqNRIMeT74jHREiOwWat3hf2Gp1eQ5YW/b0ssSjG 8xCI9B4lzftb7AND4Ad0DodUIOo3H1qQs2M2l5JeqZiz+DXtgG+/jfA== X-Gm-Gg: ASbGncutf2Ol7c8UrZuYrwUEstyF6kHY7xkX0o0aVqrFo8Wd3oSYtbErhPPcsKOE29N RSZMFOIdIuRMMUF+BnxWNLMzPQ6ZJbmxZMoqJ0+CYn9sKGu01J9tvSibsySYUzaSOEbsT4ltHGp spQCUkG/JEEHiflKnZapCA5AqyE+nO3+vR1p2epDTF8EuWUw99UM95aAVMpBQIbrmf1nZL3F4SE nm3qw+xiAxzrumFcLQ9Y3rLUQdPak3exNZKUoPqzik4EE30ZVmsnIRTL9o2j3bH3QN5B1zidd6J nyzXWRY4Gvfk884+oPpCF0k0zLPCDVjn/ctuydJKfpo= X-Received: by 2002:a92:c24b:0:b0:3e3:d2eb:52db with SMTP id e9e14a558f8ab-3e41609c100mr61810995ab.0.1754346124554; Mon, 04 Aug 2025 15:22:04 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGH2zVAoDEtPLJzV17HpXe2fDF+PkSDQ1w8BFQmkDQplAPkXAXjmhrdiRK3sFXly2gZ6zCa8A== X-Received: by 2002:a92:c24b:0:b0:3e3:d2eb:52db with SMTP id e9e14a558f8ab-3e41609c100mr61810885ab.0.1754346124094; Mon, 04 Aug 2025 15:22:04 -0700 (PDT) Received: from redhat.com ([38.15.36.11]) by smtp.gmail.com with ESMTPSA id 8926c6da1cb9f-50ab0bb98d9sm367388173.90.2025.08.04.15.22.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Aug 2025 15:22:03 -0700 (PDT) Date: Mon, 4 Aug 2025 16:22:01 -0600 From: Alex Williamson To: Linus Torvalds Cc: "kvm@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: [GIT PULL] VFIO updates for v6.17-rc1 Message-ID: <20250804162201.66d196ad.alex.williamson@redhat.com> Organization: Red Hat Precedence: bulk X-Mailing-List: kvm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Linus, The following changes since commit d7b8f8e20813f0179d8ef519541a3527e7661d3a: Linux 6.16-rc5 (2025-07-06 14:10:26 -0700) are available in the Git repository at: https://github.com/awilliam/linux-vfio.git tags/vfio-v6.17-rc1 for you to fetch changes up to d2272d898186fa96c6fa4ad067219b45b8c2ef5f: vfio/type1: correct logic of vfio_find_vpfn() (2025-07-27 08:20:31 -0600) ---------------------------------------------------------------- VFIO updates for v6.17-rc1 - Fix imbalance where the no-iommu/cdev device path skips too much on open, failing to increment a reference, but still decrements the reference on close. Add bounds checking to prevent such underflows. (Jacob Pan) - Fill missing detach_ioas op for pds_vfio_pci, fixing probe failure when used with IOMMUFD. (Brett Creeley) - Split SR-IOV VFs to separate dev_set, avoiding unnecessary serialization between VFs that appear on the same bus. (Alex Williamson) - Fix a theoretical integer overflow is the mlx5-vfio-pci variant driver. (Artem Sadovnikov) - Use batching on contiguous pages to significantly improve DMA map and unmap performance when using hugetlbfs or THP backed memory with the legacy vfio type1 IOMMU backend. (Li Zhe) - Implement missing VF token checking support via vfio cdev/IOMMUFD interface. (Jason Gunthorpe) - Update QAT vfio-pci variant driver to claim latest VF devices. (Ma=C5=82gorzata Mielnik) - Add a cond_resched() call to avoid holding the CPU too long during DMA mapping operations. (Keith Busch) ---------------------------------------------------------------- Alex Williamson (1): vfio/pci: Separate SR-IOV VF dev_set Artem Sadovnikov (1): vfio/mlx5: fix possible overflow in tracking max message size Brett Creeley (1): vfio/pds: Fix missing detach_ioas op Jacob Pan (2): vfio: Fix unbalanced vfio_df_close call in no-iommu mode vfio: Prevent open_count decrement to negative Jason Gunthorpe (1): vfio/pci: Do vf_token checks for VFIO_DEVICE_BIND_IOMMUFD Keith Busch (1): vfio/type1: conditional rescheduling while pinning Li Zhe (6): mm: introduce num_pages_contiguous() vfio/type1: optimize vfio_pin_pages_remote() vfio/type1: batch vfio_find_vpfn() in function vfio_unpin_pages_remot= e() vfio/type1: introduce a new member has_rsvd for struct vfio_dma vfio/type1: optimize vfio_unpin_pages_remote() vfio/type1: correct logic of vfio_find_vpfn() Ma=C5=82gorzata Mielnik (1): vfio/qat: add support for intel QAT 6xxx virtual functions Xin Zeng (1): vfio/qat: Remove myself from VFIO QAT PCI driver maintainers MAINTAINERS | 1 - drivers/vfio/device_cdev.c | 38 +++++++- drivers/vfio/group.c | 7 +- drivers/vfio/iommufd.c | 4 + drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c | 1 + drivers/vfio/pci/mlx5/cmd.c | 4 +- drivers/vfio/pci/mlx5/main.c | 1 + drivers/vfio/pci/nvgrace-gpu/main.c | 2 + drivers/vfio/pci/pds/vfio_dev.c | 2 + drivers/vfio/pci/qat/main.c | 5 +- drivers/vfio/pci/vfio_pci.c | 1 + drivers/vfio/pci/vfio_pci_core.c | 24 +++-- drivers/vfio/pci/virtio/main.c | 3 + drivers/vfio/vfio_iommu_type1.c | 118 ++++++++++++++++++++-= ---- drivers/vfio/vfio_main.c | 3 +- include/linux/mm.h | 23 +++++ include/linux/vfio.h | 4 + include/linux/vfio_pci_core.h | 2 + include/uapi/linux/vfio.h | 12 ++- 19 files changed, 212 insertions(+), 43 deletions(-)