Re: [PATCH V2 0/6] tcm_vhost hotplug/hotunplug support and locking/flushing fix

2013-03-13 Thread Paolo Bonzini
Il 12/03/2013 10:55, Michael S. Tsirkin ha scritto:
  Why? Why should qemu prevent from improving the driver and the benefit
  to the other user of the driver? Kvm tool is already using it since last
  Aug. This adds the missing disk hotplug support to kvm tool.
 
 Basically we shouldn't add stuff to kernel for a single user.
 Before we commit to support features forever, let's take the time
 to see that the interfaces satisfy the requirements of multiple users.

The userspace components of vhost-scsi do not need any new kernel API to
get this new feature.  In fact, there is no new kernel API introduced by
the hotplug/hotunplug patches.

  Plus, this is not a pure feature, it is designed in virtio-scsi spec. 
 
 The spec doesn't say it's a mandatory feature or did I miss something?

It's not mandatory to support hotplug.  However, it is mandatory for the
device to provide an event virtqueue, even if it will never report an
event and it will do nothing with the virtqueue.  For this reason, a
compliant userspace must already have all the support for this.

Paolo
--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH V2 0/6] tcm_vhost hotplug/hotunplug support and locking/flushing fix

2013-03-12 Thread Michael S. Tsirkin
On Tue, Mar 12, 2013 at 10:31:09AM +0800, Asias He wrote:
 On Mon, Mar 11, 2013 at 02:03:27PM +0200, Michael S. Tsirkin wrote:
  On Fri, Mar 08, 2013 at 10:21:41AM +0800, Asias He wrote:
   Changes in v2:
   - Remove code duplication in tcm_vhost_{hotplug,hotunplug}
   - Fix racing of vs_events_nr
   - Add flush fix patch to this series
   Asias He (6):
 tcm_vhost: Add missed lock in vhost_scsi_clear_endpoint()
 tcm_vhost: Introduce tcm_vhost_check_feature()
 tcm_vhost: Introduce tcm_vhost_check_endpoint()
 tcm_vhost: Fix vs-vs_endpoint checking in vhost_scsi_handle_vq()
 tcm_vhost: Add hotplug/hotunplug support
 tcm_vhost: Flush vhost_work in vhost_scsi_flush()
   
  
  Are all these patches bugfixes?
 
 Nope.
 
  Please don't add any more features in kernel until qemu starts using
  this driver. 
 
 Why? Why should qemu prevent from improving the driver and the benefit
 to the other user of the driver? Kvm tool is already using it since last
 Aug. This adds the missing disk hotplug support to kvm tool.

Basically we shouldn't add stuff to kernel for a single user.
Before we commit to support features forever, let's take the time
to see that the interfaces satisfy the requirements of multiple users.
It doesn't have to be qemu but we need to see several users.

 Plus, this
 is not a pure feature, it is designed in virtio-scsi spec. 

The spec doesn't say it's a mandatory feature or did I miss something?

  We put it in kernel after at the KVM forum it looked like
  everyone agrees it's useful and qemu and kvmtool will use it, but it has
  been in kernel since July and qemu patches are still outstanding.
 
 I am working on the qemu bits where Paolo and Nicholas left.

Great.

  If only part of the patches are bugfixes could you please separate them
  out and submit for 3.9?
 
 I will separate patch 2 and 5 for hotplug support and others for
 bugfixes.

Thanks.

  Thanks,
  
drivers/vhost/tcm_vhost.c | 243 
   --
drivers/vhost/tcm_vhost.h |  10 ++
2 files changed, 247 insertions(+), 6 deletions(-)
   
   -- 
   1.8.1.4
 
 -- 
 Asias
--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH V2 0/6] tcm_vhost hotplug/hotunplug support and locking/flushing fix

2013-03-12 Thread Asias He
On Tue, Mar 12, 2013 at 11:55:14AM +0200, Michael S. Tsirkin wrote:
 On Tue, Mar 12, 2013 at 10:31:09AM +0800, Asias He wrote:
  On Mon, Mar 11, 2013 at 02:03:27PM +0200, Michael S. Tsirkin wrote:
   On Fri, Mar 08, 2013 at 10:21:41AM +0800, Asias He wrote:
Changes in v2:
- Remove code duplication in tcm_vhost_{hotplug,hotunplug}
- Fix racing of vs_events_nr
- Add flush fix patch to this series
Asias He (6):
  tcm_vhost: Add missed lock in vhost_scsi_clear_endpoint()
  tcm_vhost: Introduce tcm_vhost_check_feature()
  tcm_vhost: Introduce tcm_vhost_check_endpoint()
  tcm_vhost: Fix vs-vs_endpoint checking in vhost_scsi_handle_vq()
  tcm_vhost: Add hotplug/hotunplug support
  tcm_vhost: Flush vhost_work in vhost_scsi_flush()

   
   Are all these patches bugfixes?
  
  Nope.
  
   Please don't add any more features in kernel until qemu starts using
   this driver. 
  
  Why? Why should qemu prevent from improving the driver and the benefit
  to the other user of the driver? Kvm tool is already using it since last
  Aug. This adds the missing disk hotplug support to kvm tool.
 
 Basically we shouldn't add stuff to kernel for a single user.
 Before we commit to support features forever, let's take the time
 to see that the interfaces satisfy the requirements of multiple users.
 It doesn't have to be qemu but we need to see several users.

Well, this makes make sense to me.

  Plus, this
  is not a pure feature, it is designed in virtio-scsi spec. 
 
 The spec doesn't say it's a mandatory feature or did I miss something?

