PCI native mode ATA in QEMU or bochs

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
User avatar
dlandahl
Posts: 2
Joined: Fri May 20, 2022 5:10 am

PCI native mode ATA in QEMU or bochs

Post by dlandahl »

I'm trying to write an example program for driving a native-mode ATA/IDE controller. Since it's for other people to use, I would like it to run specifically in bochs and/or QEMU. But, the ATA devices in those emulators are always in compatibility mode, and the mode cannot be changed (the low four bits of the PROG IF byte in the PCI configuration space are clear). I've tried to configure each of bochs and QEMU to allow running a PCI native mode IDE driver, but I can't figure it out for either of them - is it possible to do this?
Octocontrabass
Member
Member
Posts: 5560
Joined: Mon Mar 25, 2013 7:01 pm

Re: PCI native mode ATA in QEMU or bochs

Post by Octocontrabass »

It doesn't seem to be possible.

Bochs does not emulate any PCI IDE controllers with native mode.

QEMU does emulate some PCI IDE controllers with native mode, but it seems like they only work in non-x86 machines. In x86 machines, you're stuck with compatibility mode.
Post Reply