fdc: floppy drive should be visible after start without media
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>
This commit is contained in:
parent
b84762e245
commit
9ecd394753
2
hw/pc.c
2
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) {
|
if (floppy) {
|
||||||
fdc_get_bs(fd, floppy);
|
fdc_get_bs(fd, floppy);
|
||||||
for (i = 0; i < 2; i++) {
|
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,
|
bdrv_get_floppy_geometry_hint(fd[i], &nb_heads, &max_track,
|
||||||
&last_sect, FDRIVE_DRV_NONE,
|
&last_sect, FDRIVE_DRV_NONE,
|
||||||
&fd_type[i], &rate);
|
&fd_type[i], &rate);
|
||||||
|
|
Loading…
Reference in a new issue