Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp4814345ioa; Wed, 27 Apr 2022 11:41:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwaBgMlO36mk0DMwqO1CFZY6pYKhMx1JKUyxQkS+ybpYyMNt2fDFFD2FoQ4RH7MDDkYdVJp X-Received: by 2002:a50:d79a:0:b0:425:e577:c71a with SMTP id w26-20020a50d79a000000b00425e577c71amr18606366edi.188.1651084908374; Wed, 27 Apr 2022 11:41:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651084908; cv=none; d=google.com; s=arc-20160816; b=pRPueKKpuHw4I+P9zSLY/2GQ8ZB56j9/ofMulgUJBGjh85xewt3eS6fDiQGmMBS9bd Y/kWlYYJa9VtsGgJ7m/yGkeaL3Vg1vSv+DrS/Z254HmiPCtvknxATh5TUfbS/nurIGsG aR0rjvSKR14zI8FFE8OCapxaU3z6bobLSa8B+IYNVDIAC90vjk+Z8y2HLPdISPHuvMC5 PsJ+vh84gDN80Sw790GhZVQEoBh6nl1UEq4U9qzpkJs0rQxyFlR91vF0Brzv1bPVlQxN 73R4hAXaSMSM6cfigzuG3p14/GfRviTmBiuZ+B9+rO9v2ruraTWQF5UQhsM2VSDOeJkY +jew== 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:subject :references:cc:to:from:content-language:user-agent:mime-version:date :message-id; bh=gj9T8r777FhEPK0n3h/+NuzkRXRudk64UDlOhWk3cSg=; b=ZpWWOsh9TJ1nYAA0wbDQCllulNe5K/D29BqcESafssnYpvftPgVQbb3gqw7nl1aNlb NLJmwAOmfRgfiti+k/rZyZFgPj/cOVtKsYbqvRSMnkiDS8VhiqNasKCMNrWQ/Ixp7DSp j/cj8PZZloclkxcu28LogwWeaArFZT6ghcASfgu5g6iyhYlup6LQsftkmvXv3RC9DiH7 tvSJgUMwDDCXnbN79zd4eUoqRy4TETfrSvbgNln5/Jp3UlC2HSwO2cMmbUOBhbie7wla JUU9u+cLLLyH9GJJG0+ToZZBUXFJldq7axGUJLH7JnJcYKw8SapDTmXTIrbjq8xxuyEE 1iug== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sb20-20020a1709076d9400b006e7f865ec9csi2145159ejc.850.2022.04.27.11.41.24; Wed, 27 Apr 2022 11:41:48 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229750AbiD0SgO (ORCPT + 99 others); Wed, 27 Apr 2022 14:36:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54926 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229765AbiD0SfJ (ORCPT ); Wed, 27 Apr 2022 14:35:09 -0400 Received: from vps-vb.mhejs.net (vps-vb.mhejs.net [37.28.154.113]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F52111155; Wed, 27 Apr 2022 11:22:21 -0700 (PDT) Received: from MUA by vps-vb.mhejs.net with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1njmIg-0001kz-B8; Wed, 27 Apr 2022 20:22:06 +0200 Message-ID: <97fdc9bf-2a33-3ca9-cee8-6e88fd0c5d2c@maciej.szmigiero.name> Date: Wed, 27 Apr 2022 20:21:59 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 Content-Language: en-US From: "Maciej S. Szmigiero" To: Sean Christopherson Cc: Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Maxim Levitsky , Paolo Bonzini References: <20220423021411.784383-1-seanjc@google.com> <6991d5b3-0e42-207b-2da3-63dda27e0784@maciej.szmigiero.name> Subject: Re: [PATCH v2 00/11] KVM: SVM: Fix soft int/ex re-injection In-Reply-To: <6991d5b3-0e42-207b-2da3-63dda27e0784@maciej.szmigiero.name> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.8 required=5.0 tests=BAYES_00,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS 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 On 26.04.2022 01:01, Maciej S. Szmigiero wrote: > On 23.04.2022 04:14, Sean Christopherson wrote: >> Fix soft interrupt/exception reinjection on SVM. >> > > Thanks for the patch set Sean, I can't see anything being obviously wrong > during a static code review - just small nits. > > Will test it practically tomorrow and report the results. I've tested this patch set and it seems to work fine with respect to soft {exception,interrupt} re-injection and next_rip field consistency. I have prepared a draft of an updated version at [1] with the following further changes: * "Downgraded" the commit affecting !nrips CPUs to just drop nested SVM support for such parts instead of SVM support in general, * Added a fix for L1/L2 NMI state confusion during L1 -> L2 NMI re-injection, * Updated the new KVM self-test to also check for the NMI injection scenario being fixed (that was found causing issues with a real guest), * Changed "kvm_inj_virq" trace event "reinjected" field type to bool. Will post a v3 patch set (with proper SoBs, etc.) if there are no further comments or objections. Thanks, Maciej [1]: https://github.com/maciejsszmigiero/linux/commits/svm_next_rip-sc