Received: from [140.186.70.92] (port=51473 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OgLUz-0005U3-SJ for qemu-devel@nongnu.org; Tue, 03 Aug 2010 13:41:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OgLUx-0002MA-I3 for qemu-devel@nongnu.org; Tue, 03 Aug 2010 13:41:57 -0400 Received: from mx1.redhat.com ([209.132.183.28]:45156) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OgLUx-0002Ls-AB for qemu-devel@nongnu.org; Tue, 03 Aug 2010 13:41:55 -0400 Date: Tue, 3 Aug 2010 13:41:51 -0400 From: Glauber Costa Message-ID: <20100803174151.GU14448@mothafucka.localdomain> References: <20100803161914.15514.59304.stgit@localhost6.localdomain6> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100803161914.15514.59304.stgit@localhost6.localdomain6> Subject: [Qemu-devel] Re: [PATCH] qdev: Reset hotplugged devices List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alex Williamson Cc: qemu-devel@nongnu.org On Tue, Aug 03, 2010 at 10:19:47AM -0600, Alex Williamson wrote: > Several devices rely on their reset() function being called to > initialize device state, e1000 and rtl8139 in particular. When > the device is hot added, the reset doesn't occur, often leaving > the device in an unusable state. Adding a call to reset() after > init() for hotplugged devices puts the device in the expected > state for the guest. > > Signed-off-by: Alex Williamson I like this one better.