Received: from eggs.gnu.org ([140.186.70.92]:49183) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RzOUK-0002FY-VY for qemu-devel@nongnu.org; Mon, 20 Feb 2012 03:20:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RzOUE-0002dP-95 for qemu-devel@nongnu.org; Mon, 20 Feb 2012 03:20:48 -0500 Received: from mx1.redhat.com ([209.132.183.28]:25344) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RzOUD-0002dI-Vt for qemu-devel@nongnu.org; Mon, 20 Feb 2012 03:20:42 -0500 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q1K8KeVb006002 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 20 Feb 2012 03:20:40 -0500 From: Markus Armbruster References: <1329506504-29152-1-git-send-email-lcapitulino@redhat.com> <1329506504-29152-5-git-send-email-lcapitulino@redhat.com> Date: Mon, 20 Feb 2012 09:20:39 +0100 In-Reply-To: <1329506504-29152-5-git-send-email-lcapitulino@redhat.com> (Luiz Capitulino's message of "Fri, 17 Feb 2012 17:21:43 -0200") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [Qemu-devel] [PATCH 4/5] ide: drop ide_tray_state_post_load() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Luiz Capitulino Cc: kwolf@redhat.com, pbonzini@redhat.com, eblake@redhat.com, qemu-devel@nongnu.org Luiz Capitulino writes: > This is used to sync the physical tray state after migration when > using CD-ROM passthrough. However, migrating when using passthrough > is broken anyway and shouldn't be supported... > > So, drop this function as it causes a problem with the DEVICE_TRAY_MOVED > event, which is going to be introduced by the next commit. I added ide_tray_state_post_load() mostly to satisfy an urge to always call bdrv_eject() when tray_state changes, not because it's actually useful. I'm fine with dropping it. Perhaps preventing migration while the host CD-ROM is passed through would be even better.