From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paolo Bonzini Subject: Re: [PATCH] KVM: svm: support single stepping over emulated instructions Date: Thu, 3 Aug 2017 01:30:19 -0400 (EDT) Message-ID: <1586416935.1003490.1501738219700.JavaMail.zimbra@redhat.com> References: <1501689810-20638-1-git-send-email-pbonzini@redhat.com> <20170802201338.GA32318@flask> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: linux-kernel@vger.kernel.org, kvm@vger.kernel.org, me@kylehuey.com To: Radim =?utf-8?B?S3LEjW3DocWZ?= Return-path: In-Reply-To: <20170802201338.GA32318@flask> Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org > We already have b742c1e6e79d ("KVM: SVM: handle singlestep exception > when skipping emulated instructions"), so the only applicable part of > this patch is Doh. :) > > diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c > > index 0e846f0cb83b..931ba449456e 100644 > > --- a/arch/x86/kvm/x86.c > > +++ b/arch/x86/kvm/x86.c > > @@ -5548,6 +5548,7 @@ static void kvm_vcpu_do_singlestep(struct kvm_vcpu > > *vcpu, int *r) > > */ > > vcpu->arch.dr6 &= ~15; > > vcpu->arch.dr6 |= DR6_BS | DR6_RTM; > > + kvm_update_dr6(vcpu); > > kvm_queue_exception(vcpu, DB_VECTOR); > > } > > } > > which makes sense. And shouldn't we do the same for > kvm_vcpu_check_breakpoint()? Yes, will send v2. Paolo