From: Paolo Bonzini <pbonzini@redhat.com>
To: Gerd Hoffmann <kraxel@redhat.com>, "Gabriel L. Somlo" <gsomlo@gmail.com>
Cc: John Snow <jsnow@redhat.com>,
mst@redhat.com, lersek@redhat.com, qemu-devel@nongnu.org,
armbru@redhat.com
Subject: Re: [Qemu-devel] [PATCH] i386: drop FDC in pc-q35-2.4+ if neither
Date: Thu, 28 May 2015 16:42:17 +0200 [thread overview]
Message-ID: <55672949.5000502@redhat.com> (raw)
In-Reply-To: <1432821161.6250.11.camel@nilsson.home.kraxel.org>
On 28/05/2015 15:52, Gerd Hoffmann wrote:
> @@ -494,7 +494,7 @@ static void ich9_lpc_machine_ready(Notifier *n, void *opaque)
> /* lpt */
> pci_conf[0x82] |= 0x04;
> }
> - if (memory_region_present(io_as, 0x3f0)) {
> + if (memory_region_present(io_as, 0x3f2)) {
> /* floppy */
> pci_conf[0x82] |= 0x08;
> }
>
> Oh, and this ...
>
> $ virsh qemu-monitor-command fedora-org-q35.base --hmp "info mtree" | grep fdc
> 00000000000003f1-00000000000003f5 (prio 0, RW): fdc
> 00000000000003f7-00000000000003f7 (prio 0, RW): fdc
>
> ... looks fishy too. Shouldn't that be 0x3f2-0x3f6 for the first range?
I think 0x3f0-0x3f5 based on this:
hw/block/fdc.c: FD_REG_SRA = 0x00,
hw/block/fdc.c: FD_REG_SRB = 0x01,
hw/block/fdc.c: FD_REG_DOR = 0x02,
hw/block/fdc.c: FD_REG_TDR = 0x03,
hw/block/fdc.c: FD_REG_MSR = 0x04,
hw/block/fdc.c: FD_REG_DSR = 0x04,
hw/block/fdc.c: FD_REG_FIFO = 0x05,
hw/block/fdc.c: FD_REG_DIR = 0x07,
hw/block/fdc.c: FD_REG_CCR = 0x07,
So:
diff --git a/hw/block/fdc.c b/hw/block/fdc.c
index d8a8edd..c761291 100644
--- a/hw/block/fdc.c
+++ b/hw/block/fdc.c
@@ -2186,7 +2186,7 @@ static void fdctrl_realize_common(FDCtrl *fdctrl, Error **errp)
}
static const MemoryRegionPortio fdc_portio_list[] = {
- { 1, 5, 1, .read = fdctrl_read, .write = fdctrl_write },
+ { 0, 6, 1, .read = fdctrl_read, .write = fdctrl_write },
{ 7, 1, 1, .read = fdctrl_read, .write = fdctrl_write },
PORTIO_END_OF_LIST(),
};
Paolo
next prev parent reply other threads:[~2015-05-28 14:42 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-27 21:06 [Qemu-devel] [PATCH] i386: drop FDC in pc-q35-2.4+ if neither it nor floppy drives are wanted Laszlo Ersek
2015-05-28 8:19 ` Paolo Bonzini
2015-05-28 8:39 ` Markus Armbruster
2015-05-28 8:42 ` Paolo Bonzini
2015-05-28 9:38 ` Michael S. Tsirkin
2015-05-28 9:30 ` Kevin Wolf
2015-05-28 12:59 ` [Qemu-devel] [PATCH] i386: drop FDC in pc-q35-2.4+ if neither Gabriel L. Somlo
2015-05-28 13:52 ` Gerd Hoffmann
2015-05-28 14:42 ` Paolo Bonzini [this message]
2015-05-28 14:56 ` Gerd Hoffmann
2015-05-28 15:20 ` Paolo Bonzini
2015-05-28 15:49 ` Gerd Hoffmann
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=55672949.5000502@redhat.com \
--to=pbonzini@redhat.com \
--cc=armbru@redhat.com \
--cc=gsomlo@gmail.com \
--cc=jsnow@redhat.com \
--cc=kraxel@redhat.com \
--cc=lersek@redhat.com \
--cc=mst@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).