All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: Peter Teoh <htmldeveloper@gmail.com>
Cc: qemu-devel@nongnu.org
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	[thread overview]
Message-ID: <552FC98A.7080000@redhat.com> (raw)
In-Reply-To: <CAHnt0GWxnDK-b9GSnmDfH=b1hXQt=YOUt4MsrF_67Qpz-bV2sw@mail.gmail.com>



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	other threads:[~2015-04-16 14:39 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-16 13:25 [Qemu-devel] How to modify QEMU source to read the bus for SATA directly? Peter Teoh
2015-04-16 13:43 ` Paolo Bonzini
2015-04-16 14:26   ` Peter Teoh
2015-04-16 14:39     ` Paolo Bonzini [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=552FC98A.7080000@redhat.com \
    --to=pbonzini@redhat.com \
    --cc=htmldeveloper@gmail.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.