From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 62DF5C4332F for ; Fri, 18 Nov 2022 18:34:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242189AbiKRSey (ORCPT ); Fri, 18 Nov 2022 13:34:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235084AbiKRSeu (ORCPT ); Fri, 18 Nov 2022 13:34:50 -0500 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 88859CFD; Fri, 18 Nov 2022 10:34:49 -0800 (PST) Received: from zn.tnic (p200300ea9733e767329c23fffea6a903.dip0.t-ipconnect.de [IPv6:2003:ea:9733:e767:329c:23ff:fea6:a903]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 23A281EC058B; Fri, 18 Nov 2022 19:34:48 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1668796488; 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:in-reply-to:in-reply-to: references:references; bh=IRNpkgInD1hWPMl+Up82RhX78oxIwr/CjyDYln0i7xo=; b=hIh4/4UKXF/sKwRscaP38GgvzUi8bSIYMTqyPXF6lAF6qtCNIFoWfYcKDjr9qbrslk5Wqq 8l7mSvf13WH4fgnMO558k/hDCcNpD0v7imPvJxhaBD/T4bXyFRJdXvBfY7fnnMU3ksUny4 e6sJa++aNz4XhgdO9oA+fcsb76TBiiI= Date: Fri, 18 Nov 2022 19:34:47 +0100 From: Borislav Petkov To: Dave Hansen Cc: Jiaxi Chen , kvm@vger.kernel.org, tglx@linutronix.de, mingo@redhat.com, dave.hansen@linux.intel.com, x86@kernel.org, hpa@zytor.com, seanjc@google.com, pbonzini@redhat.com, ndesaulniers@google.com, alexandre.belloni@bootlin.com, peterz@infradead.org, jpoimboe@kernel.org, chang.seok.bae@intel.com, pawan.kumar.gupta@linux.intel.com, babu.moger@amd.com, jmattson@google.com, sandipan.das@amd.com, tony.luck@intel.com, sathyanarayanan.kuppuswamy@linux.intel.com, fenghua.yu@intel.com, keescook@chromium.org, nathan@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 1/6] x86: KVM: Advertise CMPccXADD CPUID to user space Message-ID: References: <20221118141509.489359-1-jiaxi.chen@linux.intel.com> <20221118141509.489359-2-jiaxi.chen@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org On Fri, Nov 18, 2022 at 08:47:55AM -0800, Dave Hansen wrote: > Also, do we *want* this showing up in /proc/cpuinfo? Yeah, I was wondering about that. Currently, we try to add feature bits to /proc/cpuinfo only when the kernel has done any enablement for them. For other needs, people should use tools/arch/x86/kcpuid/ If we say that adding those bits so that guests can export them doesn't count as a real enablement, then sure we can hide them initially. I wanna say yes here... -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette