qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 0/3] run RCU callbacks within the iothread mutex, fi


From: Paolo Bonzini
Subject: [Qemu-devel] [PATCH 0/3] run RCU callbacks within the iothread mutex, fix PCI hotplug
Date: Wed, 11 Feb 2015 18:14:29 +0100

Patch 1 avoids that RCU callbacks are delayed forever if there's
scarcity of them, which is bad because qemu_opts_del will be called in
a RCU callbacks.

Patches 2 avoids complications due to instance_finalize callbacks that
are not thread-safe.  It's a big hammer and it is not handsome, but I
gave up on making VFIO list manipulations thread-safe.

Patch 3 avoids a use-after-free when freeing address spaces.

These patches survived several hundred hotplug cycles, with MALLOC_PERTURB_
and G_SLICE=always-malloc on.

Paolo

Paolo Bonzini (3):
  rcu: do not let RCU callbacks pile up indefinitely
  rcu: run RCU callbacks under the BQL
  memory: keep the owner of the AddressSpace alive until
    do_address_space_destroy

 memory.c       |  5 +++++
 tests/Makefile |  2 +-
 util/rcu.c     | 19 +++++++++++++------
 3 files changed, 19 insertions(+), 7 deletions(-)

-- 
1.8.3.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]