qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Configure virtio-scsi options via libvirt
@ 2014-05-06 23:13 Mike Perez
  2014-05-07  8:08 ` Stefan Hajnoczi
  2014-05-07  8:24 ` [Qemu-devel] [libvirt] " Ján Tomko
  0 siblings, 2 replies; 6+ messages in thread
From: Mike Perez @ 2014-05-06 23:13 UTC (permalink / raw)
  To: libvir-list; +Cc: pbonzini, nab, qemu-devel, stefanha

Hi everyone,

I would like be able to configure virtio-scsi options num_queues, max_sectors,
and cmd_per_lun via libvirt. Are there any plans to have this support?

-- 
Mike Perez

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

* Re: [Qemu-devel] Configure virtio-scsi options via libvirt
  2014-05-06 23:13 [Qemu-devel] Configure virtio-scsi options via libvirt Mike Perez
@ 2014-05-07  8:08 ` Stefan Hajnoczi
  2014-05-08  7:24   ` Mike Perez
  2014-05-07  8:24 ` [Qemu-devel] [libvirt] " Ján Tomko
  1 sibling, 1 reply; 6+ messages in thread
From: Stefan Hajnoczi @ 2014-05-07  8:08 UTC (permalink / raw)
  To: Mike Perez; +Cc: libvir-list, pbonzini, nab, qemu-devel

On Tue, May 06, 2014 at 04:13:50PM -0700, Mike Perez wrote:
> I would like be able to configure virtio-scsi options num_queues, max_sectors,
> and cmd_per_lun via libvirt. Are there any plans to have this support?

Hi Mike,
I'm not sure about the status of libvirt support for virtio-scsi options
but in the meantime you can use <qemu:commandline> passthrough:

http://blog.vmsplice.net/2011/04/how-to-pass-qemu-command-line-options.html

Stefan

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

* Re: [Qemu-devel] [libvirt] Configure virtio-scsi options via libvirt
  2014-05-06 23:13 [Qemu-devel] Configure virtio-scsi options via libvirt Mike Perez
  2014-05-07  8:08 ` Stefan Hajnoczi
@ 2014-05-07  8:24 ` Ján Tomko
  2014-05-08  9:05   ` Daniel P. Berrange
  1 sibling, 1 reply; 6+ messages in thread
From: Ján Tomko @ 2014-05-07  8:24 UTC (permalink / raw)
  To: Mike Perez, libvir-list; +Cc: pbonzini, nab, qemu-devel, stefanha

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

On 05/07/2014 01:13 AM, Mike Perez wrote:
> Hi everyone,
> 
> I would like be able to configure virtio-scsi options num_queues, max_sectors,
> and cmd_per_lun via libvirt. Are there any plans to have this support?
> 

num_queues is supported for virtio-scsi controllers since libvirt 1.0.5:

    <controller type='scsi' index='0' model='virtio-scsi'>
      <driver queues='8'/>
    </controller>

http://libvirt.org/git/?p=libvirt.git;a=commit;h=d4bf0a9

Jan


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

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

* Re: [Qemu-devel] Configure virtio-scsi options via libvirt
  2014-05-07  8:08 ` Stefan Hajnoczi
@ 2014-05-08  7:24   ` Mike Perez
  2014-05-08  8:44     ` Paolo Bonzini
  0 siblings, 1 reply; 6+ messages in thread
From: Mike Perez @ 2014-05-08  7:24 UTC (permalink / raw)
  To: Stefan Hajnoczi; +Cc: libvir-list, pbonzini, nab, qemu-devel

On 10:08 Wed 07 May     , Stefan Hajnoczi wrote:
> On Tue, May 06, 2014 at 04:13:50PM -0700, Mike Perez wrote:
> > I would like be able to configure virtio-scsi options num_queues, max_sectors,
> > and cmd_per_lun via libvirt. Are there any plans to have this support?
> 
> Hi Mike,
> I'm not sure about the status of libvirt support for virtio-scsi options
> but in the meantime you can use <qemu:commandline> passthrough:
> 
> http://blog.vmsplice.net/2011/04/how-to-pass-qemu-command-line-options.html
> 
> Stefan

Thanks Stefan,

My plan is to write the support in OpenStack, which unfortunately does not
accept patches doing qemu passthrough:

http://lists.openstack.org/pipermail/openstack-dev/2013-November/018551.html

-- 
Mike Perez

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

* Re: [Qemu-devel] Configure virtio-scsi options via libvirt
  2014-05-08  7:24   ` Mike Perez
@ 2014-05-08  8:44     ` Paolo Bonzini
  0 siblings, 0 replies; 6+ messages in thread
From: Paolo Bonzini @ 2014-05-08  8:44 UTC (permalink / raw)
  To: Mike Perez, Stefan Hajnoczi; +Cc: libvir-list, nab, qemu-devel

Il 08/05/2014 09:24, Mike Perez ha scritto:
> On 10:08 Wed 07 May     , Stefan Hajnoczi wrote:
>> On Tue, May 06, 2014 at 04:13:50PM -0700, Mike Perez wrote:
>>> I would like be able to configure virtio-scsi options num_queues, max_sectors,
>>> and cmd_per_lun via libvirt. Are there any plans to have this support?
>>
>> Hi Mike,
>> I'm not sure about the status of libvirt support for virtio-scsi options
>> but in the meantime you can use <qemu:commandline> passthrough:
>>
>> http://blog.vmsplice.net/2011/04/how-to-pass-qemu-command-line-options.html
>>
>> Stefan
>
> Thanks Stefan,
>
> My plan is to write the support in OpenStack, which unfortunately does not
> accept patches doing qemu passthrough:
>
> http://lists.openstack.org/pipermail/openstack-dev/2013-November/018551.html

Why do you need such fine-grained control?  The higher you go in the 
stack, the simpler configuration should be in my opinion.

For openstack, I think all you need is a singlequeue vs. multiqueue knob 
(setting num_queues = # VCPUs for multiqueue).

Paolo

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

* Re: [Qemu-devel] [libvirt] Configure virtio-scsi options via libvirt
  2014-05-07  8:24 ` [Qemu-devel] [libvirt] " Ján Tomko
@ 2014-05-08  9:05   ` Daniel P. Berrange
  0 siblings, 0 replies; 6+ messages in thread
From: Daniel P. Berrange @ 2014-05-08  9:05 UTC (permalink / raw)
  To: Ján Tomko
  Cc: Mike Perez, libvir-list, qemu-devel, stefanha, pbonzini, nab

On Wed, May 07, 2014 at 10:24:54AM +0200, Ján Tomko wrote:
> On 05/07/2014 01:13 AM, Mike Perez wrote:
> > Hi everyone,
> > 
> > I would like be able to configure virtio-scsi options num_queues, max_sectors,
> > and cmd_per_lun via libvirt. Are there any plans to have this support?
> > 
> 
> num_queues is supported for virtio-scsi controllers since libvirt 1.0.5:

If anyone wants to contribute patches for the other two properties I
would not be a very difficult/large coding job to undertake. I'm not
aware of anyone else who is currently working on it, so anyone please
jump right in...

Regards,
Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|

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

end of thread, other threads:[~2014-05-08  9:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-06 23:13 [Qemu-devel] Configure virtio-scsi options via libvirt Mike Perez
2014-05-07  8:08 ` Stefan Hajnoczi
2014-05-08  7:24   ` Mike Perez
2014-05-08  8:44     ` Paolo Bonzini
2014-05-07  8:24 ` [Qemu-devel] [libvirt] " Ján Tomko
2014-05-08  9:05   ` Daniel P. Berrange

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).