From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932106AbcEKLi2 (ORCPT ); Wed, 11 May 2016 07:38:28 -0400 Received: from ozlabs.org ([103.22.144.67]:39074 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751561AbcEKLi0 (ORCPT ); Wed, 11 May 2016 07:38:26 -0400 Date: Wed, 11 May 2016 21:36:31 +1000 From: Paul Mackerras To: Laurent Vivier Cc: kvm-ppc@vger.kernel.org, kvm@vger.kernel.org, Gleb Natapov , Paolo Bonzini , Alexander Graf , Benjamin Herrenschmidt , Michael Ellerman , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, dgibson@redhat.com, thuth@redhat.com Subject: Re: [PATCH v2] kvm-pr: manage single-step mode Message-ID: <20160511113631.GA10249@fergus.ozlabs.ibm.com> References: <1460131500-19560-1-git-send-email-lvivier@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1460131500-19560-1-git-send-email-lvivier@redhat.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 08, 2016 at 06:05:00PM +0200, Laurent Vivier wrote: > Until now, when we connect gdb to the QEMU gdb-server, the > single-step mode is not managed. > > This patch adds this, only for kvm-pr: > > If KVM_GUESTDBG_SINGLESTEP is set, we enable single-step trace bit in the > MSR (MSR_SE) just before the __kvmppc_vcpu_run(), and disable it just after. > In kvmppc_handle_exit_pr, instead of routing the interrupt to > the guest, we return to host, with KVM_EXIT_DEBUG reason. > > Signed-off-by: Laurent Vivier Thanks, applied to my kvm-ppc-next branch. Paul.