Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7948832rdb; Thu, 4 Jan 2024 13:00:43 -0800 (PST) X-Google-Smtp-Source: AGHT+IHhCcp8MwF/LZrHSofjddc5aGnuF6YGlb+vf/kwGPgywwzcn0h8Q6k6r5pqPHGNNJMyZp2+ X-Received: by 2002:a50:d6c5:0:b0:554:4d00:1350 with SMTP id l5-20020a50d6c5000000b005544d001350mr735578edj.16.1704402043225; Thu, 04 Jan 2024 13:00:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704402043; cv=none; d=google.com; s=arc-20160816; b=j0zddrUfP+t0mV5ngW2iXPmLVV/Osx4l67BE2VW/4FJOxaCdDvIjlCp1GHvtFkVJpl qPHx5YIgAxCROn6webdp3y6HG87wWYocKNU793HX5mf+/7yNIqNhsT+WzpQ4fAtebD4r hfrNkA5wSjn88EQmVrG4PVDfFx7BZXvNWH7CBcCM9NEm7RnfnTcgyDlSE7rFnDLJbbkR 6fPZy2hc0dp+yIhHdK3vKZr+sMLuOoyb7DH81EaW1bz6Lid1hxKf6njyM0BYiP8eTniQ nCVPAcHldTdsZfln8rNXWV7m14DoyrvD0kIJ6bwKKfGmm1mgENXgKFo1Psz6cvaq7d7B vr2Q== 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=O+nTqWfxAs5egWeWSamTaC98/2rprnp2o0jYIMLBSrc=; fh=mVqOf4QoFHEdvv8AgjdE6npZZIzmFrmskwaaxWUCqz8=; b=ZiJfXQzSLnc733YPuma0hav15LUMWytBulVqPsjIi3oH/z9JiPCxDNOOaoActkhHKK WfWE+P3YU+SrFtDe48YvS7trof156EsIVExCgbaJZqi867nIzEo3W+MYJKJzlQOqPCnZ Gm5cDPGDNCwTaxk0aEsuPqqIjdOBr+Vq+wLYGiXadMYVxRZDdFbuD1oV3l1bLFEeWxqS 5q9V0Gow91W4pqm8IPXcnvkMtgOQnv/n9/R3rylPsLzcQCXnJOWgzt/ADpTGffF3OhIf BPRPLZ1j6kAPRnbZRUepwZ389eiPwElXlM68f3/9n6p2RUD33CTlmM5XTj2qrAdy0qug uFSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Dszp85vl; spf=pass (google.com: domain of linux-kernel+bounces-17214-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-17214-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id g16-20020a0564021ed000b00557039aa169si103243edg.76.2024.01.04.13.00.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jan 2024 13:00:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-17214-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Dszp85vl; spf=pass (google.com: domain of linux-kernel+bounces-17214-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-17214-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 am.mirrors.kernel.org (Postfix) with ESMTPS id E0A6D1F24AD7 for ; Thu, 4 Jan 2024 21:00:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 67A792C866; Thu, 4 Jan 2024 21:00:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="Dszp85vl" 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 304F02C197 for ; Thu, 4 Jan 2024 21:00:04 +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=1704402003; 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=O+nTqWfxAs5egWeWSamTaC98/2rprnp2o0jYIMLBSrc=; b=Dszp85vlXcX64hxfTE911WX4eXOLA2QTLBGspnTVbSzUgqabrz+8b5t5eilUswvKkV/8V+ KqM1oScAqjkkdMNNRfrFZw/NRHO/zU0U+m6yphPoo2/4FrAzBl0eziaLkiUzztR81PyUdg ldF8FTbPvOvRZEHFfRMGPv4IgkqpLIs= 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-568-uHN8fklkP_-yWiSAiu-pGQ-1; Thu, 04 Jan 2024 16:00:00 -0500 X-MC-Unique: uHN8fklkP_-yWiSAiu-pGQ-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (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 1A90729AA3BB; Thu, 4 Jan 2024 21:00:00 +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 9E70A1121306; Thu, 4 Jan 2024 20:59:59 +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 0/4] Replace CONFIG_HAVE_KVM with more appropriate symbols. Date: Thu, 4 Jan 2024 15:59:55 -0500 Message-Id: <20240104205959.4128825-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.3 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 can be quickly applied to 6.8 to fix this build failure, while the rest can be delayed to the early -rc period or 6.9 if desired. Paolo Paolo Bonzini (4): KVM: introduce CONFIG_KVM_COMMON 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 | 2 +- arch/loongarch/Kconfig | 1 - arch/loongarch/kvm/Kconfig | 2 +- arch/mips/Kconfig | 18 +++++++++--------- arch/mips/kvm/Kconfig | 3 ++- arch/powerpc/kvm/Kconfig | 1 + arch/riscv/kvm/Kconfig | 1 + arch/s390/Kconfig | 1 - arch/s390/kvm/Kconfig | 2 +- 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 | 3 +-- 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 | 2 +- 24 files changed, 35 insertions(+), 33 deletions(-) -- 2.39.1