Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp810960ybz; Wed, 29 Apr 2020 09:47:39 -0700 (PDT) X-Google-Smtp-Source: APiQypKOM5BbGdMV4NOETG8bR6uwvZaE74rX7JRpX09ccH9AJOv1HLc1LRO5/XzEBRqsbNw402XH X-Received: by 2002:a17:907:402f:: with SMTP id nr23mr3599905ejb.240.1588178859438; Wed, 29 Apr 2020 09:47:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588178859; cv=none; d=google.com; s=arc-20160816; b=xQW15+sBdsdcvR3GSi/HcXdHbw+S+zEwIQyDqXUKVjkgmaNUX7AfMSQan83ZxVRwc2 iUzSg+13nazmiN+Pm9Rhh3PBEHUBhbH1TrMgEttZq15xyiHx4AG+z9qFc8s2KlusjYCN oe6QKJYC4cjagN1E/jETONbRV99qOkKFJp8xLCvVyGckKCstmmqKEu2SoPsCpX5eBWWu y3JFk/kMf1zyA1qlOR3d16lbu/ShM327NwyTibR8qoGixh8cMS3aFVI9u04VqPxH+FKK WP1kej3apbqrtEbVcc5n70tko3J+KHmpEJaDiwPyRtRWZUxapp06EK5svv4FHfqxOZA2 XKKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:ironport-sdr:ironport-sdr; bh=9MGIInP5hLe8DHAY6fxf8NJ2sL31nmVekaUx4GIXAv8=; b=go++veezzb+/SOCs3JlqBIpOyM8yGfw+E4EO787WLtNkARXjynbzQ+mivWoRE75+nc UTeYDttNC0bvvrxTfhn4qarda1Fg0NOjtqlWSvo7mMlCJH4nj92jDer9j+Zm76yqA77w qAWvgVosOy/8FWmo0TOWIiujQXkmT5wQYD0y+anHVACuzFLhQA1SiKmrt0iM1uq82jXz 1oyEea9pq/pk+nHixGj2HvvFBaKGO5E3mj1cVmAoX5Xs3nJOBwyumXhnJmLXg0UfuLMf P7nxOC6mgHfXTxM1y79R1vug//J3f1Vg9oOEOaKf0IX+63240LLHh9v3PFzhGn/1WZB2 83fQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id rs10si4121336ejb.288.2020.04.29.09.47.15; Wed, 29 Apr 2020 09:47:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726654AbgD2Qpt (ORCPT + 99 others); Wed, 29 Apr 2020 12:45:49 -0400 Received: from mga12.intel.com ([192.55.52.136]:65512 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726456AbgD2Qpt (ORCPT ); Wed, 29 Apr 2020 12:45:49 -0400 IronPort-SDR: Dw4DlxqM5j2xkFY6wDf+lVnThZJbuLD1I29MJ8AVKpbgTJSCXfUQyJgnxtHJAn8z0KY+TQhfaw MVdMn7oQ/DtQ== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Apr 2020 09:45:48 -0700 IronPort-SDR: oaKyK6ixi+V2jpn3Dv65+j5HnCJMTog49RBW+pIJlNQf4avqLTznIcUF13JCgDuxH6apHwP2Cf ENdkMbzEsxFA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,332,1583222400"; d="scan'208";a="248035288" Received: from sjchrist-coffee.jf.intel.com (HELO linux.intel.com) ([10.54.74.202]) by fmsmga007.fm.intel.com with ESMTP; 29 Apr 2020 09:45:48 -0700 Date: Wed, 29 Apr 2020 09:45:48 -0700 From: Sean Christopherson To: Paolo Bonzini Cc: Jim Mattson , Vitaly Kuznetsov , Wanpeng Li , Joerg Roedel , kvm list , LKML , Oliver Upton , Peter Shier Subject: Re: [PATCH 12/13] KVM: x86: Replace late check_nested_events() hack with more precise fix Message-ID: <20200429164547.GF15992@linux.intel.com> References: <20200423022550.15113-1-sean.j.christopherson@intel.com> <20200423022550.15113-13-sean.j.christopherson@intel.com> <20200428222010.GN12735@linux.intel.com> <6b35ec9b-9565-ea6c-3de5-0957a9f76257@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6b35ec9b-9565-ea6c-3de5-0957a9f76257@redhat.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 29, 2020 at 10:36:17AM +0200, Paolo Bonzini wrote: > On 29/04/20 00:20, Sean Christopherson wrote: > >> So, that's what this mess was all about! Well, this certainly looks better. > > Right? I can't count the number of times I've looked at this code and > > wondered what the hell it was doing. > > > > Side topic, I just realized you're reviewing my original series. Paolo > > commandeered it to extend it to SVM. https://patchwork.kernel.org/cover/11508679/ > > If you can just send a patch to squash into 9/13 I can take care of it. Ugh, correctly prioritizing SMI is a mess. It has migration implications, a proper fix requires non-trivial changes to inject_pending_event(), there are pre-existing (minor) bugs related to MTF handling, and technically INIT should have lower priority than non-trap exceptions (because the exception happens before the event window is opened). Can you just drop 9/13, "Prioritize SMI over nested IRQ/NMI" from kvm/queue? It's probably best to deal with this in a new series rather than trying to squeeze it in.