From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scott Wood Subject: Re: [PATCH 7/7] KVM: PPC: Add userspace debug stub support Date: Thu, 14 Mar 2013 11:05:30 -0500 Message-ID: <1363277130.28440.3@snotra> References: <1362024796-4237-1-git-send-email-bharat.bhushan@freescale.com> <1362024796-4237-8-git-send-email-bharat.bhushan@freescale.com> <7CC683A0-CFA7-450D-BDFC-40C6F1FF93AB@suse.de> <6A3DF150A5B70D4F9B66A25E3F7C888D065EBB33@039-SN2MPN1-023.039d.mgd.msft.net> <756C451E-EB7F-404B-AF8F-E9DD7FD82156@suse.de> <6A3DF150A5B70D4F9B66A25E3F7C888D065EC808@039-SN2MPN1-023.039d.mgd.msft.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; delsp=Yes; format=Flowed Content-Transfer-Encoding: 8BIT Cc: Alexander Graf , "kvm-ppc@vger.kernel.org" , "kvm@vger.kernel.org" , Wood Scott-B07421 To: Bhushan Bharat-R65777 Return-path: In-Reply-To: <6A3DF150A5B70D4F9B66A25E3F7C888D065EC808@039-SN2MPN1-023.039d.mgd.msft.net> (from R65777@freescale.com on Thu Mar 14 08:57:53 2013) Content-Disposition: inline Sender: kvm-ppc-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On 03/14/2013 08:57:53 AM, Bhushan Bharat-R65777 wrote: > > >>> diff --git a/arch/powerpc/kvm/e500mc.c > b/arch/powerpc/kvm/e500mc.c > > >>> index 1f89d26..f5fc6f5 100644 > > >>> --- a/arch/powerpc/kvm/e500mc.c > > >>> +++ b/arch/powerpc/kvm/e500mc.c > > >>> @@ -182,8 +182,7 @@ int kvmppc_core_vcpu_setup(struct kvm_vcpu > > >>> *vcpu) { > > >>> struct kvmppc_vcpu_e500 *vcpu_e500 = to_e500(vcpu); > > >>> > > >>> - vcpu->arch.shadow_epcr = SPRN_EPCR_DSIGS | > SPRN_EPCR_DGTMI | \ > > >>> - SPRN_EPCR_DUVD; > > >>> + vcpu->arch.shadow_epcr = SPRN_EPCR_DSIGS | > SPRN_EPCR_DGTMI; > > >> > > >> Doesn't this route all debug events through the host? > > > > > > No; This means that debug events can occur in hypervisor state or > not. > > > > > > EPCR.DUVD = 0 ; Debug events can occur in the hypervisor state. > > > > > > EPCR.DUVD = 1 ; Debug events cannot occur in the hypervisor state. > > > > > > So we allow debug events to occur in hypervisor state. > > > > Why do we care about debug events in our entry/exit code and didn't > care about > > them before? > > We care for single stepping in guest to not step in KVM code. > > > If anything, this is a completely separate patch, orthogonal to > > this patch series, and requires a good bit of explanation. > > Not sure why you think separate patch; this patch add support for > single stepping and also takes care that debug event does not comes > in host when doing single stepping. How does *removing* DUVD ensure that? -Scott