From patchwork Thu Mar 14 14:30:30 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Bonzini X-Patchwork-Id: 10853033 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 693E713B5 for ; Thu, 14 Mar 2019 14:46:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 52FC42A4DE for ; Thu, 14 Mar 2019 14:46:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 46D352A521; Thu, 14 Mar 2019 14:46:46 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 01E752A4DE for ; Thu, 14 Mar 2019 14:46:45 +0000 (UTC) Received: from localhost ([127.0.0.1]:38943 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h4Rd7-0000SA-A5 for patchwork-qemu-devel@patchwork.kernel.org; Thu, 14 Mar 2019 10:46:45 -0400 Received: from eggs.gnu.org ([209.51.188.92]:36778) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h4RXe-0004TF-Ni for qemu-devel@nongnu.org; Thu, 14 Mar 2019 10:41:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h4RNW-0005dJ-W2 for qemu-devel@nongnu.org; Thu, 14 Mar 2019 10:30:39 -0400 Received: from mx1.redhat.com ([209.132.183.28]:35174) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h4RNW-0005cy-Nu for qemu-devel@nongnu.org; Thu, 14 Mar 2019 10:30:38 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id B5511307D785; Thu, 14 Mar 2019 14:30:37 +0000 (UTC) Received: from donizetti.redhat.com (ovpn-112-69.ams2.redhat.com [10.36.112.69]) by smtp.corp.redhat.com (Postfix) with ESMTP id CC62E60BE6; Thu, 14 Mar 2019 14:30:33 +0000 (UTC) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Thu, 14 Mar 2019 15:30:30 +0100 Message-Id: <20190314143032.16870-1-pbonzini@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.45]); Thu, 14 Mar 2019 14:30:37 +0000 (UTC) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH 0/2] kconfig: add fine-grained dependencies for MSI X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-riscv@gnu.org, thuth@redhat.com, David Abdurachmanov , abologna@redhat.com, mst@redhat.com Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP RISC-V targets did not include PCIe ports before the Kconfig transition, and grew them afterwards, but they are nonfunctional because the interrupt controller does not support MSI. This patch restores the situation prior to the introduction of Kconfig; in fact, it will automatically drop devices that require MSI unless the binary includes an MSI-enabled board. Paolo Paolo Bonzini (2): kconfig: add CONFIG_MSI kconfig: add dependencies on CONFIG_MSI Kconfig.host | 3 +++ Makefile | 3 ++- hw/Kconfig | 1 + hw/intc/Kconfig | 3 +++ hw/misc/Kconfig | 4 ++-- hw/net/Kconfig | 4 ++-- hw/pci-bridge/Kconfig | 6 +++--- hw/pci-host/Kconfig | 1 + hw/pci/Kconfig | 4 ++++ hw/ppc/Kconfig | 1 + hw/rdma/Kconfig | 3 +++ hw/rdma/Makefile.objs | 6 ++---- hw/s390x/Kconfig | 1 + 13 files changed, 28 insertions(+), 12 deletions(-) create mode 100644 hw/rdma/Kconfig Reviewed-by: Michael S. Tsirkin Reviewed-by: Alistair Francis