Received: by 2002:a05:7412:98c1:b0:fa:551:50a7 with SMTP id kc1csp35088rdb; Fri, 5 Jan 2024 01:37:34 -0800 (PST) X-Google-Smtp-Source: AGHT+IH9zZylEznGSkdErAN6+oRMVWsv3nUea3WbxUEs5WcRPAY2bDm40ztgAIyCDKOxLhhQadYw X-Received: by 2002:a17:906:798:b0:a23:6fc5:fdff with SMTP id l24-20020a170906079800b00a236fc5fdffmr480152ejc.183.1704447454003; Fri, 05 Jan 2024 01:37:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704447453; cv=none; d=google.com; s=arc-20160816; b=znyldE80F7YKZ9MCyvDCGjmm2pjz5yDlKZb4+2LpE/8Itp+uJhfyjNa+zf8+RN7yI2 1z7228BSnfVkoWsa9mMsY/o4h+lDrhI8lS/UyACQIGoUes0mGbzyJQN9i9rwxhoro4oU xT9+QwkgYPWgxpfUS1dVP8qoVhXRdwSNlPaYOMmIyWiIXjDtE+7EEqXbmi8rX1uQ5e86 NfE8MhPHkLc05aa3C0gMnWy+kyonjW/vFcjXeH5PK4sjuCGTvOvpElVB54l0d8bcPSwq a7b+J2BmyuWnef4g+fsZ2Q0fPxl9lIuAI9i0pzNC8yDWgsZryC10kZs5prTgqdWkVPnN 6UDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=T8Qc+DAOtmpEj+ygGinAvQ01y6FiLQ/IoAOtnKnganw=; fh=lHJvsb5Xio+XSXuzkn2gawhVzi2spSlrMVggoiV67uM=; b=W78gqkTkHCDDzYOpAFW05Q9kkYqebCjTMFUcISuIlLt3xVO38mHbZ0oP/gJvFB1vc0 cwnIHgpuvLouig0yMS++Phe7uivNWUxjassui3zscD1pv1sDxOxm+z1ENBG9Gr0GWkdU 0hfq7TjD4md6wu3Kly1zZdS1idwM8nA5Z66uSXyszhiqXRygiPSj4gtizvUrHfvAo8/Z SnnSo0zbHN/e8Tb9RjsVznNxaUHSZY2ZetYluvyMyqU8bm2X5flFs3dKru+CNYa/n0+A cNr2sp/wF81b5LDrE5BHHKTe8Vbj2EnZi4X1TwszZOIJXTlG1mQ7X0aT+SceHBXpux/Z mwIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=jhfbCnyx; spf=pass (google.com: domain of linux-kernel+bounces-17667-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-17667-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id r26-20020a170906351a00b00a239a5662eesi436606eja.367.2024.01.05.01.37.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jan 2024 01:37:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-17667-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=@ventanamicro.com header.s=google header.b=jhfbCnyx; spf=pass (google.com: domain of linux-kernel+bounces-17667-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-17667-linux.lists.archive=gmail.com@vger.kernel.org" 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 B559D1F21A54 for ; Fri, 5 Jan 2024 09:37:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 82964241E7; Fri, 5 Jan 2024 09:37:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ventanamicro.com header.i=@ventanamicro.com header.b="jhfbCnyx" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ej1-f52.google.com (mail-ej1-f52.google.com [209.85.218.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3440B241F4 for ; Fri, 5 Jan 2024 09:37:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ventanamicro.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ventanamicro.com Received: by mail-ej1-f52.google.com with SMTP id a640c23a62f3a-a28b1095064so161404566b.2 for ; Fri, 05 Jan 2024 01:37:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1704447442; x=1705052242; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=T8Qc+DAOtmpEj+ygGinAvQ01y6FiLQ/IoAOtnKnganw=; b=jhfbCnyxDD+caE9biJ1d+jAPwh4HJn9SS9T371H4jpTeYi/Wb943n0RqstVkaVdou5 08Za9d8v13m3MFM2XDqdt3ocNd2HMaoTNoEdEa86gCkrHcrabNxBqG5viZYE5+/58joU 3oXSJjan+mhOvV26yUFaJ68jnx+MFrnsMFyPXPijy9gaqePdWZIYHeYVC+hgDwAfq0I5 JCYNpIXmy4tAtl7pnU+dkW6OwCngUyYF/DpFweqS0m/nyKF7w6tqMKvU6XWFG3bMPfY9 Q/7LG1YrNhxLQjEcjo2/RvnC/s/mjbtv5mZvdlDalseIC5rs8aujnmYcQDDkG901j1wK WQmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704447442; x=1705052242; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=T8Qc+DAOtmpEj+ygGinAvQ01y6FiLQ/IoAOtnKnganw=; b=oSW+2Ako+/2QVWM7PQ0YPrLv6x0ANJqVTFDxJcAf56uf1uLrAbnO3HRCMROHLnuCGR kEW/OnuP+bvI7/1/D0oHBNpoWZv25ilbedQ2Ai507pj5KpoXBZoBOkkmj/X/+n31Rs1p ytVHeQDmesxDerxJ2SceKqBTjBmAFA8QmB6+FBnNfWFT55BnZipTQRTI8RWeKEVN4DQj xf9GoEYxA17519ojfD0lNN0xSddmEu0aERa/TehiMLnjrFFKd95zUENRDLNvnAn05Y4v gKn82FAMLxihl6n30U5NtOQjZrNZQhQaQxzX8xwBeG6fPMMW414tKDT2lGrPI3dE4dDN JwZg== X-Gm-Message-State: AOJu0YzyH8uds35Ef7wCUk+A9qQuAYa3+3u4pqWMxvMKG5pKs+jmZQyz IO4bmy1QTuOvgbjlCfVmXEU1eCHHdCs4Bg== X-Received: by 2002:a17:906:54e:b0:a28:b34d:8693 with SMTP id k14-20020a170906054e00b00a28b34d8693mr477120eja.186.1704447442355; Fri, 05 Jan 2024 01:37:22 -0800 (PST) Received: from localhost (2001-1ae9-1c2-4c00-20f-c6b4-1e57-7965.ip6.tmcz.cz. [2001:1ae9:1c2:4c00:20f:c6b4:1e57:7965]) by smtp.gmail.com with ESMTPSA id u16-20020a170906409000b00a28a7f56dc4sm675313ejj.188.2024.01.05.01.37.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jan 2024 01:37:22 -0800 (PST) Date: Fri, 5 Jan 2024 10:37:21 +0100 From: Andrew Jones To: Paolo Bonzini Cc: linux-kernel@vger.kernel.org, kvm@vger.kernel.org Subject: Re: [PATCH 1/4] KVM: introduce CONFIG_KVM_COMMON Message-ID: <20240105-f3084386048af455001fd2e3@orel> References: <20240104205959.4128825-1-pbonzini@redhat.com> <20240104205959.4128825-2-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; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240104205959.4128825-2-pbonzini@redhat.com> On Thu, Jan 04, 2024 at 03:59:56PM -0500, Paolo Bonzini wrote: > CONFIG_HAVE_KVM is currently used by some architectures to either > enabled the KVM config proper, or to enable host-side code that is > not part of the KVM module. However, the "select" statement in > virt/kvm/Kconfig corresponds to a third meaning, namely to > enable common Kconfigs required by all architectures that support > KVM. > > 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". > > Start by introducing such a new Kconfig symbol, CONFIG_KVM_COMMON. > Unlike CONFIG_HAVE_KVM, it is selected by CONFIG_KVM, not by > architecture code. > > Fixes: 8132d887a702 ("KVM: remove CONFIG_HAVE_KVM_EVENTFD", 2023-12-08) > Cc: Andrew Jones > Signed-off-by: Paolo Bonzini > --- > arch/arm64/kvm/Kconfig | 1 + > arch/loongarch/kvm/Kconfig | 1 + > arch/mips/kvm/Kconfig | 1 + > arch/powerpc/kvm/Kconfig | 1 + > arch/riscv/kvm/Kconfig | 1 + > arch/s390/kvm/Kconfig | 1 + > arch/x86/kvm/Kconfig | 1 + > virt/kvm/Kconfig | 3 +++ > 8 files changed, 10 insertions(+) Reviewed-by: Andrew Jones