No, it's not mandatory.

   We put it in kernel after at the KVM forum it looked like
   everyone agrees it's useful and qemu and kvmtool will use it, but it has
   been in kernel since July and qemu patches are still outstanding.
  
  I am working on the qemu bits where Paolo and Nicholas left.
 
 Great.
 
   If only part of the patches are bugfixes could you please separate them
   out and submit for 3.9?
  
  I will separate patch 2 and 5 for hotplug support and others for
  bugfixes.
 
 Thanks.
 
   Thanks,
   
 drivers/vhost/tcm_vhost.c | 243 
--
 drivers/vhost/tcm_vhost.h |  10 ++
 2 files changed, 247 insertions(+), 6 deletions(-)

-- 
1.8.1.4
  
  -- 
  Asias

-- 
Asias
--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH V2 0/6] tcm_vhost hotplug/hotunplug support and locking/flushing fix

2013-03-11 Thread Michael S. Tsirkin
On Fri, Mar 08, 2013 at 10:21:41AM +0800, Asias He wrote:
 Changes in v2:
 - Remove code duplication in tcm_vhost_{hotplug,hotunplug}
 - Fix racing of vs_events_nr
 - Add flush fix patch to this series
 Asias He (6):
   tcm_vhost: Add missed lock in vhost_scsi_clear_endpoint()
   tcm_vhost: Introduce tcm_vhost_check_feature()
   tcm_vhost: Introduce tcm_vhost_check_endpoint()
   tcm_vhost: Fix vs-vs_endpoint checking in vhost_scsi_handle_vq()
   tcm_vhost: Add hotplug/hotunplug support
   tcm_vhost: Flush vhost_work in vhost_scsi_flush()
 

Are all these patches bugfixes?

Please don't add any more features in kernel until qemu starts using
this driver.  We put it in kernel after at the KVM forum it looked like
everyone agrees it's useful and qemu and kvmtool will use it, but it has
been in kernel since July and qemu patches are still outstanding.

If only part of the patches are bugfixes could you please separate them
out and submit for 3.9?

Thanks,

  drivers/vhost/tcm_vhost.c | 243 
 --
  drivers/vhost/tcm_vhost.h |  10 ++
  2 files changed, 247 insertions(+), 6 deletions(-)
 
 -- 
 1.8.1.4
--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH V2 0/6] tcm_vhost hotplug/hotunplug support and locking/flushing fix

2013-03-11 Thread Asias He
On Mon, Mar 11, 2013 at 02:03:27PM +0200, Michael S. Tsirkin wrote:
 On Fri, Mar 08, 2013 at 10:21:41AM +0800, Asias He wrote:
  Changes in v2:
  - Remove code duplication in tcm_vhost_{hotplug,hotunplug}
  - Fix racing of vs_events_nr
  - Add flush fix patch to this series
  Asias He (6):
tcm_vhost: Add missed lock in vhost_scsi_clear_endpoint()
tcm_vhost: Introduce tcm_vhost_check_feature()
tcm_vhost: Introduce tcm_vhost_check_endpoint()
tcm_vhost: Fix vs-vs_endpoint checking in vhost_scsi_handle_vq()
tcm_vhost: Add hotplug/hotunplug support
tcm_vhost: Flush vhost_work in vhost_scsi_flush()
  
 
 Are all these patches bugfixes?

Nope.

 Please don't add any more features in kernel until qemu starts using
 this driver. 

Why? Why should qemu prevent from improving the driver and the benefit
to the other user of the driver? Kvm tool is already using it since last
Aug. This adds the missing disk hotplug support to kvm tool. Plus, this
is not a pure feature, it is designed in virtio-scsi spec. 

 We put it in kernel after at the KVM forum it looked like
 everyone agrees it's useful and qemu and kvmtool will use it, but it has
 been in kernel since July and qemu patches are still outstanding.

I am working on the qemu bits where Paolo and Nicholas left.

 If only part of the patches are bugfixes could you please separate them
 out and submit for 3.9?

I will separate patch 2 and 5 for hotplug support and others for
bugfixes.

 Thanks,
 
   drivers/vhost/tcm_vhost.c | 243 
  --
   drivers/vhost/tcm_vhost.h |  10 ++
   2 files changed, 247 insertions(+), 6 deletions(-)
  
  -- 
  1.8.1.4

-- 
Asias
--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH V2 0/6] tcm_vhost hotplug/hotunplug support and locking/flushing fix

2013-03-08 Thread Stefan Hajnoczi
On Fri, Mar 08, 2013 at 10:21:41AM +0800, Asias He wrote:
 Changes in v2:
 - Remove code duplication in tcm_vhost_{hotplug,hotunplug}
 - Fix racing of vs_events_nr
 - Add flush fix patch to this series
 
 Asias He (6):
   tcm_vhost: Add missed lock in vhost_scsi_clear_endpoint()
   tcm_vhost: Introduce tcm_vhost_check_feature()
   tcm_vhost: Introduce tcm_vhost_check_endpoint()
   tcm_vhost: Fix vs-vs_endpoint checking in vhost_scsi_handle_vq()
   tcm_vhost: Add hotplug/hotunplug support
   tcm_vhost: Flush vhost_work in vhost_scsi_flush()
 
  drivers/vhost/tcm_vhost.c | 243 
 --
  drivers/vhost/tcm_vhost.h |  10 ++
  2 files changed, 247 insertions(+), 6 deletions(-)
 
 -- 
 1.8.1.4
 

Reviewed-by: Stefan Hajnoczi stefa...@redhat.com
--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html