My objective is not to emulate the SATA disk in anyway, but to passthrough
all command the guest OS (either Windows or Linux) issued directly to the
underlying harddisk.

Will the following parameters achieved that goal?

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

In one PC (Intel-based) I found the "ich9-ahci" in the hardware description
output (using "lshw").

But in another PC (AMD-based) the "lshw" output is as follows:

        *-storage
             description: SATA controller
             product: FCH SATA Controller [AHCI mode]
             vendor: Advanced Micro Devices, Inc. [AMD]
             physical id: 11
             bus info: pci@0000:00:11.0
             version: 40
             width: 32 bits
             clock: 66MHz
             capabilities: storage msi ahci_1.0 bus_master cap_list
             configuration: driver=ahci latency=32
             resources: irq:83 ioport:f140(size=8) ioport:f130(size=4)
ioport:f120(size=8) ioport:f110(size=4) ioport:f100(size=16)
memory:feb70000-feb707ff

Now my question is:   Is it possible to modify the QEMU source code, or
pass in the correct parameters in the command line, so as provide direct
I/O access from the QEMU guest all the way to the underlying host's AHCI
sata bus (based on my AMD's hardware configuration as above)?


-- 
Regards,
Peter Teoh

Reply via email to