Received: from [140.186.70.92] (port=49884 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P5FBQ-0000iO-IT for qemu-devel@nongnu.org; Mon, 11 Oct 2010 06:00:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P5FBP-00081Z-MU for qemu-devel@nongnu.org; Mon, 11 Oct 2010 06:00:40 -0400 Received: from mx1.redhat.com ([209.132.183.28]:31470) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P5FBP-00081T-FE for qemu-devel@nongnu.org; Mon, 11 Oct 2010 06:00:39 -0400 From: Markus Armbruster Date: Mon, 11 Oct 2010 12:00:35 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: [Qemu-devel] virtio_cleanup() missing in virtio-{blk, balloon, 9p}-pci List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Kevin Wolf , Venkateswararao Jujjuri , Adam Litke Pattern: FOO's PCIDeviceInfo method exit is virtio_FOO_exit_pci(), which calls virtio_FOO_exit() and virtio_exit_pci(). virtio_{net,serial}_exit() call virtio_cleanup(). virtio_blk_exit() doesn't. Why? virtio-balloon-pci uses virtio_exit_pci() as exit method. No virtio_cleanup()? virtio-9p-pci doesn't have an exit method. Doesn't feel right. I suspect these three leak memory or worse on hot unplug.