Received: by 2002:a05:7412:98c1:b0:fa:551:50a7 with SMTP id kc1csp1602881rdb; Mon, 8 Jan 2024 04:52:20 -0800 (PST) X-Google-Smtp-Source: AGHT+IEp4/7QF+cX6X7nk+lLOJNN9CtXc8qXAuLng/CiSHOnAj15owyIZqrWMwpx1Ha4wFqGdIJ5 X-Received: by 2002:a17:902:c403:b0:1d5:1476:d494 with SMTP id k3-20020a170902c40300b001d51476d494mr3822859plk.10.1704718339785; Mon, 08 Jan 2024 04:52:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704718339; cv=none; d=google.com; s=arc-20160816; b=jDFm+SNBURWnrkjK7kyAxc352tLvrujdkyMKqywK1xxgTDyKTa5WkL49+JARY3WV0Y ehep/4FcaPwC9FW5h3Sie5nJ2fJM2aG7tUu7LQLARrZyPs82gFD9Ip/voI9zaoDbDIZO fxa+srr0ze/+DLbGlxd/CNm/Ghp0vD3jUgHl8k7RBHYSB0LKJT2uAorPK2uX99wcPZzQ A6Oor/13DUC7yTxHrmaEfMBWNwFT2Qu+XjQhFrmayv/L+aLqPFuSbXi0kYcZ4raaa/IA PidfAwZT8lzCxPLEFj3/5aLIfgI/nGZKhB0331rw3AGp9R63og8hcqK372cpWo9jHXzZ jQ+g== ARC-Message-Signature: i=1; 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:date:subject:cc:to :from:dkim-signature; bh=w0Q64qRS24vLSDJ2TMtwfrBRVHYfXw6VdqdfXhfOLyM=; fh=mVqOf4QoFHEdvv8AgjdE6npZZIzmFrmskwaaxWUCqz8=; b=MIX3AUK2+E+mGhGiManBwL61GxdXG/1WDfaE5f/E1efkF01P+rfXXgDr9EhGpC0YSf x/E1MMSBkrNTUVN5Mdl/v39CPnXxk6COhKvuevqc28vFP/UJB9JOKSVKgOfkDzRODtGk D34Lt8LIwil9ZxeazQjnolMvceMHt6M58grpFoz7WZv0mlbqycL/RtZeuZZHnCiEbNH4 y9EKTyj0KE4KEPf9YYMB69AzxBBlLjgN7YKduNB3bfIhspyeXIPXmGRODAtuDR292dry Z3bxsoL5Bc6s4Z/y6WjB74BQ+8eS+GIYidGB9HJvD6frfdlmqmbc+W9uKvXEjvft2A/X HWSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=i65zGesh; spf=pass (google.com: domain of linux-kernel+bounces-19571-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19571-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. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id n3-20020a170903110300b001d3a096d324si6017083plh.380.2024.01.08.04.52.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 04:52:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-19571-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=i65zGesh; spf=pass (google.com: domain of linux-kernel+bounces-19571-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19571-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 6BF392830C7 for ; Mon, 8 Jan 2024 12:52:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 71D0947772; Mon, 8 Jan 2024 12:47:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="i65zGesh" X-Original-To: linux-kernel@vger.kernel.org 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 308CA46425 for ; Mon, 8 Jan 2024 12:47:47 +0000 (UTC) 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=1704718067; 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=w0Q64qRS24vLSDJ2TMtwfrBRVHYfXw6VdqdfXhfOLyM=; b=i65zGesh/3ClDPMSZTb2U+WILQK9u20alZvIq0XN0ZuOxElUQD3T7rHj+0XJ/VNwxiMjnI fxwn6nsDdJbx0sKNr2FoDRh0UtJU7QLXehv3pW4oEYP/KOQ2sdJzZ0u49fT6LOlML9agaS 5yBEBu+iclsoLicB8kk5qKi30pO3JhI= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-404-XO9vZfuYOtOcTfuPGANvng-1; Mon, 08 Jan 2024 07:47:41 -0500 X-MC-Unique: XO9vZfuYOtOcTfuPGANvng-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 49AA23C2AF72; Mon, 8 Jan 2024 12:47:41 +0000 (UTC) Received: from virtlab701.virt.lab.eng.bos.redhat.com (virtlab701.virt.lab.eng.bos.redhat.com [10.19.152.228]) by smtp.corp.redhat.com (Postfix) with ESMTP id CCCF03C39; Mon, 8 Jan 2024 12:47:40 +0000 (UTC) From: Paolo Bonzini To: linux-kernel@vger.kernel.org, kvm@vger.kernel.org Cc: ajones@ventanamicro.com, Thomas Bogendoerfer , Alex Williamson , x86@kernel.org, kbingham@kernel.org Subject: [PATCH v2 0/5] Replace CONFIG_HAVE_KVM with more appropriate symbols. Date: Mon, 8 Jan 2024 07:47:35 -0500 Message-Id: <20240108124740.114453-1-pbonzini@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.1 CONFIG_HAVE_KVM is currently used with three meanings: - some architectures use it to enabled the KVM config proper, depending on CPU capabilities (MIPS) - some architectures use it to enable host-side code that is not part of the KVM module (x86) - to enable common Kconfigs required by all architectures that support KVM, currently CONFIG_EVENTFD These three meanings can be replaced respectively by an architecture- specific Kconfig, by IS_ENABLED(CONFIG_KVM), or by a new Kconfig symbol that is in turn selected by the architecture-specific "config KVM". This is what each of the first three patches does. After this, CONFIG_HAVE_KVM is unused and can be removed. This fixes architectures (PPC and RISC-V) that do not have CONFIG_HAVE_KVM=y and therefore fail to select CONFIG_EVENTFD. Patch 1, and probably patch 2 too, will be quickly applied to 6.8 to fix this build failure. The rest can be delayed to the early -rc period, or 6.9 if desired. Paolo Paolo Bonzini (5): KVM: introduce CONFIG_KVM_COMMON KVM: fix direction of dependency on MMU notifiers MIPS: introduce Kconfig for MIPS VZ x86, vfio, gdb: replace CONFIG_HAVE_KVM with IS_ENABLED(CONFIG_KVM) treewide: remove CONFIG_HAVE_KVM arch/arm64/Kconfig | 1 - arch/arm64/kvm/Kconfig | 4 +--- arch/loongarch/Kconfig | 1 - arch/loongarch/kvm/Kconfig | 3 +-- arch/mips/Kconfig | 18 +++++++++--------- arch/mips/kvm/Kconfig | 5 ++--- arch/powerpc/kvm/Kconfig | 3 +-- arch/riscv/kvm/Kconfig | 2 +- arch/s390/Kconfig | 1 - arch/s390/kvm/Kconfig | 4 +--- arch/x86/Kconfig | 1 - arch/x86/include/asm/hardirq.h | 2 +- arch/x86/include/asm/idtentry.h | 2 +- arch/x86/include/asm/irq.h | 2 +- arch/x86/include/asm/irq_vectors.h | 2 +- arch/x86/kernel/idt.c | 2 +- arch/x86/kernel/irq.c | 4 ++-- arch/x86/kvm/Kconfig | 5 +---- drivers/vfio/vfio.h | 2 +- drivers/vfio/vfio_main.c | 4 ++-- scripts/gdb/linux/constants.py.in | 6 +++++- scripts/gdb/linux/interrupts.py | 2 +- tools/arch/x86/include/asm/irq_vectors.h | 2 +- virt/kvm/Kconfig | 6 ++++-- 24 files changed, 38 insertions(+), 46 deletions(-) -- 2.39.1