Received: from eggs.gnu.org ([2001:4830:134:3::10]:41097) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cC6x5-0005IO-N2 for qemu-devel@nongnu.org; Wed, 30 Nov 2016 10:37:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cC6x2-00039u-KQ for qemu-devel@nongnu.org; Wed, 30 Nov 2016 10:37:43 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:42202 helo=mx0a-001b2d01.pphosted.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cC6x2-00038W-EU for qemu-devel@nongnu.org; Wed, 30 Nov 2016 10:37:40 -0500 Received: from pps.filterd (m0098420.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.17/8.16.0.17) with SMTP id uAUFZYlC068722 for ; Wed, 30 Nov 2016 10:37:38 -0500 Received: from e06smtp06.uk.ibm.com (e06smtp06.uk.ibm.com [195.75.94.102]) by mx0b-001b2d01.pphosted.com with ESMTP id 271xjsm4r7-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Wed, 30 Nov 2016 10:37:38 -0500 Received: from localhost by e06smtp06.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 30 Nov 2016 15:37:37 -0000 Received: from b06cxnps3074.portsmouth.uk.ibm.com (d06relay09.portsmouth.uk.ibm.com [9.149.109.194]) by d06dlp03.portsmouth.uk.ibm.com (Postfix) with ESMTP id 32B911B0805F for ; Wed, 30 Nov 2016 15:39:57 +0000 (GMT) Received: from d06av11.portsmouth.uk.ibm.com (d06av11.portsmouth.uk.ibm.com [9.149.37.252]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id uAUFbZVc14746026 for ; Wed, 30 Nov 2016 15:37:35 GMT Received: from d06av11.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av11.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id uAUFbYbl032616 for ; Wed, 30 Nov 2016 08:37:35 -0700 References: <1477674916-6795-1-git-send-email-imbrenda@linux.vnet.ibm.com> From: Claudio Imbrenda Date: Wed, 30 Nov 2016 16:37:34 +0100 MIME-Version: 1.0 In-Reply-To: <1477674916-6795-1-git-send-email-imbrenda@linux.vnet.ibm.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Message-Id: <9f666405-9458-343a-25e1-bc2b3ee40266@linux.vnet.ibm.com> Subject: Re: [Qemu-devel] [PATCH v3 0/2] Qemu: gdbstub: fix vCont List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: pbonzini@redhat.com Cc: qemu-devel@nongnu.org, palves@redhat.com, borntraeger@de.ibm.com Hi Paolo, I was wondering if you had seen this new version of the vCont patchset, which I sent around last month -- is there any more work to do or things to fix? or is it going to be upstreamed after 2.8? (btw I just rebased it on 2.8.0-rc2 and it applied cleanly) please don't keep me in suspense :) thanks! Claudio On 28/10/16 19:15, Claudio Imbrenda wrote: > This small patchset fixes the incorrect behaviour of the vCont command > in the gdb stub. > > The first patch, as suggested be Paolo, refactors some code. The most > visible change is that it moves vm_start to cpus.c > > The second one fixes the incorrect behaviour of the vCont command. > Previously, continuing or stepping a single thread (CPU) caused all > other CPUs to be started too, whereas the GDB specification clearly > states that without a default action all threads not explicitly > mentioned in the command should stay stopped. > > So if the Qemu gdbstub receives a vCont;c:1 packet, no other CPU > should be restarted except the first, and when a vCont;s:1 is > received, the first CPU should be stepped without restarting the others. > With this patchset Qemu now behaves as expected. > > See here for reference material about the packets: > https://sourceware.org/gdb/current/onlinedocs/gdb/Packets.html > https://sourceware.org/gdb/onlinedocs/gdb/Packets.html > > v2 -> v3 > * removed resume_some_vcpus > * cleared up the code and simplified the implementation in light of the > clarification in the specification of the vCont packet > > Claudio Imbrenda (2): > move vm_start to cpus.c > gdbstub: Fix vCont behaviour > > cpus.c | 44 ++++++++++- > gdbstub.c | 189 ++++++++++++++++++++++++++++++++++----------- > hw/i386/kvmvapic.c | 2 + > include/sysemu/cpus.h | 1 + > include/sysemu/sysemu.h | 2 + > target-s390x/misc_helper.c | 2 + > vl.c | 32 +------- > 7 files changed, 195 insertions(+), 77 deletions(-) >