Received: from eggs.gnu.org ([2001:4830:134:3::10]:38170) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZenTG-0006Ov-6G for qemu-devel@nongnu.org; Wed, 23 Sep 2015 13:04:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZenTC-0005un-CA for qemu-devel@nongnu.org; Wed, 23 Sep 2015 13:04:42 -0400 Received: from rrcs-67-79-241-250.sw.biz.rr.com ([67.79.241.250]:39881 helo=nuntius.signalogic.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZenTB-0005uB-Tu for qemu-devel@nongnu.org; Wed, 23 Sep 2015 13:04:38 -0400 Received: from localhost (localhost [127.0.0.1]) by nuntius.signalogic.com (Postfix) with ESMTP id 3223F12880F3 for ; Wed, 23 Sep 2015 11:37:58 -0500 (CDT) Received: from nuntius.signalogic.com ([127.0.0.1]) by localhost (/bin/uname -n [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 09032-02 for ; Wed, 23 Sep 2015 11:37:56 -0500 (CDT) Received: from [10.0.0.65] (unknown [10.0.0.65]) by nuntius.signalogic.com (Postfix) with ESMTP id CBBAE12880F1 for ; Wed, 23 Sep 2015 11:37:55 -0500 (CDT) From: "Chris Johnson" Date: Wed, 23 Sep 2015 16:32:00 +0000 Message-Id: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------=_MB9BCCDEF9-9F8A-435D-AD13-B2E824341A5F" Subject: [Qemu-devel] Virtio device "exit" function Reply-To: Chris Johnson List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: QEMU Developers --------=_MB9BCCDEF9-9F8A-435D-AD13-B2E824341A5F Content-Type: text/plain; format=flowed; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello, I am working on adding a virtio device to support a PCIe card (PCIe=20 pass-through wasn't an option). I need to do some cleanup when a VM that= =20 is using this device is shutdown. It doesn't seem like the=20 device_unrealize function runs on shutdown unlike the device_realize=20 function that runs when the VM is started. I've been tracing through=20 other virtio device code to try and figure out what "exit" type=20 functions will run for other devices when a VM is shutdown but haven't=20 had any luck with that yet. When does a virtio device's unrealize function run? What function, if any, runs for a virtio device when a VM is shutdown? Regards, Chris --------=_MB9BCCDEF9-9F8A-435D-AD13-B2E824341A5F Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
Hello,
 
I am working on adding a virtio device to support a PCIe card (PCIe= pass-through wasn't an option). I need to do some cleanup when a VM that= is using this device is shutdown. It doesn't seem like the device_unrealiz= e function runs on shutdown unlike the device_realize function that= runs when the VM is started. I've been tracing through other virtio device= code to try and figure out what "exit" type functions will run for other= devices when a VM is shutdown but haven't had any luck with that yet.
 
When does a virtio device's unrealize function run?
 
What function, if any, runs for a virtio device when a VM is shutdown?=
 
Regards,
Chris
--------=_MB9BCCDEF9-9F8A-435D-AD13-B2E824341A5F--