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 36980C433FE for ; Thu, 12 May 2022 15:47:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1356110AbiELPrx (ORCPT ); Thu, 12 May 2022 11:47:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55034 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1356102AbiELPro (ORCPT ); Thu, 12 May 2022 11:47:44 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 54C6555232 for ; Thu, 12 May 2022 08:47:42 -0700 (PDT) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1652370460; 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: in-reply-to:in-reply-to:references:references; bh=1x7wVfzZR5vEE+FzOQRh31T9dG7OXNeCql6dwGT6KVA=; b=K1SduvBv3uZ/V1FrjcMXk16KbVexETxHeLRlZ2UTXu4HELI3KNqQLnQFFJsr+ec+IaN3CW Ffg61w5mwVAvKTwvDbMMfS+IIGz+J2OzE6j5yqFwWmCYtJAVLMPZMWOPlA7ZeiBSg7O/NR +Zg5r6ms3XMUMmB8SReffeUtdOvdHomABr1KxRnt+cZdprn4SRxfKOnC8+T1tOl7oOZ6bn I48yJvAVZDTvNBThhuEEZhe0Pi1FMAjcnY1bq5tbxiMBsF2WIMbjJRTqn42I3RvbXTCXzM gfupJP9bUoezETeI9x3N4xdjSN6sSvOk7nqyMwvVG/KR84ecdgF6B/MNrH6oaQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1652370460; 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: in-reply-to:in-reply-to:references:references; bh=1x7wVfzZR5vEE+FzOQRh31T9dG7OXNeCql6dwGT6KVA=; b=v8Kx1Qby10c75oq1414JE1Dvc6mLAYDrZ26yaNx/EXBQ8gG+SckjDUjZTKC2lA6AdQdJAq XXcgV7AAhmE7KRCA== To: Sean Christopherson Cc: Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , linux-kernel@vger.kernel.org, "Guilherme G . Piccoli" , Vitaly Kuznetsov , Paolo Bonzini Subject: Re: [PATCH 2/2] x86/reboot: Disable virtualization in an emergency if SVM is supported In-Reply-To: References: <20220511234332.3654455-1-seanjc@google.com> <20220511234332.3654455-3-seanjc@google.com> <87tu9vvx19.ffs@tglx> Date: Thu, 12 May 2022 17:47:40 +0200 Message-ID: <87mtfmvjkz.ffs@tglx> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 12 2022 at 14:39, Sean Christopherson wrote: > What about leaving cpu_crash_disable_virtualization() inside the if-statement? > It feels wierd to "disable" virtualization on the current CPU but ignore others, > e.g. if there's some newfangled type of virtualization in the future, I would be > quite surprised if only the CPU doing the transfer needed to disable virtualization. No real preference, though you have the unconditional invocation already in the crash code IIRC. Thanks, tglx