From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5B4FCEB64D9 for ; Thu, 29 Jun 2023 20:50:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231908AbjF2Uus (ORCPT ); Thu, 29 Jun 2023 16:50:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45764 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231766AbjF2Uup (ORCPT ); Thu, 29 Jun 2023 16:50:45 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 59A822D4A for ; Thu, 29 Jun 2023 13:49:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1688071794; 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=p3Vp3rwhn+p+DOqGjp5roAc+L4HiC1iWcg0rxheHFZg=; b=URGTnri4IhxkEDDhyVpFP9h1MjMIKwnjPqlmjI6O1lARObr2gp7GbXAKdjenFSRKLMCFes NYO/IpAdPPBI+WCklvMozgJtDGxGXB6q0c2tpyhuwNOmFm5FMtSQmwb8YVlWpwcmHrTsjL chHy2ACZnvYivJiu3t78YS/IhQ/smAE= Received: from mail-io1-f69.google.com (mail-io1-f69.google.com [209.85.166.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-70-7WwnlU8jP2aqDuZ1DNwOTQ-1; Thu, 29 Jun 2023 16:49:52 -0400 X-MC-Unique: 7WwnlU8jP2aqDuZ1DNwOTQ-1 Received: by mail-io1-f69.google.com with SMTP id ca18e2360f4ac-783472131faso48033239f.3 for ; Thu, 29 Jun 2023 13:49:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688071791; x=1690663791; 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=p3Vp3rwhn+p+DOqGjp5roAc+L4HiC1iWcg0rxheHFZg=; b=S31CKrBOkAPnaO6BtxPsY2c+kHfUTD0iSYWRWMdKY9d+DIxEPEb86T1owzk21t4Ap1 tEyklsEl7tXEsxDNspIkmjorNcy+Lqbs8ka7BELZrFNjon1bldnsZ98GMTvSQvn9vOZ6 kaQgkukd6pydOVL5oLO2/BVdzSUQ7kmd43n5vaO6Eq7YrQ2HXGmqytFoRlYjPP1VWktV Kgx/uIivKNx8QF0QRhPP/iEgP482p+ynbfXjad3P219JoMSBZ2kxXlQR9O0iXw8LKh5e 2n1b3+nIMzEIhJ0N9uO5mLBWLvJQcmrcimjrqkX1mNG122wOfKbBDiwzIDkZBIvi/m8r eZpw== X-Gm-Message-State: AC+VfDwqokLyXaTvHtb9N29Pg9NikImjJdULtygLZzyrNO5lDRc4SEfz rGOPihiJtK+fZyxI8pUMPwXWcasdZmN3IdTyLs7/xnzDu8L7ExrMnVLsWeI/61X9LUv8DOD5aZI NZ41RZJemT0g5w7PF5OMwazLGYIiUrKEd X-Received: by 2002:a6b:e308:0:b0:786:2878:9593 with SMTP id u8-20020a6be308000000b0078628789593mr819534ioc.0.1688071791750; Thu, 29 Jun 2023 13:49:51 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6xKHDlA0smrFl44a/e+yacmCPzvKHISZ+A7ODOaf0op5jZ2Yb52khHqsOAdLbSJHShkEpzeA== X-Received: by 2002:a6b:e308:0:b0:786:2878:9593 with SMTP id u8-20020a6be308000000b0078628789593mr819520ioc.0.1688071791492; Thu, 29 Jun 2023 13:49:51 -0700 (PDT) Received: from redhat.com ([38.15.36.239]) by smtp.gmail.com with ESMTPSA id p13-20020a02c80d000000b004249d9e81besm4041609jao.131.2023.06.29.13.49.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Jun 2023 13:49:51 -0700 (PDT) Date: Thu, 29 Jun 2023 14:49:49 -0600 From: Alex Williamson To: Linus Torvalds Cc: "linux-kernel@vger.kernel.org" , "kvm@vger.kernel.org" Subject: [GIT PULL] VFIO updates for v6.5-rc1 Message-ID: <20230629144949.07e6cd78.alex.williamson@redhat.com> Organization: Red Hat MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Linus, The following changes since commit 44c026a73be8038f03dbdeef028b642880cf1511: Linux 6.4-rc3 (2023-05-21 14:05:48 -0700) are available in the Git repository at: https://github.com/awilliam/linux-vfio.git tags/vfio-v6.5-rc1 for you to fetch changes up to ff598081e5b9d0bdd6874bfe340811bbb75b35e4: vfio/mdev: Move the compat_class initialization to module init (2023-06-27 12:05:26 -0600) ---------------------------------------------------------------- VFIO updates for v6.5-rc1 - Adjust log levels for common messages. (Oleksandr Natalenko, Alex Williamson) - Support for dynamic MSI-X allocation. (Reinette Chatre) - Enable and report PCIe AtomicOp Completer capabilities. (Alex Williamson) - Cleanup Kconfigs for vfio bus drivers. (Alex Williamson) - Add support for CDX bus based devices. (Nipun Gupta) - Fix race with concurrent mdev initialization. (Eric Farman) ---------------------------------------------------------------- Alex Williamson (5): vfio/pci: Also demote hiding standard cap messages vfio/pci-core: Add capability for AtomicOp completer support vfio/pci: Cleanup Kconfig vfio/platform: Cleanup Kconfig vfio/fsl: Create Kconfig sub-menu Eric Farman (1): vfio/mdev: Move the compat_class initialization to module init Nipun Gupta (1): vfio/cdx: add support for CDX bus Oleksandr Natalenko (1): vfio/pci: demote hiding ecap messages to debug level Reinette Chatre (11): vfio/pci: Consolidate irq cleanup on MSI/MSI-X disable vfio/pci: Remove negative check on unsigned vector vfio/pci: Prepare for dynamic interrupt context storage vfio/pci: Move to single error path vfio/pci: Use xarray for interrupt context storage vfio/pci: Remove interrupt context counter vfio/pci: Update stale comment vfio/pci: Use bitfield for struct vfio_pci_core_device flags vfio/pci: Probe and store ability to support dynamic MSI-X vfio/pci: Support dynamic MSI-X vfio/pci: Clear VFIO_IRQ_INFO_NORESIZE for MSI-X MAINTAINERS | 7 + drivers/vfio/Kconfig | 1 + drivers/vfio/Makefile | 5 +- drivers/vfio/cdx/Kconfig | 17 ++ drivers/vfio/cdx/Makefile | 8 + drivers/vfio/cdx/main.c | 234 +++++++++++++++++++++++++++ drivers/vfio/cdx/private.h | 28 ++++ drivers/vfio/fsl-mc/Kconfig | 6 +- drivers/vfio/mdev/mdev_core.c | 23 +-- drivers/vfio/pci/Kconfig | 8 +- drivers/vfio/pci/hisilicon/Kconfig | 4 +- drivers/vfio/pci/mlx5/Kconfig | 2 +- drivers/vfio/pci/vfio_pci_config.c | 8 +- drivers/vfio/pci/vfio_pci_core.c | 46 +++++- drivers/vfio/pci/vfio_pci_intrs.c | 305 ++++++++++++++++++++++++------------ drivers/vfio/platform/Kconfig | 18 ++- drivers/vfio/platform/Makefile | 9 +- drivers/vfio/platform/reset/Kconfig | 2 + include/linux/cdx/cdx_bus.h | 1 - include/linux/mod_devicetable.h | 6 + include/linux/vfio_pci_core.h | 26 +-- include/uapi/linux/vfio.h | 18 +++ scripts/mod/devicetable-offsets.c | 1 + scripts/mod/file2alias.c | 17 +- 24 files changed, 654 insertions(+), 146 deletions(-) create mode 100644 drivers/vfio/cdx/Kconfig create mode 100644 drivers/vfio/cdx/Makefile create mode 100644 drivers/vfio/cdx/main.c create mode 100644 drivers/vfio/cdx/private.h