All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] SSD virtio-scsi passthrough
@ 2018-02-21  9:21 Nitin Gupta
  2018-03-06 11:34 ` Stefan Hajnoczi
  0 siblings, 1 reply; 5+ messages in thread
From: Nitin Gupta @ 2018-02-21  9:21 UTC (permalink / raw)
  To: qemu-devel

Dear Qemu Team

Please let me know the qemu command for doing ssd virtio-scsi passthrough .
i am able to do the pass through with virsh .but same command when i am
trying with qemu , VM is not coming up

Please let me know how can i proceed further . any help will be appreciated

Regards
nitin

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] SSD virtio-scsi passthrough
  2018-02-21  9:21 [Qemu-devel] SSD virtio-scsi passthrough Nitin Gupta
@ 2018-03-06 11:34 ` Stefan Hajnoczi
  2018-03-12  8:16   ` Nitin Gupta
  0 siblings, 1 reply; 5+ messages in thread
From: Stefan Hajnoczi @ 2018-03-06 11:34 UTC (permalink / raw)
  To: Nitin Gupta; +Cc: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 557 bytes --]

On Wed, Feb 21, 2018 at 02:51:38PM +0530, Nitin Gupta wrote:
> Please let me know the qemu command for doing ssd virtio-scsi passthrough .
> i am able to do the pass through with virsh .but same command when i am
> trying with qemu , VM is not coming up
> 
> Please let me know how can i proceed further . any help will be appreciated

Something like this:

  -drive if=none,id=drive0,file=/dev/sdX,format=raw,aio=native,cache=none
  -device virtio-scsi-pci,id=virtio-scsi-pci0
  -device scsi-block,drive=drive0,bus=virtio-scsi-pci0.0

Stefan

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 455 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] SSD virtio-scsi passthrough
  2018-03-06 11:34 ` Stefan Hajnoczi
@ 2018-03-12  8:16   ` Nitin Gupta
  2018-03-16  7:46     ` Fam Zheng
  0 siblings, 1 reply; 5+ messages in thread
From: Nitin Gupta @ 2018-03-12  8:16 UTC (permalink / raw)
  To: Stefan Hajnoczi; +Cc: qemu-devel

Hi   Stefan

Thanks for your response , i tried the the command provided by you and it
did not work as well
somehow i find that  after changing the controller to LSI in qemu command
it started working , please find command below

-device lsi,id=scsi0,bus=pci.0,addr=0xa    -drive
file=/dev/sdc,format=raw,if=none,id=drive-scsi1-0-0-0,cache=none -device
scsi-block,bus=scsi1.0,channel=0,scsi-id=0,lun=0,drive=drive-scsi1-0-0-0,id=scsi1-0-0-0


looks like virtio-pci is not able to bind when i am using qemu command ,
its working with virsh(libvirt).

Regards
Nitin

On Tue, Mar 6, 2018 at 5:04 PM, Stefan Hajnoczi <stefanha@gmail.com> wrote:

