Received: from [140.186.70.92] (port=54004 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PTfSS-0005il-5C for qemu-devel@nongnu.org; Fri, 17 Dec 2010 13:55:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PTfSP-0002WP-4U for qemu-devel@nongnu.org; Fri, 17 Dec 2010 13:55:10 -0500 Received: from fmmailgate01.web.de ([217.72.192.221]:37407) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PTfSO-0002Vi-Pe for qemu-devel@nongnu.org; Fri, 17 Dec 2010 13:55:09 -0500 Message-Id: <5FFE3BAC-8050-404F-B0DF-440953456483@web.de> From: =?ISO-8859-1?Q?Andreas_F=E4rber?= In-Reply-To: <4D0BAFEB.9060002@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Apple Message framework v936) Subject: Re: [Qemu-devel] Re: [PATCH v2] ide: Register vm change state handler once only Date: Fri, 17 Dec 2010 19:54:45 +0100 References: <1292514846-4612-1-git-send-email-stefanha@linux.vnet.ibm.com> <4D0B61C2.7010106@redhat.com> <4D0BAFEB.9060002@redhat.com> Sender: andreas.faerber@web.de List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf Cc: Stefan Hajnoczi , QEMU Developers Am 17.12.2010 um 19:46 schrieb Kevin Wolf: > Am 17.12.2010 19:35, schrieb Andreas F=E4rber: >> Am 17.12.2010 um 14:12 schrieb Kevin Wolf: >> >>> Am 16.12.2010 16:54, schrieb Stefan Hajnoczi: >>>> We register the vm change state handler in a PCI BAR map() =20 >>>> function. >>>> This function can be called multiple times throughout the lifetime >>>> of a >>>> PCI IDE device. This results in duplicate vm change state handlers >>>> being register, none of which are ever unregistered. >>>> >>>> Instead, register the vm change state handler in the device's init >>>> function once and for all. >>>> >>>> piix tested, cmd646 and via not tested. >>>> >>>> Signed-off-by: Stefan Hajnoczi >>> >>> Thanks, applied to the block branch. >> >> This just landed in master and breaks the build due to use of an >> undefined variable bm in hw/ide/cmd646.c... > > Can you try the patch I just sent? I just finished an identical patch. :) Thanks, Andreas=