|
From: | Gerd Hoffmann |
Subject: | [Qemu-devel] Re: [PATCH 1/2] qemu/qdev: type safety in reset handler |
Date: | Wed, 16 Sep 2009 12:05:41 +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 |
Hi,
Otherwise, I prefer the old version. We test if there exist dev->info->reset and just after that, we use dev->info->reset()Good point. I think I'll just move the if (dev->info->reset) into qdev_reset.
How about going one step further? Register *one* qdev_reset instance which then walks the qdev tree and calls ->reset() for every device?
cheers, Gerd
[Prev in Thread] | Current Thread | [Next in Thread] |