On Fri, 1 Apr 2016 15:19:50 +0200 Paolo Bonzini <[email protected]> wrote:
> From: "Michael S. Tsirkin" <[email protected]> > > In addition to handling IO in vcpu thread and > in io thread, blk dataplane introduces yet another mode: > handling it by aio. > > This reuses the same handler as previous modes, > which triggers races as these were not designed to be reentrant. > > As a temporary fix, add a separate handler just for aio, this will make > it possible to disable regular handlers when dataplane is active. > > Signed-off-by: Michael S. Tsirkin <[email protected]> > Signed-off-by: Paolo Bonzini <[email protected]> > --- > hw/virtio/virtio.c | 36 ++++++++++++++++++++++++++++++++---- > include/hw/virtio/virtio.h | 3 +++ > 2 files changed, 35 insertions(+), 4 deletions(-) Reviewed-by: Cornelia Huck <[email protected]>
