From: "Michael S. Tsirkin" <mst@redhat.com>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: Anthony Liguori <aliguori@us.ibm.com>,
Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>,
kvm-devel <kvm@vger.kernel.org>,
Jan Kiszka <jan.kiszka@siemens.com>,
qemu-devel <qemu-devel@nongnu.org>,
lf-virt <virtualization@lists.linux-foundation.org>,
Anthony Liguori <aliguori@linux.vnet.ibm.com>,
target-devel <target-devel@vger.kernel.org>,
Zhi Yong Wu <wuzhy@cn.ibm.com>, Christoph Hellwig <hch@lst.de>
Subject: Re: [PATCH 4/5] virtio-scsi: Add start/stop functionality for vhost-scsi
Date: Fri, 14 Sep 2012 15:34:16 +0300 [thread overview]
Message-ID: <20120914123416.GF1490@redhat.com> (raw)
In-Reply-To: <5052D277.7010900@redhat.com>
On Fri, Sep 14, 2012 at 08:45:11AM +0200, Paolo Bonzini wrote:
> Il 14/09/2012 00:27, Nicholas A. Bellinger ha scritto:
> > *) Keep vhost-scsi as a backend to virtio-scsi-pci
> >
> > - Reduces duplicated code amongst multiple virtio-scsi backends.
> >
> > - Follows the split for what existing vhost-net code already does.
> >
> > So that said, two quick questions for Paolo & Co..
> >
> > For the standalone vhost-scsi-pci device case, can you give a brief idea
> > as to what extent you'd like to see virtio-scsi.c code/defs duplicated
> > and/or shared amongst a new vhost-scsi-pci device..?
>
> Not much, in the end, would be shared; it could end up being just
> parts of virtio_scsi_init and virtio_scsi_exit, and virtio_scsi_get_config.
>
> Almost all the other code is to implement the SCSI bus interface,
> which you do not need.
>
> I don't remember if and how vhost handles configuration changes.
All configuration changes are handled in userspace.
> If you
> need any struct in virtio-scsi.c, either move it to virtio-scsi.h or
> add the new device in the same file.
>
> > Also to help me along, can you give an example based on the current
> > usage below how the QEMU command line arguments would change with a
> > standalone vhost-scsi-pci device..?
> >
> > ./x86_64-softmmu/qemu-system-x86_64 -enable-kvm -smp 4 -m 2048 \
> > -hda /usr/src/qemu-vhost.git/debian_squeeze_amd64_standard-old.qcow2 \
> > -vhost-scsi id=vhost-scsi0,wwpn=naa.600140579ad21088,tpgt=1 \
> > -device virtio-scsi-pci,vhost-scsi=vhost-scsi0,event_idx=off
>
> Two possibilities. Either simply do s/virtio-scsi-pci/vhost-scsi-pci/ or do
>
> ./x86_64-softmmu/qemu-system-x86_64 -enable-kvm -smp 4 -m 2048 \
> -hda /usr/src/qemu-vhost.git/debian_squeeze_amd64_standard-old.qcow2 \
> -device virtio-scsi-pci,wwpn=naa.600140579ad21088,tpgt=1,event_idx=off
I think I like the second option better.
--
MST
WARNING: multiple messages have this Message-ID (diff)
From: "Michael S. Tsirkin" <mst@redhat.com>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: Anthony Liguori <aliguori@us.ibm.com>,
Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>,
kvm-devel <kvm@vger.kernel.org>,
Jan Kiszka <jan.kiszka@siemens.com>,
Zhi Yong Wu <wuzhy@linux.vnet.ibm.com>,
qemu-devel <qemu-devel@nongnu.org>,
"Nicholas A. Bellinger" <nab@linux-iscsi.org>,
lf-virt <virtualization@lists.linux-foundation.org>,
Anthony Liguori <aliguori@linux.vnet.ibm.com>,
target-devel <target-devel@vger.kernel.org>,
Hannes Reinecke <hare@suse.de>, Zhi Yong Wu <wuzhy@cn.ibm.com>,
Christoph Hellwig <hch@lst.de>
Subject: Re: [Qemu-devel] [PATCH 4/5] virtio-scsi: Add start/stop functionality for vhost-scsi
Date: Fri, 14 Sep 2012 15:34:16 +0300 [thread overview]
Message-ID: <20120914123416.GF1490@redhat.com> (raw)
In-Reply-To: <5052D277.7010900@redhat.com>
On Fri, Sep 14, 2012 at 08:45:11AM +0200, Paolo Bonzini wrote:
> Il 14/09/2012 00:27, Nicholas A. Bellinger ha scritto:
> > *) Keep vhost-scsi as a backend to virtio-scsi-pci
> >
> > - Reduces duplicated code amongst multiple virtio-scsi backends.
> >
> > - Follows the split for what existing vhost-net code already does.
> >
> > So that said, two quick questions for Paolo & Co..
> >
> > For the standalone vhost-scsi-pci device case, can you give a brief idea
> > as to what extent you'd like to see virtio-scsi.c code/defs duplicated
> > and/or shared amongst a new vhost-scsi-pci device..?
>
> Not much, in the end, would be shared; it could end up being just
> parts of virtio_scsi_init and virtio_scsi_exit, and virtio_scsi_get_config.
>
> Almost all the other code is to implement the SCSI bus interface,
> which you do not need.
>
> I don't remember if and how vhost handles configuration changes.
All configuration changes are handled in userspace.
> If you
> need any struct in virtio-scsi.c, either move it to virtio-scsi.h or
> add the new device in the same file.
>
> > Also to help me along, can you give an example based on the current
> > usage below how the QEMU command line arguments would change with a
> > standalone vhost-scsi-pci device..?
> >
> > ./x86_64-softmmu/qemu-system-x86_64 -enable-kvm -smp 4 -m 2048 \
> > -hda /usr/src/qemu-vhost.git/debian_squeeze_amd64_standard-old.qcow2 \
> > -vhost-scsi id=vhost-scsi0,wwpn=naa.600140579ad21088,tpgt=1 \
> > -device virtio-scsi-pci,vhost-scsi=vhost-scsi0,event_idx=off
>
> Two possibilities. Either simply do s/virtio-scsi-pci/vhost-scsi-pci/ or do
>
> ./x86_64-softmmu/qemu-system-x86_64 -enable-kvm -smp 4 -m 2048 \
> -hda /usr/src/qemu-vhost.git/debian_squeeze_amd64_standard-old.qcow2 \
> -device virtio-scsi-pci,wwpn=naa.600140579ad21088,tpgt=1,event_idx=off
I think I like the second option better.
--
MST
next prev parent reply other threads:[~2012-09-14 12:34 UTC|newest]
Thread overview: 83+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-07 6:48 [PATCH 0/5] vhost-scsi: Add support for host virtualized target Nicholas A. Bellinger
2012-09-07 6:48 ` [Qemu-devel] " Nicholas A. Bellinger
2012-09-07 6:48 ` [PATCH 1/5] monitor: Rename+move net_handle_fd_param -> monitor_handle_fd_param Nicholas A. Bellinger
2012-09-07 6:48 ` Nicholas A. Bellinger
2012-09-07 6:48 ` [Qemu-devel] " Nicholas A. Bellinger
2012-09-07 6:48 ` [PATCH 2/5] vhost: Pass device path to vhost_dev_init() Nicholas A. Bellinger
2012-09-07 6:48 ` Nicholas A. Bellinger
2012-09-07 6:48 ` [Qemu-devel] " Nicholas A. Bellinger
2012-09-07 6:48 ` [PATCH 3/5] vhost-scsi: add -vhost-scsi host device for use with tcm-vhost Nicholas A. Bellinger
2012-09-07 6:48 ` Nicholas A. Bellinger
2012-09-07 6:48 ` [Qemu-devel] " Nicholas A. Bellinger
2012-09-07 6:48 ` [PATCH 4/5] virtio-scsi: Add start/stop functionality for vhost-scsi Nicholas A. Bellinger
2012-09-07 6:48 ` [Qemu-devel] " Nicholas A. Bellinger
2012-09-07 16:00 ` Paolo Bonzini
2012-09-07 16:00 ` [Qemu-devel] " Paolo Bonzini
2012-09-07 19:23 ` Nicholas A. Bellinger
2012-09-07 19:23 ` [Qemu-devel] " Nicholas A. Bellinger
2012-09-07 20:30 ` Paolo Bonzini
2012-09-07 20:30 ` [Qemu-devel] " Paolo Bonzini
2012-09-07 20:30 ` Paolo Bonzini
2012-09-08 22:40 ` Michael S. Tsirkin
2012-09-08 22:40 ` [Qemu-devel] " Michael S. Tsirkin
2012-09-10 6:16 ` Paolo Bonzini
2012-09-10 6:16 ` [Qemu-devel] " Paolo Bonzini
2012-09-10 6:24 ` Michael S. Tsirkin
2012-09-10 6:24 ` [Qemu-devel] " Michael S. Tsirkin
2012-09-10 6:42 ` Paolo Bonzini
2012-09-10 6:42 ` [Qemu-devel] " Paolo Bonzini
2012-09-10 6:49 ` Michael S. Tsirkin
2012-09-10 6:49 ` [Qemu-devel] " Michael S. Tsirkin
2012-09-10 6:42 ` Paolo Bonzini
2012-09-11 13:46 ` Anthony Liguori
2012-09-11 13:46 ` Anthony Liguori
2012-09-11 13:46 ` [Qemu-devel] " Anthony Liguori
2012-09-11 15:07 ` Michael S. Tsirkin
2012-09-11 15:07 ` [Qemu-devel] " Michael S. Tsirkin
2012-09-13 22:27 ` Nicholas A. Bellinger
2012-09-13 22:27 ` [Qemu-devel] " Nicholas A. Bellinger
2012-09-14 6:45 ` Paolo Bonzini
2012-09-14 6:45 ` [Qemu-devel] " Paolo Bonzini
2012-09-14 12:34 ` Michael S. Tsirkin [this message]
2012-09-14 12:34 ` Michael S. Tsirkin
2012-09-13 22:27 ` Nicholas A. Bellinger
2012-09-14 12:50 ` Michael S. Tsirkin
2012-09-14 12:50 ` [Qemu-devel] " Michael S. Tsirkin
2012-09-07 6:48 ` Nicholas A. Bellinger
2012-09-07 6:48 ` [PATCH 5/5] virtio-scsi: Set max_target=0 during vhost-scsi operation Nicholas A. Bellinger
2012-09-07 6:48 ` Nicholas A. Bellinger
2012-09-07 6:48 ` [Qemu-devel] " Nicholas A. Bellinger
2012-09-11 4:36 ` [PATCH 0/5] vhost-scsi: Add support for host virtualized target Asias He
2012-09-11 4:36 ` [Qemu-devel] " Asias He
2012-09-13 20:12 ` Nicholas A. Bellinger
2012-09-13 20:12 ` Nicholas A. Bellinger
2012-09-13 20:12 ` [Qemu-devel] " Nicholas A. Bellinger
2012-09-14 8:21 ` Paolo Bonzini
2012-09-14 8:21 ` [Qemu-devel] " Paolo Bonzini
2013-01-17 16:43 ` Michael S. Tsirkin
2013-01-17 16:43 ` Michael S. Tsirkin
2013-01-17 16:43 ` [Qemu-devel] " Michael S. Tsirkin
2013-01-17 21:07 ` Nicholas A. Bellinger
2013-01-17 21:07 ` [Qemu-devel] " Nicholas A. Bellinger
2013-01-21 8:50 ` Michael S. Tsirkin
2013-01-21 8:50 ` [Qemu-devel] " Michael S. Tsirkin
2013-01-28 13:01 ` Paolo Bonzini
2013-01-28 13:11 ` Michael S. Tsirkin
2013-01-28 13:29 ` Paolo Bonzini
2013-01-28 13:36 ` Michael S. Tsirkin
2013-01-28 13:33 ` Paolo Bonzini
2013-01-28 13:39 ` Michael S. Tsirkin
2013-01-29 19:19 ` Nicholas A. Bellinger
2013-01-29 21:03 ` Paolo Bonzini
2013-01-29 21:03 ` Paolo Bonzini
2013-01-29 22:38 ` Nicholas A. Bellinger
2013-01-29 22:38 ` Nicholas A. Bellinger
2013-01-29 19:19 ` Nicholas A. Bellinger
2013-01-21 13:28 ` Anthony Liguori
2013-01-17 21:07 ` Nicholas A. Bellinger
2013-04-02 3:28 ` [Qemu-devel] " Wenchao Xia
2013-04-02 3:28 ` Wenchao Xia
2013-04-02 3:28 ` Wenchao Xia
2013-04-02 5:07 ` Nicholas A. Bellinger
2013-04-02 5:07 ` Nicholas A. Bellinger
2013-04-02 5:07 ` Nicholas A. Bellinger
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=20120914123416.GF1490@redhat.com \
--to=mst@redhat.com \
--cc=aliguori@linux.vnet.ibm.com \
--cc=aliguori@us.ibm.com \
--cc=hch@lst.de \
--cc=jan.kiszka@siemens.com \
--cc=kvm@vger.kernel.org \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@linux.vnet.ibm.com \
--cc=target-devel@vger.kernel.org \
--cc=virtualization@lists.linux-foundation.org \
--cc=wuzhy@cn.ibm.com \
/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.