Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp4967876ioa; Wed, 27 Apr 2022 15:38:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJypNvfeOfm8Fff2H6G2n0CzUxgr8eGEVpJg1qlMSbbc4O3RpN+bztitE/WAWPuL07KPX5XZ X-Received: by 2002:a05:6402:5207:b0:426:1f0:b22 with SMTP id s7-20020a056402520700b0042601f00b22mr8406712edd.186.1651099126928; Wed, 27 Apr 2022 15:38:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651099126; cv=none; d=google.com; s=arc-20160816; b=wpI0Y/Pas2qS4b6FDRui4p3BFlFq0J9uPeyVNqQI0IJoFQ6KCK7Ez2WGm6kRxwZ5ME vd167qURW9hs8tbW8A5NWY5C/ny9HeupsOkGtTOKN/lDoppnZinPMfBdN2iyKGsqSrVO vlZaJtP+L5WGF97q3ZztoeijiCkxE4QYKC3CoGIvKft7uNMVWcuzRfi00frpZhUBshN+ O5bX1aqziP1YOnFVaLMSFaG79wEwNlNU5wMznQz6bkgmgAGNcp8bIvcK+2ny+GlVYkEM VzYTOJBGE687bQrdPRm8f2+pFnqcYVJtXk1mT24JmZ4STC3xTotBNtA7kWaCegcSsGSZ zC8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature; bh=jDMry/O2NH8BA6BgUi4lsHdjt+USMoEBHJPgjeYLkM8=; b=H3d9HWWy47BsjpWFw8qd2RxHBE6MS8Cv7cIrVAGQaSPNpuD22/EqG1R4BM7MZIQCS7 TEfcjZen3xxrvr15p/MDdArcoc0VfAPFpPL2IQowUtZsiZLWXw3MN9u/QFN01KPxZ7nC BUKpKhL5o3x3pd+VK2K7q/Rt++pgThHiPCWsAUWm3SbnfEpTQFhRLzLvzFoYUtg0a8fv jJrSPNXHR2g1Aj9cHIxxmqgj0cwU3YyUskN4/4Te0b0p+pYm9JtKIMx1P8J5Uud4K1Ll Nk9SFuBvCj3sldfcbt6v19taz/QHcSniMp2sQSRlx0TVKn9/Z8JyOHmL/CEPAYB+keUd pbfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=UtDnH64f; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a18-20020a170906369200b006efce228d13si2331143ejc.57.2022.04.27.15.38.23; Wed, 27 Apr 2022 15:38:46 -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=@redhat.com header.s=mimecast20190719 header.b=UtDnH64f; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229899AbiD0Uow (ORCPT + 99 others); Wed, 27 Apr 2022 16:44:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51616 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230025AbiD0Uot (ORCPT ); Wed, 27 Apr 2022 16:44:49 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4215EBF7B for ; Wed, 27 Apr 2022 13:41:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1651092096; 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:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=jDMry/O2NH8BA6BgUi4lsHdjt+USMoEBHJPgjeYLkM8=; b=UtDnH64fVFww9QWTyF3SrX4hrxUkqb14Th9ww0uuKn00d3sihD4+rIwTgfcaWddS/2a75F ZgdNW8OYn96s0iveAUen4Y3nlTg4pFxkyNrhGZgl6E0FmOUwpDApQx0TKtIcPe1MT6AtUO qZEcYDDaoDLR+xvhsb/pllFGssO8YE8= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-486-MEuxaX4cNrKzL6nGRjSYUg-1; Wed, 27 Apr 2022 16:41:34 -0400 X-MC-Unique: MEuxaX4cNrKzL6nGRjSYUg-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 2316D3C1588B; Wed, 27 Apr 2022 20:41:34 +0000 (UTC) Received: from starship (unknown [10.40.192.41]) by smtp.corp.redhat.com (Postfix) with ESMTP id D4FC814152FA; Wed, 27 Apr 2022 20:41:32 +0000 (UTC) Message-ID: Subject: Re: [PATCH 2/3] KVM: x86: a vCPU with a pending triple fault is runnable From: Maxim Levitsky To: Paolo Bonzini , linux-kernel@vger.kernel.org, kvm@vger.kernel.org Cc: seanjc@google.com, stable@vger.kernel.org Date: Wed, 27 Apr 2022 23:41:31 +0300 In-Reply-To: <20220427173758.517087-3-pbonzini@redhat.com> References: <20220427173758.517087-1-pbonzini@redhat.com> <20220427173758.517087-3-pbonzini@redhat.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.5 (3.36.5-2.fc32) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.85 on 10.11.54.7 X-Spam-Status: No, score=-3.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE 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 Wed, 2022-04-27 at 13:37 -0400, Paolo Bonzini wrote: > Cc: stable@vger.kernel.org > Signed-off-by: Paolo Bonzini > --- > arch/x86/kvm/x86.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c > index 0e73607b02bd..d563812ca229 100644 > --- a/arch/x86/kvm/x86.c > +++ b/arch/x86/kvm/x86.c > @@ -12187,6 +12187,9 @@ static inline bool kvm_vcpu_has_events(struct kvm_vcpu *vcpu) > kvm_x86_ops.nested_ops->has_events(vcpu)) > return true; > > + if (kvm_test_request(KVM_REQ_TRIPLE_FAULT, vcpu)) > + return true; > + > return false; > } > True. Reviewed-by: Maxim Levitsky Best regards, Maxim Levitsky