From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38836) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJqFH-0005Hj-8S for qemu-devel@nongnu.org; Fri, 06 Feb 2015 16:15:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YJqFD-0006qK-69 for qemu-devel@nongnu.org; Fri, 06 Feb 2015 16:15:23 -0500 Received: from mail-wi0-x232.google.com ([2a00:1450:400c:c05::232]:62330) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJqFD-0006q9-0W for qemu-devel@nongnu.org; Fri, 06 Feb 2015 16:15:19 -0500 Received: by mail-wi0-f178.google.com with SMTP id hi2so14393wib.5 for ; Fri, 06 Feb 2015 13:15:17 -0800 (PST) Sender: Paolo Bonzini From: Paolo Bonzini Date: Fri, 6 Feb 2015 22:15:08 +0100 Message-Id: <1423257311-1345-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PATCH v3 0/3] vfio: free data and unmap BARs in instance_finalize List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Alex Williamson Mostly the same as v2; - patch 1 makes the error paths of vfio_get_device a bit simpler - patch 2 introduces instance_finalize - patch 3 makes the freeing of BARs RCU-friendly Changes from v2: 1) not removing anymore the NULL assignment in vfio_put_base_device 2) patch 1 should "goto out_put" if vfio_populate_device fails (later changed to "return ret" in patch 2). The final code doesn't change; this only matters for bisectability (and even then only in a corner case). Thanks, Paolo Paolo Bonzini (3): vfio: cleanup vfio_get_device error path, remove vfio_populate_device callback vfio: free dynamically-allocated data in instance_finalize vfio: unmap and free BAR data in instance_finalize hw/vfio/common.c | 36 ++++++++-------- hw/vfio/pci.c | 96 ++++++++++++++++++++++++++++++++++--------- include/hw/vfio/vfio-common.h | 1 - 3 files changed, 92 insertions(+), 41 deletions(-) -- 1.8.3.1