From mboxrd@z Thu Jan 1 00:00:00 1970 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ventanamicro.com header.i=@ventanamicro.com header.b="jhfbCnyx" 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-Google-Smtp-Source: AGHT+IF8fQXbP1BRpg30Hrn1hWWnXwz5MlDf/25VLJggd7Wh/H7izjD31EsFPbs3NtBzMgPs/Zvg8Q== 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