Re: Pe: [PATCH v5 1/3] virtio-scsi: first version

From: Paolo Bonzini
Date: Tue Feb 07 2012 - 06:26:16 EST

On 02/07/2012 12:10 PM, Michael S. Tsirkin wrote:
Also, lun[1] = sc->device->id means that only 255 SCSI target IDs will be
> >supported. Think about bigger usage scenarios, such as FCP networks with
> >several hundred HBAs in the net. If you want to have the target ID<->HBA
> >mapping the same as on the guest as on the host, then 255 virtual target
> >IDs could be a limit.
> I think you would hit other scalability limitations well before
> that. I plan to give each target its own MSI-X interrupt, but there
> is no infinite supplies of those either.
virtio-pci generally lets guests share MSI-X vectors between queues,
why not allow this here?

Yes, of course. However, with dozens of queues, many of them will share the same vector and all of them will be examined when you get the interrupt. Even if you find the right balance between sharing (because you have to) and separating (because of scalability), I wouldn't be surprised if more than 255 targets do not work too well.

Anyway multiqueue is not even in this patchset, so there's more work to do before we can worry. :)

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at