From patchwork Fri Jun 2 21:33:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Williamson X-Patchwork-Id: 13265863 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 81AD0C77B7A for ; Fri, 2 Jun 2023 21:34:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236020AbjFBVe0 (ORCPT ); Fri, 2 Jun 2023 17:34:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42312 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234676AbjFBVeZ (ORCPT ); Fri, 2 Jun 2023 17:34:25 -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 5B41619B for ; Fri, 2 Jun 2023 14:33:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1685741619; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=eiFr82ELAUqwoWKkAFiDOZ32c9riR0LTidkMAM8JY10=; b=JuGJbCuPnqnzcXpD48/VPwV4oplo1dcVb9ucMdoUnVQNRMSaMKw+jerkn/x9IAFpOSOuCe e51kjPPcUcOdj+yJi20xwxAM2vzYtZmrWTxjeLUDyn9CbNRWXuH/lCi5ytu4iwLinPhg5X PqnG+YwRzuAVNIZNBzQkLkZYXfDTCNw= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-80-26oQA8nWMcSsPc2OzjCsdQ-1; Fri, 02 Jun 2023 17:33:36 -0400 X-MC-Unique: 26oQA8nWMcSsPc2OzjCsdQ-1 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id BE5A98007D9; Fri, 2 Jun 2023 21:33:35 +0000 (UTC) Received: from omen.home.shazbot.org (unknown [10.22.33.254]) by smtp.corp.redhat.com (Postfix) with ESMTP id E2887492B00; Fri, 2 Jun 2023 21:33:34 +0000 (UTC) From: Alex Williamson To: kvm@vger.kernel.org Cc: Alex Williamson , jgg@nvidia.com, clg@redhat.com, eric.auger@redhat.com, diana.craciun@oss.nxp.com, liulongfang@huawei.com, shameerali.kolothum.thodi@huawei.com, yishaih@nvidia.com, kevin.tian@intel.com Subject: [PATCH 0/3] vfio: Cleanup Kconfigs Date: Fri, 2 Jun 2023 15:33:12 -0600 Message-Id: <20230602213315.2521442-1-alex.williamson@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.9 Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org Create sub-menus for bus drivers and remove artificial dependencies between vfio-pci and vfio-platform and other variant drivers like vfio-amba, mlx5-vfio-pci, or hisi-acc-vfio-pci. This is an alternative proposal vs [1], which attempts to make the vfio-pci-core module individually selectable, even without built dependencies, in order to avoid the select per variant module. The solution presented here is my preference, I don't see the select as overly burdensome or error prone, we have very good randconfig test coverage, and I prefer to not allow building module which have no in-kernel requirements. Thanks, Alex [1]https://lore.kernel.org/all/0-v1-7eacf832787f+86-vfio_pci_kconfig_jgg@nvidia.com/ Alex Williamson (3): vfio/pci: Cleanup Kconfig vfio/platform: Cleanup Kconfig vfio/fsl: Create Kconfig sub-menu drivers/vfio/Makefile | 4 ++-- drivers/vfio/fsl-mc/Kconfig | 4 ++++ drivers/vfio/pci/Kconfig | 8 ++++++-- drivers/vfio/pci/hisilicon/Kconfig | 4 ++-- drivers/vfio/pci/mlx5/Kconfig | 2 +- drivers/vfio/platform/Kconfig | 17 ++++++++++++++--- drivers/vfio/platform/Makefile | 9 +++------ 7 files changed, 32 insertions(+), 16 deletions(-)