From: Pavel Hrdina <phrdina@redhat.com>
To: qemu-devel@nongnu.org
Cc: Pavel Hrdina <phrdina@redhat.com>
Subject: [Qemu-devel] [PATCH v2 1/2] fdc: floppy drive should be visible after start without media
Date: Tue, 22 May 2012 17:00:53 +0200 [thread overview]
Message-ID: <a13f58fd1dfba3064819428420375725aaa5c160.1337698475.git.phrdina@redhat.com> (raw)
In-Reply-To: <cover.1337698475.git.phrdina@redhat.com>
In-Reply-To: <cover.1337698475.git.phrdina@redhat.com>
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>
---
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.7.6
next prev parent reply other threads:[~2012-05-22 15:01 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-22 15:00 [Qemu-devel] [PATCH v2 0/2] fdc: fix media handling Pavel Hrdina
2012-05-22 15:00 ` Pavel Hrdina [this message]
2012-05-23 8:38 ` [Qemu-devel] [PATCH v2 1/2] fdc: floppy drive should be visible after start without media Kevin Wolf
2012-05-23 9:14 ` Markus Armbruster
2012-05-23 9:26 ` Kevin Wolf
2012-05-22 15:00 ` [Qemu-devel] [PATCH v2 2/2] fdc: fix media detection Pavel Hrdina
2012-05-23 8:30 ` Markus Armbruster
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a13f58fd1dfba3064819428420375725aaa5c160.1337698475.git.phrdina@redhat.com \
--to=phrdina@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).