From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:43677) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SX75m-0000LB-9B for qemu-devel@nongnu.org; Wed, 23 May 2012 04:38:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SX75g-0003un-57 for qemu-devel@nongnu.org; Wed, 23 May 2012 04:38:49 -0400 Received: from mx1.redhat.com ([209.132.183.28]:3017) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SX75f-0003uY-To for qemu-devel@nongnu.org; Wed, 23 May 2012 04:38:44 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q4N8cgmj000398 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 23 May 2012 04:38:42 -0400 Message-ID: <4FBCA210.60801@redhat.com> Date: Wed, 23 May 2012 10:38:40 +0200 From: Kevin Wolf MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2 1/2] fdc: floppy drive should be visible after start without media List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Pavel Hrdina Cc: qemu-devel@nongnu.org Am 22.05.2012 17:00, schrieb Pavel Hrdina: > If you start guest with floppy drive but without media inserted, guest > still should see floppy drive pressent. > > Signed-off-by: Pavel Hrdina > --- > hw/pc.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/hw/pc.c b/hw/pc.c > index 4d34a33..967c17a 100644 > --- a/hw/pc.c > +++ b/hw/pc.c > @@ -382,7 +382,7 @@ void pc_cmos_init(ram_addr_t ram_size, ram_addr_t above_4g_mem_size, > if (floppy) { > fdc_get_bs(fd, floppy); > for (i = 0; i < 2; i++) { > - if (fd[i] && bdrv_is_inserted(fd[i])) { > + if (fd[i]) { > bdrv_get_floppy_geometry_hint(fd[i], &nb_heads, &max_track, > &last_sect, FDRIVE_DRV_NONE, > &fd_type[i], &rate); I'm not completely sure, but we might have to make this change dependent on the machine type to avoid surprises with live migration. Kevin