From: Paolo Bonzini Subject: Re: [PATCH 3/4] KVM: SVM: hide TF/RF flags used by NMI singlestep Date: Thu, 15 Jun 2017 15:32:46 +0200 Message-ID: References: <20170615112032.15812-1-lprosek@redhat.com> <20170615112032.15812-4-lprosek@redhat.com> <496f378a-406e-3c49-cd5d-aa08765f4fce@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Cc: KVM list , Radim Krcmar To: Ladi Prosek Return-path: Received: from mx1.redhat.com ([209.132.183.28]:42190 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751623AbdFONcz (ORCPT ); Thu, 15 Jun 2017 09:32:55 -0400 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 93D437F6A1 for ; Thu, 15 Jun 2017 13:32:49 +0000 (UTC) In-Reply-To: Content-Language: en-US Sender: kvm-owner@vger.kernel.org List-ID: On 15/06/2017 15:02, Ladi Prosek wrote: >> Stupid question ahead, why is NMI singlestepping even using RF? > To be sure that the DB is really going to be singlestep and not a > regular breakpoint? Indeed, you would have to check DR6.BS before clearing nmi_singlestep in db_interception. Paolo