]> xenbits.xensource.com Git - osstest/qemu.git/commitdiff
fdc: floppy drive should be visible after start without media
authorPavel Hrdina <phrdina@redhat.com>
Thu, 24 May 2012 09:02:28 +0000 (11:02 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 25 May 2012 16:18:53 +0000 (18:18 +0200)
If you start guest with floppy drive but without media inserted, guest
still should see floppy drive pressent.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
hw/pc.c

diff --git a/hw/pc.c b/hw/pc.c
index 4d34a335ed61522eb05e54bb874b787d41663159..967c17a3fe52238445f4855b34ec62527f1ceb83 100644 (file)
--- 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);