qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 09/13] Add exit callback to DeviceInfo.


From: Gerd Hoffmann
Subject: Re: [Qemu-devel] [PATCH 09/13] Add exit callback to DeviceInfo.
Date: Tue, 22 Sep 2009 12:19:10 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.1) Gecko/20090814 Fedora/3.0-2.6.b3.fc11 Lightning/1.0pre Thunderbird/3.0b3

On 09/22/09 12:06, Christoph Egger wrote:
On Tuesday 22 September 2009 11:29:23 Gerd Hoffmann wrote:
This adds a exit callback for device destruction to DeviceInfo, so
we can hook cleanups into qdev device destruction.

This is not enough.
You need a childexit to allow devices to cleanup their children
in the device tree first.

qdev will do that for you. Check out patch #8 and the new qbus_free() function added there.

Of course the bus implementations must make use of the exit hook so it actually works, the following patches do that for pci, scsi and usb.

cheers,
  Gerd





reply via email to

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