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 X-Spam-Level: X-Spam-Status: No, score=-0.9 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A3BAFC352BE for ; Tue, 14 Apr 2020 20:14:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7B5F22076A for ; Tue, 14 Apr 2020 20:14:04 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="BrU/MPw0" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2632805AbgDNUOC (ORCPT ); Tue, 14 Apr 2020 16:14:02 -0400 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:39414 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2632739AbgDNULP (ORCPT ); Tue, 14 Apr 2020 16:11:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1586895074; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=xeep/J8xI+LK6UPyUtnwUk8kuNhohlFBWm/FMlc2jnk=; b=BrU/MPw0oeOcBTdsdGzktKBzY5dl/KnZGlWD0WA1ec1w3+QfaOoO2n7EiRIUKZjF2ABIdE lhKXsxh8DlL7F/uqRK6nHxfEtD1ooobaEgouS/8JjUoxm0UPiZbWB6HO7hqZwpM7jnoMvZ TbrBM1XmiccEyNO69YxGMXAyCIHcnAk= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-134-SJqVODYlPQ-l1RXsl6frEg-1; Tue, 14 Apr 2020 16:11:12 -0400 X-MC-Unique: SJqVODYlPQ-l1RXsl6frEg-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 6395D18C8C0F; Tue, 14 Apr 2020 20:11:11 +0000 (UTC) Received: from localhost.localdomain.com (ovpn-113-69.rdu2.redhat.com [10.10.113.69]) by smtp.corp.redhat.com (Postfix) with ESMTP id CDC3C5DA66; Tue, 14 Apr 2020 20:11:07 +0000 (UTC) From: Cathy Avery To: linux-kernel@vger.kernel.org, kvm@vger.kernel.org, pbonzini@redhat.com Cc: vkuznets@redhat.com, wei.huang2@amd.com Subject: [PATCH 0/2] KVM: SVM: Implement check_nested_events for NMI Date: Tue, 14 Apr 2020 16:11:05 -0400 Message-Id: <20200414201107.22952-1-cavery@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Moved nested NMI exit to new check_nested_events. The second patch fixes the NMI pending race condition that now occurs. Cathy Avery (2): KVM: SVM: Implement check_nested_events for NMI KVM: x86: check_nested_events if there is an injectable NMI arch/x86/kvm/svm/nested.c | 21 +++++++++++++++++++++ arch/x86/kvm/svm/svm.c | 2 +- arch/x86/kvm/svm/svm.h | 15 --------------- arch/x86/kvm/x86.c | 15 +++++++++++---- 4 files changed, 33 insertions(+), 20 deletions(-) --=20 2.20.1