Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1363401rwb; Tue, 29 Nov 2022 12:31:22 -0800 (PST) X-Google-Smtp-Source: AA0mqf4Rhn7wsN/fWA3FbqvBMTafcCoPQdaxcl1UBtwptkKds0guN9ZzEtLQcaJiGalSmys5a91n X-Received: by 2002:a63:fd08:0:b0:46f:ed91:6664 with SMTP id d8-20020a63fd08000000b0046fed916664mr32991708pgh.558.1669753882382; Tue, 29 Nov 2022 12:31:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669753882; cv=none; d=google.com; s=arc-20160816; b=za3g9jkXkSUPSNwHeA1uI9WVS8IQ3u8OD2CkGDFb3pQ9THVdGRBrhTPEvllTXOdnhY PzMZbZkfUif9hJbQvIPDTsHZs4+aamwW+52vzXsvrFgHSuZ/nSpouLjN5dW7qgI28oxk 6Q6OIy0eLCqy0jC+SfbN0g0hdUTTkvcl6S0gUrWGREtKqCypYd/i/+SzcIwt++vDi4KK FaVMldCo1v3BSCGUQLY0WIWtmue41kBfpwoWIETBSiCqgj6rQbFrogGzKLz7TJwkEHaE Mc0gcNt/Xu0xS+DWmY5VTjKr/xW+v3r4Q7D75i/qwfdf4Gj0ctjD7cYmulHUcCDevxvI Pm0Q== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=tBZ6anhOwTxMVSJuE8Q5eMuTfnMC1c6DPf6ddnr8upA=; b=ApU30Fqz02lkcJjJ27TCjyAKWMcHXQ/TVCfPxCfys/broVJ7N+e5oHvJqNjhpGPHkG Ee4pDPuKIrk+UX4X+CccbyM/eMlV3PVtSdr4/E9SABOYF7JkxbOaeIaxERSE2vO6DqQ6 SBuQA/d91b4woj2zABLghl2zZeOPkvzMsDrg1Kbyp8nGvlQ7owam7uVFhbX29flrPc7m luSc6h8URfUtFteW4R72etczhawrlYeUWvLW+YAtlB/GFxjnSA+oKL9Bm8Af0ThlZUdT 91M4OBAy0NudFZyzAW+t5go8K6Lxn+KRtcSe1EQGZpe4VsTLY/39f0XotIjj+dCiNmir +6tA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Xk2OSuoz; 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 q185-20020a632ac2000000b0046b19725686si15416990pgq.775.2022.11.29.12.31.11; Tue, 29 Nov 2022 12:31:22 -0800 (PST) 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=Xk2OSuoz; 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 S236983AbiK2TkH (ORCPT + 84 others); Tue, 29 Nov 2022 14:40:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49038 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236754AbiK2Tjt (ORCPT ); Tue, 29 Nov 2022 14:39:49 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4245E51304 for ; Tue, 29 Nov 2022 11:37:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1669750647; 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; bh=tBZ6anhOwTxMVSJuE8Q5eMuTfnMC1c6DPf6ddnr8upA=; b=Xk2OSuozxZx26YC8keCfly5HxoxS8kE4nz7hdctJN/4VDJ2PbbRRz3eL1lb9PbT+2L2z3Z /NVcxmpDlxcc8GWsx12plfcO06FHTmUNj0GSq7bI//6kPId068bwJWeimly4vvTOt5j6DC DN7SrnnK2swmnTYMwD2crV+seK7Jcas= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-613-GQCJg98lOS2L8CozmutRJg-1; Tue, 29 Nov 2022 14:37:23 -0500 X-MC-Unique: GQCJg98lOS2L8CozmutRJg-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 7E217802D32; Tue, 29 Nov 2022 19:37:22 +0000 (UTC) Received: from localhost.localdomain (unknown [10.35.206.46]) by smtp.corp.redhat.com (Postfix) with ESMTP id 2861D2027064; Tue, 29 Nov 2022 19:37:17 +0000 (UTC) From: Maxim Levitsky To: kvm@vger.kernel.org Cc: Sandipan Das , Paolo Bonzini , Jim Mattson , Peter Zijlstra , Dave Hansen , Borislav Petkov , Pawan Gupta , Thomas Gleixner , Ingo Molnar , Josh Poimboeuf , Daniel Sneddon , Jiaxi Chen , Babu Moger , linux-kernel@vger.kernel.org, Jing Liu , Wyes Karny , x86@kernel.org, "H. Peter Anvin" , Sean Christopherson , Maxim Levitsky Subject: [PATCH v2 00/11] SVM: vNMI (with my fixes) Date: Tue, 29 Nov 2022 21:37:06 +0200 Message-Id: <20221129193717.513824-1-mlevitsk@redhat.com> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.1 on 10.11.54.4 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE 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 Hi!=0D =0D This is the vNMI patch series based on Santosh Shukla's vNMI patch series.= =0D =0D In this version of this patch series I addressed most of the review feedbac= k=0D added some more refactoring and also I think fixed the issue with migration= .=0D =0D I only tested this on a machine which doesn't have vNMI, so this does need= =0D some testing to ensure that nothing is broken.=0D =0D Best regards,=0D Maxim Levitsky=0D =0D Maxim Levitsky (9):=0D KVM: nSVM: don't sync back tlb_ctl on nested VM exit=0D KVM: nSVM: clean up the copying of V_INTR bits from vmcb02 to vmcb12=0D KVM: nSVM: explicitly raise KVM_REQ_EVENT on nested VM exit if L1=0D doesn't intercept interrupts=0D KVM: SVM: drop the SVM specific H_FLAGS=0D KVM: x86: emulator: stop using raw host flags=0D KVM: SVM: add wrappers to enable/disable IRET interception=0D KVM: x86: add a delayed hardware NMI injection interface=0D KVM: SVM: implement support for vNMI=0D KVM: nSVM: implement support for nested VNMI=0D =0D Santosh Shukla (2):=0D x86/cpu: Add CPUID feature bit for VNMI=0D KVM: SVM: Add VNMI bit definition=0D =0D arch/x86/include/asm/cpufeatures.h | 1 +=0D arch/x86/include/asm/kvm-x86-ops.h | 2 +=0D arch/x86/include/asm/kvm_host.h | 24 +++--=0D arch/x86/include/asm/svm.h | 7 ++=0D arch/x86/kvm/emulate.c | 11 +--=0D arch/x86/kvm/kvm_emulate.h | 7 +-=0D arch/x86/kvm/smm.c | 2 -=0D arch/x86/kvm/svm/nested.c | 102 ++++++++++++++++---=0D arch/x86/kvm/svm/svm.c | 154 ++++++++++++++++++++++-------=0D arch/x86/kvm/svm/svm.h | 41 +++++++-=0D arch/x86/kvm/x86.c | 50 ++++++++--=0D 11 files changed, 318 insertions(+), 83 deletions(-)=0D =0D -- =0D 2.26.3=0D =0D