From: Paolo Bonzini Subject: Re: [PATCH v2 0/5] KVM: SVM: improve NMI window singlestep Date: Tue, 27 Jun 2017 16:36:09 +0200 Message-ID: <00788928-87f5-97c5-0f97-ae4e8443ad85@redhat.com> References: <20170621070701.11071-1-lprosek@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: rkrcmar@redhat.com To: Ladi Prosek , kvm@vger.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:43522 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752310AbdF0Ogg (ORCPT ); Tue, 27 Jun 2017 10:36:36 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 3E367C045773 for ; Tue, 27 Jun 2017 14:36:35 +0000 (UTC) In-Reply-To: <20170621070701.11071-1-lprosek@redhat.com> Content-Language: en-US Sender: kvm-owner@vger.kernel.org List-ID: On 21/06/2017 09:06, Ladi Prosek wrote: > On AMD hardware, Hyper-V doesn't work nested on KVM if L1 is started with > more than one vCPU. The problem is in NMI which is heavily used by Windows > on SMP systems. > > This series fixes a couple of related issues with the current NMI singlestep > logic and makes Windows with Hyper-V happy. > > v1->v2: > > * simplified patch 4 to call smp_send_reschedule instead of intercepting iret > (Paolo) > > * added patch 5 to suppress singlestep on GIF=0 and nested exit (Paolo) > > * dropped most of the cover letter blurb because we now singlestep only over > iret, as originally intended (Radim) > > * still left nmi_singlestep_guest_rflags and the defensive code accessing it > in -- it shouldn't be needed if we really singlestep only over iret but it > is more robust this way (Radim) > > * ran eventinj.flat, found no regression (baseline appears to be broken on > nested, I'll look into it separately) (Paolo) Queued, thanks! Paolo