Hi,Alexander Graf.
I am very glad you noticed my patch about ahci.I love qemu just like I love linux.I wish I could do much more work on
qemu development.
I had cloned qemu from master branch,add my patch into it,and tested ahci on
i386 softmmu.
If anyone is interested on ahci,you can test my patch like this:
git-clone -ls git://git.savannah.nongnu.org/qemu
patch -p1 -i 0001-add-ahci-support-into-qemu-only-support-sata-disk.patch
patch -p1 -i 0002-add-ahci-device-into-i386-pc-just-for-test.patch
./configure --target-list=i386-softmmu
make
dd if=/dev/zero of=/tmp/disk bs=1M count=100
./i386-softmmu/qemu -cdrom KNOPPIX_V6.0.1CD-2009-02-08-EN.iso -boot d -drive
if=sd,file=/tmp/disk
After linux boot,you will find a ahci device named sda.
Now this patch only support sata disk.
Most ahci registers and operations which are not necessary on linux are ignored.
Now this patch support disk identify,dma read,dma write,ignore other opertions.