Received: from eggs.gnu.org ([2001:4830:134:3::10]:49780) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wrp0u-0001ki-Eu for qemu-devel@nongnu.org; Tue, 03 Jun 2014 09:44:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wrp0o-0007cV-TO for qemu-devel@nongnu.org; Tue, 03 Jun 2014 09:44:28 -0400 Received: from mail-wg0-x230.google.com ([2a00:1450:400c:c00::230]:37937) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wrp0o-0007aG-Ey for qemu-devel@nongnu.org; Tue, 03 Jun 2014 09:44:22 -0400 Received: by mail-wg0-f48.google.com with SMTP id k14so6674664wgh.31 for ; Tue, 03 Jun 2014 06:44:21 -0700 (PDT) Date: Tue, 3 Jun 2014 15:44:15 +0200 From: Stefan Hajnoczi Message-ID: <20140603134415.GF723@stefanha-thinkpad.muc.redhat.com> References: <1400077367-23409-1-git-send-email-stefanha@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1400077367-23409-1-git-send-email-stefanha@redhat.com> Subject: Re: [Qemu-devel] [PATCH 0/3] throttle: use AioContext for dataplane support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: Kevin Wolf , qemu-devel@nongnu.org, =?iso-8859-1?Q?Beno=EEt?= Canet On Wed, May 14, 2014 at 04:22:44PM +0200, Stefan Hajnoczi wrote: > This series applies on top of my "dataplane: use QEMU block layer" series. > > Now that the dataplane code path is using the QEMU block layer we should make > I/O throttling limits safe to use. When the block_set_io_throttle monitor > command is executed, the BlockDriverState's AioContext must be acquired in > order to prevent race conditions with the IOThread that is processing requests > from the guest. > > The new block layer AioContext detach/attach mechanism needs to be extended to > move the throttling timer to a new AioContext. This makes throttling work > across bdrv_set_aio_context() calls. > > The result of this series is that I/O throttling works with dataplane and > limits may be changed at runtime using the monitor. > > Stefan Hajnoczi (3): > throttle: add throttle_detach/attach_aio_context() > throttle: add detach/attach test case > blockdev: acquire AioContext in block_set_io_throttle > > block.c | 7 +++++++ > blockdev.c | 6 ++++++ > include/qemu/throttle.h | 10 ++++++++++ > tests/test-throttle.c | 49 ++++++++++++++++++++++++++++++++++++++++++++----- > util/throttle.c | 27 +++++++++++++++++++++++---- > 5 files changed, 90 insertions(+), 9 deletions(-) Applied to my block tree: https://github.com/stefanha/qemu/commits/block Stefan