From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:43056) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SXyTo-0006uY-0x for qemu-devel@nongnu.org; Fri, 25 May 2012 13:39:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SXyTm-0000FO-D5 for qemu-devel@nongnu.org; Fri, 25 May 2012 13:39:11 -0400 Received: from mx1.redhat.com ([209.132.183.28]:15572) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SXyTm-0000Ep-0P for qemu-devel@nongnu.org; Fri, 25 May 2012 13:39:10 -0400 From: Kevin Wolf Date: Fri, 25 May 2012 19:38:52 +0200 Message-Id: <1337967534-12166-9-git-send-email-kwolf@redhat.com> In-Reply-To: <1337967534-12166-1-git-send-email-kwolf@redhat.com> References: <1337967534-12166-1-git-send-email-kwolf@redhat.com> Subject: [Qemu-devel] [PATCH 08/10] fdc: floppy drive should be visible after start without media List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: anthony@codemonkey.ws Cc: kwolf@redhat.com, qemu-devel@nongnu.org From: 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 Signed-off-by: Kevin Wolf --- 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); -- 1.7.6.5