Page 1 of 1

Do any emulators support SATA?

Posted: Wed Mar 27, 2013 6:27 am
by Sublimacija
I intend to run my OS on my computer which has no IDE controller, while qemu and bochs seem not to have anything but an IDE controller.
I'd rather not develop and test a SATA driver on my real computer as I'm not crazy about rebooting every 5 min when debugging or the possibility of corrupting my file systems. Thus I ask if there is some way I could test it in an emulated environment.

Re: Does any emulators support SATA?

Posted: Wed Mar 27, 2013 7:54 am
by IanSeyler
VirtualBox supports SATA emulation (I think it may be the only emulator that does). I used it when developing the AHCI driver that BareMetal OS uses.

Re: Does any emulators support SATA?

Posted: Wed Mar 27, 2013 7:59 am
by Kevin
qemu supports it as well, it's just that the syntax is a bit non-obvious.

Code: Select all

qemu-system-x86_64 \
    -drive file=...,if=none,id=mydisk \
    -device ich9-ahci,id=ahci \
    -device ide-drive,drive=mydisk,bus=ahci.0