From: Jung-uk Kim <jkim@FreeBSD.org>
To: freebsd-emulation@FreeBSD.org
Cc: qemu-devel@nongnu.org, Juergen Lock <nox@jelal.kn-bremen.de>,
"Mars G. Miro" <marsgmiro@gmail.com>
Subject: [Qemu-devel] Re: ata devices on emulated amd64 on qemu
Date: Fri, 29 Jul 2005 20:22:28 -0400 [thread overview]
Message-ID: <200507292022.38135.jkim@FreeBSD.org> (raw)
In-Reply-To: <200507291647.49230.jkim@niksun.com>
[-- Attachment #1: Type: text/plain, Size: 387 bytes --]
Okay. I finally found a fix. It was actually quite simple. Newer
FreeBSD and Linux ATA drivers check whether the PCI ATA controller is
in legacy ATA mode (aka PATA mode). The test failed and it was
treated like a SATA controller. Of course, IRQ failed to map. ;-)
Try the attached patch. Tested with FreeBSD/amd64 6.0-BETA1 guest on
FreeBSD/amd64 host.
Cheers,
Jung-uk Kim
[-- Attachment #2: ide.diff --]
[-- Type: text/plain, Size: 411 bytes --]
--- qemu-0.7.1/hw/ide.c.orig Sun Jul 24 14:52:08 2005
+++ qemu-0.7.1/hw/ide.c Fri Jul 29 20:03:51 2005
@@ -2330,6 +2330,7 @@
pci_conf[0x01] = 0x80;
pci_conf[0x02] = 0x10;
pci_conf[0x03] = 0x70;
+ pci_conf[0x09] = 0x80; // legacy ATA mode
pci_conf[0x0a] = 0x01; // class_sub = PCI_IDE
pci_conf[0x0b] = 0x01; // class_base = PCI_mass_storage
pci_conf[0x0e] = 0x00; // header_type
next parent reply other threads:[~2005-07-30 0:33 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <28edec3c0507290000415a350d@mail.gmail.com>
[not found] ` <200507291540.52889.jkim@niksun.com>
[not found] ` <200507291647.49230.jkim@niksun.com>
2005-07-30 0:22 ` Jung-uk Kim [this message]
2005-07-30 11:57 ` [Qemu-devel] Re: ata devices on emulated amd64 on qemu Mars G. Miro
2005-08-01 2:57 ` Mars G. Miro
2005-08-01 3:30 ` Mars G. Miro
2005-08-01 9:30 ` Mars G. Miro
2005-08-01 21:54 ` Juergen Lock
2005-08-02 6:53 ` Mars G. Miro
2005-08-02 21:22 ` Juergen Lock
2005-08-02 21:55 ` Jung-uk Kim
2005-08-03 2:07 ` Mars G. Miro
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=200507292022.38135.jkim@FreeBSD.org \
--to=jkim@freebsd.org \
--cc=freebsd-emulation@FreeBSD.org \
--cc=marsgmiro@gmail.com \
--cc=nox@jelal.kn-bremen.de \
--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).