From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41741) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wxrw2-0001zi-Uf for qemu-devel@nongnu.org; Fri, 20 Jun 2014 02:04:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wxrvy-0007Sr-Hk for qemu-devel@nongnu.org; Fri, 20 Jun 2014 02:04:26 -0400 Received: from mx3-phx2.redhat.com ([209.132.183.24]:53587) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wxrvy-0007Sl-Am for qemu-devel@nongnu.org; Fri, 20 Jun 2014 02:04:22 -0400 Date: Fri, 20 Jun 2014 02:04:21 -0400 (EDT) From: Paolo Bonzini Message-ID: <1786543805.29668336.1403244261041.JavaMail.zimbra@redhat.com> In-Reply-To: <20140620035859.GA11029@stefanha-thinkpad.redhat.com> References: <1401972839-25213-1-git-send-email-pbonzini@redhat.com> <20140620035859.GA11029@stefanha-thinkpad.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH v2 0/2] block: thread-safety patches for virtio-blk dataplane rerror/werror List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: kwolf@redhat.com, famz@redhat.com, qemu-devel@nongnu.org ----- Messaggio originale ----- > Da: "Stefan Hajnoczi" > A: "Paolo Bonzini" > Cc: qemu-devel@nongnu.org, famz@redhat.com, kwolf@redhat.com > Inviato: Venerd=C3=AC, 20 giugno 2014 5:58:59 > Oggetto: Re: [PATCH v2 0/2] block: thread-safety patches for virtio-blk d= ataplane rerror/werror >=20 > On Thu, Jun 05, 2014 at 02:53:57PM +0200, Paolo Bonzini wrote: > > With virtio-blk dataplane, I/O errors might occur while QEMU is > > not in the main I/O thread. This makes the block layer's > > bdrv_error_action() function thread-safe (modulo changes in > > the monitor to make QMP events thread-safe too, already posted). > >=20 > > Thanks to Kevin for discussing v1, the ideas are based on his > > input too. > >=20 > > v1->v2: redone, v1 should really have been an RFC > >=20 > > Paolo Bonzini (2): > > vl: allow other threads to do qemu_system_vmstop_request > > block: asynchronously stop the VM on I/O errors > >=20 > > block.c | 20 ++++++++++-- > > cpus.c | 1 + > > docs/qmp/qmp-events.txt | 2 +- > > include/sysemu/sysemu.h | 1 + > > stubs/vm-stop.c | 7 +++- > > target-lm32/op_helper.c | 2 +- > > vl.c | 85 > > +++++++++++++++++++++++++++++++------------------ > > 7 files changed, 82 insertions(+), 36 deletions(-) >=20 > Thanks, applied to my block tree: > https://github.com/stefanha/qemu/commits/block Hi Stefan, both patches actually will need rebasing on top of the QAPI event series from Wenchao. I can resend it next week. Paolo