> On Wed, Feb 21, 2018 at 02:51:38PM +0530, Nitin Gupta wrote:
> > Please let me know the qemu command for doing ssd virtio-scsi
> passthrough .
> > i am able to do the pass through with virsh .but same command when i am
> > trying with qemu , VM is not coming up
> >
> > Please let me know how can i proceed further . any help will be
> appreciated
>
> Something like this:
>
>   -drive if=none,id=drive0,file=/dev/sdX,format=raw,aio=native,cache=none
>   -device virtio-scsi-pci,id=virtio-scsi-pci0
>   -device scsi-block,drive=drive0,bus=virtio-scsi-pci0.0
>
> Stefan
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] SSD virtio-scsi passthrough
  2018-03-12  8:16   ` Nitin Gupta
@ 2018-03-16  7:46     ` Fam Zheng
  2018-03-16  8:19       ` Nitin Gupta
  0 siblings, 1 reply; 5+ messages in thread
From: Fam Zheng @ 2018-03-16  7:46 UTC (permalink / raw)
  To: Nitin Gupta; +Cc: Stefan Hajnoczi, QEMU Developers

On Mon, Mar 12, 2018 at 4:16 PM, Nitin Gupta <nitin.gupta981@gmail.com> wrote:
> Hi   Stefan
>
> Thanks for your response , i tried the the command provided by you and it
> did not work as well
> somehow i find that  after changing the controller to LSI in qemu command
> it started working , please find command below
>
> -device lsi,id=scsi0,bus=pci.0,addr=0xa    -drive
> file=/dev/sdc,format=raw,if=none,id=drive-scsi1-0-0-0,cache=none -device
> scsi-block,bus=scsi1.0,channel=0,scsi-id=0,lun=0,drive=drive-scsi1-0-0-0,id=scsi1-0-0-0
>
>
> looks like virtio-pci is not able to bind when i am using qemu command ,
> its working with virsh(libvirt).

Can you post the error message you've seen with virtio-scsi?

Fam

>
> Regards
> Nitin
>
> On Tue, Mar 6, 2018 at 5:04 PM, Stefan Hajnoczi <stefanha@gmail.com> wrote:
>
>> On Wed, Feb 21, 2018 at 02:51:38PM +0530, Nitin Gupta wrote:
>> > Please let me know the qemu command for doing ssd virtio-scsi
>> passthrough .
>> > i am able to do the pass through with virsh .but same command when i am
>> > trying with qemu , VM is not coming up
>> >
>> > Please let me know how can i proceed further . any help will be
>> appreciated
>>
>> Something like this:
>>
>>   -drive if=none,id=drive0,file=/dev/sdX,format=raw,aio=native,cache=none
>>   -device virtio-scsi-pci,id=virtio-scsi-pci0
>>   -device scsi-block,drive=drive0,bus=virtio-scsi-pci0.0
>>
>> Stefan
>>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] SSD virtio-scsi passthrough
  2018-03-16  7:46     ` Fam Zheng
@ 2018-03-16  8:19       ` Nitin Gupta
  0 siblings, 0 replies; 5+ messages in thread
From: Nitin Gupta @ 2018-03-16  8:19 UTC (permalink / raw)
  To: Fam Zheng; +Cc: Stefan Hajnoczi, QEMU Developers

Vm just hang in  Escape character , there is no error ..but from the qemu
control window i am able to see sdc is passthrough

Regards
Nitin

On Fri, Mar 16, 2018 at 1:16 PM, Fam Zheng <famz@redhat.com> wrote:

> On Mon, Mar 12, 2018 at 4:16 PM, Nitin Gupta <nitin.gupta981@gmail.com>
> wrote:
> > Hi   Stefan
> >
> > Thanks for your response , i tried the the command provided by you and it
> > did not work as well
> > somehow i find that  after changing the controller to LSI in qemu command
> > it started working , please find command below
> >
> > -device lsi,id=scsi0,bus=pci.0,addr=0xa    -drive
> > file=/dev/sdc,format=raw,if=none,id=drive-scsi1-0-0-0,cache=none -device
> > scsi-block,bus=scsi1.0,channel=0,scsi-id=0,lun=0,
> drive=drive-scsi1-0-0-0,id=scsi1-0-0-0
> >
> >
> > looks like virtio-pci is not able to bind when i am using qemu command ,
> > its working with virsh(libvirt).
>
> Can you post the error message you've seen with virtio-scsi?
>
> Fam
>
> >
> > Regards
> > Nitin
> >
> > On Tue, Mar 6, 2018 at 5:04 PM, Stefan Hajnoczi <stefanha@gmail.com>
> wrote:
> >
> >> On Wed, Feb 21, 2018 at 02:51:38PM +0530, Nitin Gupta wrote:
> >> > Please let me know the qemu command for doing ssd virtio-scsi
> >> passthrough .
> >> > i am able to do the pass through with virsh .but same command when i
> am
> >> > trying with qemu , VM is not coming up
> >> >
> >> > Please let me know how can i proceed further . any help will be
> >> appreciated
> >>
> >> Something like this:
> >>
> >>   -drive if=none,id=drive0,file=/dev/sdX,format=raw,aio=native,
> cache=none
> >>   -device virtio-scsi-pci,id=virtio-scsi-pci0
> >>   -device scsi-block,drive=drive0,bus=virtio-scsi-pci0.0
> >>
> >> Stefan
> >>
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-03-16  8:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-21  9:21 [Qemu-devel] SSD virtio-scsi passthrough Nitin Gupta
2018-03-06 11:34 ` Stefan Hajnoczi
2018-03-12  8:16   ` Nitin Gupta
2018-03-16  7:46     ` Fam Zheng
2018-03-16  8:19       ` Nitin Gupta

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.