Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp3670214rwo; Mon, 24 Jul 2023 14:59:14 -0700 (PDT) X-Google-Smtp-Source: APBJJlFvKDfgxig/SEcZcVM1muWJ93IDnIR90udWKq/wcnRA9NrZwlI8uxxXty19EMXR2mC/Vt9z X-Received: by 2002:a05:6a20:3243:b0:12e:61a1:a298 with SMTP id hm3-20020a056a20324300b0012e61a1a298mr7966236pzc.20.1690235954159; Mon, 24 Jul 2023 14:59:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690235954; cv=none; d=google.com; s=arc-20160816; b=odaNVNgHTT4VIavj/aewhScU7vFvEBoIVWnYPq72HPVL2TjHjcGPzjTQXB7mdNbU08 ouJHXTaZ4xEa+DS3kRNk/LIoBYILTYWHCxLAsz3dH4XcCG/7ZgzTHv1Y2RXPHOMRC5hN 4gZw3VKlsd9CeikMR5bDJiWbaCyxpdBWb6LRCHBi3JvWjiyJgkNKI0cq9KcQrVi512Q+ dwATz0Ucjk4pU/wSKIERj5s2xeoaQzO3d/10zoDiKk3j0fFWKd28siy1lECBiFA8yr5B Qeh0ICN7k76tHE6JGUJGo0KtHo6l/wvreQkXy0JU2CGXSxWECoCydhaZEPI/qMmRKaU+ SFnQ== 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=YkoRbeLVaVK30ciGHcNJcByjOt3PGpem+NftI6TFNug=; fh=hqOfIr0DLtMh2BUB+8Hau1Uv1wBX0Lhbyl6gRJW6F4E=; b=JpC0lqBhmydc8sKM1jgqF4iLxfQ0eCqOL/gkEqlPnvO9nPQnDxhFm4Uzi/awaPi0B2 F+3Mmo0AyM7vr7UZ2D57M0xTX6U8/r6HBZuQWvNa7YaE4w5cyuDR5viWPS4Ph4nhdO2W G9Te6oEPr5hE90ATNHruqqjvOZ77pfvIjG+sYKfVwD3pd/TeOYO+dKYo4LvPZO8ugScH AZZcYOPEJyzmR1rfyz1u5vdVuSxvbFk/xSeD4mXum1KCLN5K7Fw0vz2XijAJxDkgeAO+ +kmhtL2y05XuEiWBln8gTbbAck6hxChBX6KCw5lOODxzIdrtG5GH+wYNHah+NUFIuOEp PkqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=gjrW1OZd; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x10-20020a056a00188a00b0067dd7254cb0si10119398pfh.39.2023.07.24.14.59.02; Mon, 24 Jul 2023 14:59:14 -0700 (PDT) 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=@infradead.org header.s=desiato.20200630 header.b=gjrW1OZd; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231181AbjGXVW1 (ORCPT + 99 others); Mon, 24 Jul 2023 17:22:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231145AbjGXVW0 (ORCPT ); Mon, 24 Jul 2023 17:22:26 -0400 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0FB7D1729; Mon, 24 Jul 2023 14:22:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=YkoRbeLVaVK30ciGHcNJcByjOt3PGpem+NftI6TFNug=; b=gjrW1OZdmJmEIUIHsMoQ9NLXlt 5TN51EkVi4D2IjYFQjbBd6KPjHM5/R5f0CdIV5SVdJo4uflMwoEnPBIIlPdwbuqT6hVRrCL8WLhCC Of1I9zYIK+NrVBQgKiD8gCpWgQbIHhY1/f+RlfXphreES7ysccFAXuWSd+jcsaTH6L8kqiCfNM0Rx +nCKXU1QyJhWvS+HpVaXAwf9pw32OyxhHOXQOSn0GySakA63foLAYybpoz/OVJY9UrHaLInrgcuex kLpl3ciZ1RR6w63rYlmga4MBc+5MnEWNDGPRj2TVZP16s8CfguU+JFvcFl7OV6qimdJTQUZ4FI8C1 +KdbziFQ==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1qO303-002id3-2b; Mon, 24 Jul 2023 21:21:56 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 1EA1F300579; Mon, 24 Jul 2023 23:21:51 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 07BDA265C4A2D; Mon, 24 Jul 2023 23:21:51 +0200 (CEST) Date: Mon, 24 Jul 2023 23:21:50 +0200 From: Peter Zijlstra To: Sean Christopherson Cc: Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, Paolo Bonzini , linux-kernel@vger.kernel.org, kvm@vger.kernel.org, Andrew Cooper , Kai Huang , Chao Gao Subject: Re: [PATCH v4 14/19] KVM: SVM: Check that the current CPU supports SVM in kvm_is_svm_supported() Message-ID: <20230724212150.GH3745454@hirez.programming.kicks-ass.net> References: <20230721201859.2307736-1-seanjc@google.com> <20230721201859.2307736-15-seanjc@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230721201859.2307736-15-seanjc@google.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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 Fri, Jul 21, 2023 at 01:18:54PM -0700, Sean Christopherson wrote: > Check "this" CPU instead of the boot CPU when querying SVM support so that > the per-CPU checks done during hardware enabling actually function as > intended, i.e. will detect issues where SVM isn't support on all CPUs. Is that a realistic concern?