qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] How to modify QEMU source to read the bus for SATA dire


From: Paolo Bonzini
Subject: Re: [Qemu-devel] How to modify QEMU source to read the bus for SATA directly?
Date: Thu, 16 Apr 2015 16:39:06 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0


On 16/04/2015 16:26, Peter Teoh wrote:
> 
>     You can use PCI passthrough and let the guest use the whole SATA bus, if
>     you have another way to access other disks on the same bus (e.g. boot
>     from a USB stick or access the filesystems on NFS).
> 
>     Or you can use SCSI passthrough and pass the /dev/sdX device to the
>     guest, e.g.
> 
>         -device virtio-scsi-pci
>         -drive if=none,file=/dev/sdb,id=sdb,cache=none,format=raw
>         -device scsi-block,drive=sdb
> 
>     The guest then will talk to the host's ATA->SCSI translation layer, and
>     will be able to send raw ATA commands via the ATA PASSTHROUGH command.
> 
> Thank you very much, that answer saved me many hours of search/trial and
> errors.   And seems to work for now...need more testing.

FWIW, which one did you use and what kind of command did you need?

Paolo



reply via email to

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