From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52286) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1edVC9-0000M0-6X for qemu-devel@nongnu.org; Mon, 22 Jan 2018 01:03:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1edVC5-0004Uc-94 for qemu-devel@nongnu.org; Mon, 22 Jan 2018 01:03:01 -0500 Received: from mx1.redhat.com ([209.132.183.28]:54436) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1edVC5-0004UL-33 for qemu-devel@nongnu.org; Mon, 22 Jan 2018 01:02:57 -0500 From: Peter Xu Date: Mon, 22 Jan 2018 14:02:40 +0800 Message-Id: <20180122060244.29368-1-peterx@redhat.com> Subject: [Qemu-devel] [PATCH v2 0/4] memory/vfio: notify region_del() when unregister listeners List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: David Gibson , Paolo Bonzini , Peter Maydell , Alex Williamson , "Michael S . Tsirkin" , Alexey Kardashevskiy , peterx@redhat.com v2 - add begin() hooks [Paolo] - move vfio patch to front [Paolo] - one more patch for arm devlistener unregister [Paolo] - one more patch for vhost traces - removing RFC tag This series fixes bug reported here: https://bugzilla.redhat.com/show_bug.cgi?id=1531393 The first patch only adds traces for vhost, with which I tested on vhost to make sure that my last patch works as expected with vhost. Please pick it if anyone wants, or ignore it if no one likes it. The 2nd patch is the arm fix for preparation of the last patch. The 3rd patch is the vfio fix for preparation of the last patch. The 4th patch is the core fix of the problem. Please review, thanks. Thanks. Peter Xu (4): vhost: add traces for memory listeners arm: postpone device listener unregister vfio: listener unregister before unset container memory: do explicit cleanup when remove listeners hw/vfio/common.c | 16 ++++++++++++---- hw/virtio/trace-events | 6 ++++++ hw/virtio/vhost.c | 11 +++++++---- memory.c | 27 +++++++++++++++++++++++++++ target/arm/kvm.c | 2 +- 5 files changed, 53 insertions(+), 9 deletions(-) -- 2.14.3