How to emulate a SATA disk drive in QEMU
问题 I want to emulate a SATA disk drive in QEMU to check a device driver I'm trying to develop. How can this be done? Would greatly appreciate your help. 回答1: The Gentoo Wiki offers these parameters: -drive id=disk,file=IMAGE.img,if=none \ -device ahci,id=ahci \ -device ide-drive,drive=disk,bus=ahci.0 Set emulation layer for an ICH-9 AHCI controller (not yet stable ) and use the specified image file for it. The AHCI emulation supports NCQ, so multiple read or write requests can be outstanding at