Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp4655563rwb; Tue, 17 Jan 2023 03:56:03 -0800 (PST) X-Google-Smtp-Source: AMrXdXt0liAQ6MFmIcHhgoB0u2450wn4aA0r4z9AHQBWoGpOJcTrStUsZCQCt9e+bM6NBxydJmVF X-Received: by 2002:a17:906:7d5:b0:86d:9e43:e59 with SMTP id m21-20020a17090607d500b0086d9e430e59mr2419923ejc.39.1673956563529; Tue, 17 Jan 2023 03:56:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673956563; cv=none; d=google.com; s=arc-20160816; b=BUWWnFDlwBG2VIfk9/qvcmB2xGgQvfNBePmDPcnTnISqXsv8dVpciOGjZ0omXLsAjv DJ1DlAkRm7/5pNm+SFwGHCsjRVRbrcfsHjsyPua9iqpYOSCIsIwe0CWZ+5e4nvsssp89 0YmSlxLcf4y6hg2CX2ydXlnhnra4L7LLsKYYSNI40esPplkU5VAdA5nA/6wc0JG3qtDv KZmOnBUtcmZdQF+6JLmjDgl9/0EtOBOqOR7Dp6g7qcoO1eMIOiwDwKikjh++KnEyX5oK N2qZyNaSwZOMw6ZT8I53gLkkLgQEiHRnRoHzJO9+pxIMZXsJtaZohrNFlK9QZIII42tA eBqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=6Itw1OHFz0br39PARy1fRPJ5MAUgeBmrd/8uIbIJqow=; b=S5k6tNadBeOuO09373Kyfsy87s7o08p9CxneLcSyk8dHMchK/5d5F19TUHKUiyYxku gmELOVY595gISxVDvdhIu7ceBsbvAMRqwAwW/lALg0KbvnPk18JKOGwhsW66waciNxxM A/iLxHZ1Iy3Y1DEQ9AI8kDKicCyFggwFXm1MRC/uz7fMC/lgOgfwNqR0aqwVnlaTrWj0 K6G9eUkymK7FcsE8eUrHcJDUxEpeXJdyNARvOyzWHK0leAaMpr4eQSmVU3ySce+hrVR1 NLY7I9K+v9e9bwTHJTWsNQJc+Su1UkE/ldg24HR/dDzFabpkqT0+VvW4Uu0CZnYG+4Us cpJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=RTiB0ts8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cr11-20020a170906d54b00b008626e197ab9si20073704ejc.690.2023.01.17.03.55.51; Tue, 17 Jan 2023 03:56:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=RTiB0ts8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235796AbjAQLeb (ORCPT + 48 others); Tue, 17 Jan 2023 06:34:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48188 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236507AbjAQLeE (ORCPT ); Tue, 17 Jan 2023 06:34:04 -0500 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 94CD53864B; Tue, 17 Jan 2023 03:33:30 -0800 (PST) Received: from zn.tnic (p5de8e9fe.dip0.t-ipconnect.de [93.232.233.254]) (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 D4B9D1EC052A; Tue, 17 Jan 2023 12:33:28 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1673955208; 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=6Itw1OHFz0br39PARy1fRPJ5MAUgeBmrd/8uIbIJqow=; b=RTiB0ts8PHjDtfhbv05gXpopg0WvHnZ1wBaQe8q/Yy5zDTlUHeM6iwVkd+LLo/drXpwr62 9j5xWfh6mN9X/OB5oyx+3nCV7S6aaRCCgcH5st2q/5DHps7xKqXjeTHADI07HTAHEr4P6B GyVLY49jfo/H7BZ/bovHmarfqAxz+14= Date: Tue, 17 Jan 2023 12:33:24 +0100 From: Borislav Petkov To: Kim Phillips Cc: x86@kernel.org, Boris Ostrovsky , Dave Hansen , "H. Peter Anvin" , Ingo Molnar , Joao Martins , Jonathan Corbet , Konrad Rzeszutek Wilk , Paolo Bonzini , Sean Christopherson , Thomas Gleixner , David Woodhouse , Greg Kroah-Hartman , Juergen Gross , Peter Zijlstra , Tony Luck , Tom Lendacky , Alexey Kardashevskiy , kvm@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v7 3/7] x86/cpu, kvm: Move the LFENCE_RDTSC / LFENCE always serializing feature Message-ID: References: <20230116230159.1511393-1-kim.phillips@amd.com> <20230116230159.1511393-4-kim.phillips@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20230116230159.1511393-4-kim.phillips@amd.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 16, 2023 at 05:01:55PM -0600, Kim Phillips wrote: > The LFENCE_RDTSC / LFENCE always serializing feature was a scattered bit > and open-coded for KVM in __do_cpuid_func(). Add it to its newly added > CPUID leaf 0x80000021 EAX proper, and propagate it in kvm_set_cpu_caps() > instead. Drop the bit description comments now it's more self-describing. > > Also, in amd_init(), don't bother setting DE_CFG[1] any more if we already For the future, please use passive voice in your commit message: no "we" or "I", etc, and describe your changes in imperative mood. Personal pronouns are ambiguous in text, especially with so many parties/companies/etc developing the kernel so let's avoid them please. I'll fix it up now. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette