Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp600505iob; Wed, 18 May 2022 08:55:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzr8HNBr1ZLAPjDkp0Q/fFIHInfU1frEgOv/I35BP1VROdxjJdTJ+jQQjuiOzAtHN+P0VbP X-Received: by 2002:a63:368a:0:b0:3f2:8963:8b46 with SMTP id d132-20020a63368a000000b003f289638b46mr119177pga.153.1652889328831; Wed, 18 May 2022 08:55:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652889328; cv=none; d=google.com; s=arc-20160816; b=AWbyZURzNAFoVq1sXNb/c9NDtMqQMKcLY/wBaWQgxPQs2f9W0mTzRPUy8Si3mvinKS G+Q8tf2IUEtBcCPfZI2POsL/m+LN+crnWGEhXpHG9Lo3zk+xxv8WCRMyBMPxk7fS+IM7 IqWPI6BXsiTCjzoEnIehD7mGX14oxaW0GwYH2kGmJuB7aTnnHuI3asMIIxPUGnrtrOEG Bov8wL4qcNw7aPWudVG8jwZZr/lktVg+l5TJIuMca07Iv63m2H2Wq824ChEtTLDiwKgS 6OmXQKcoMw5hbmDriw+SOevnfi5g1lMfNGlLwK2LAfaxjSE96WsVa6Ni7Pf4IUG0VIrJ oK+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=MAUXfcUkVFDIvFNCsb81T0316Hl0b9jykVcFYkHqtP4=; b=GOZ/1TYI9eJr1N33oVc9Jv7jZFfEd/zbK6dRS01v6OA6XEXGkKfm2qZsW7pwh5Su6h 8Um3vUZAqLABzmrbQCemuy3fAfCzgdzzZXd3QU5UJ1UyEBeM+kH/DFKE/NH+Iu9uHt6N QihZqa2fzDjkuh400hlEZfVWlYOOtrEJ0Fx/oMMnNmgGB2UkF/XkJpyCwoIxADqOGj5D UL1GTT3Jrj5mrJ5hmbklDDBXKxqrBJwm9hp4y834rdu19ziDzrF20K/aHmjKQe+A9LFI O+twGU1eMV0vEZ/l69nFIP0HLajzA9bIYOaxxNNWVMIBRQQMeGATiiZG7QwUlRqsEHOj TWHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@igalia.com header.s=20170329 header.b=ZLZ4oNEP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id j25-20020aa78dd9000000b0050edb7d9e22si2769591pfr.261.2022.05.18.08.55.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 May 2022 08:55:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=fail header.i=@igalia.com header.s=20170329 header.b=ZLZ4oNEP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A75001B7740; Wed, 18 May 2022 08:51:29 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239593AbiERPuw (ORCPT + 99 others); Wed, 18 May 2022 11:50:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42392 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239592AbiERPuu (ORCPT ); Wed, 18 May 2022 11:50:50 -0400 Received: from fanzine2.igalia.com (fanzine.igalia.com [178.60.130.6]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A94DDE8D for ; Wed, 18 May 2022 08:50:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=igalia.com; s=20170329; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:Cc:To:Subject:MIME-Version:Date:Message-ID:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=MAUXfcUkVFDIvFNCsb81T0316Hl0b9jykVcFYkHqtP4=; b=ZLZ4oNEPDpt5urvbAVTnE94zSx dDIerDQOOl7Run6Tx46yCBRYkZ1KpwfVcAA8uXCxZY+uwhiu4pyWLzu08uwa6ZCWSxyXRzrpWuKk4 B9rfwYQS0i65gVIL02lUtH1OnctCd1QcRQgxnoaBVK8OiO9RbW9STaQhjrQHI0HN/S+8Ws+lvTW9u 7elJUXgz9i+3C6K08jZ2h3uI7YOuHGXana4aqFuzvtWUOjSwC/jRfw0bBGOS3T54XpaJAYWDHfNv8 YZNGpD0ssd+sqNMOtVzLEUFXZV5IuG9WJ1Tjxqi84tZ3rwxSVpwvH2e1AVKnsmZittq89FDJvZ5Fc SFvr/6kA==; Received: from 200-161-159-120.dsl.telesp.net.br ([200.161.159.120] helo=[192.168.1.60]) by fanzine2.igalia.com with esmtpsa (Cipher TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_128_GCM:128) (Exim) id 1nrLwQ-00A7FJ-IK; Wed, 18 May 2022 17:50:26 +0200 Message-ID: Date: Wed, 18 May 2022 12:50:10 -0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 Subject: Re: [PATCH v2 1/3] x86/crash: Disable virt in core NMI crash handler to avoid double shootdown Content-Language: en-US To: Sean Christopherson , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org Cc: "H. Peter Anvin" , linux-kernel@vger.kernel.org, Vitaly Kuznetsov , Paolo Bonzini References: <20220518001647.1291448-1-seanjc@google.com> <20220518001647.1291448-2-seanjc@google.com> From: "Guilherme G. Piccoli" In-Reply-To: <20220518001647.1291448-2-seanjc@google.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.8 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 17/05/2022 21:16, Sean Christopherson wrote: > [...] > Fixes: ed72736183c4 ("x86/reboot: Force all cpus to exit VMX root if VMX is supported) > Cc: stable@vger.kernel.org > Reported-by: Guilherme G. Piccoli > Cc: Vitaly Kuznetsov > Cc: Paolo Bonzini > Link: https://lore.kernel.org/all/20220427224924.592546-2-gpiccoli@igalia.com > Signed-off-by: Sean Christopherson > --- > arch/x86/include/asm/reboot.h | 1 + > arch/x86/kernel/crash.c | 16 +-------- > arch/x86/kernel/reboot.c | 66 ++++++++++++++++++++++++++++------- > 3 files changed, 56 insertions(+), 27 deletions(-) Thanks Sean, great patch! It's working fine according to my tests, and the comments made the code very clear. Feel free to add: Tested-by: Guilherme G. Piccoli