qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] How to modify QEMU source to read the bus for SATA directly


From: Peter Teoh
Subject: [Qemu-devel] How to modify QEMU source to read the bus for SATA directly?
Date: Thu, 16 Apr 2015 21:25:16 +0800

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: address@hidden: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

[Prev in Thread] Current Thread [Next in Thread]