Skip to contentSkip to conversation

future of the virtio-blk serial number support

Qemu-devel Christoph Hellwig 5 participants 5 messages Jan 28, 2010

lore
Share & tools
lore
#0 lore raw

Back iSeptember 2007 Michael made the serial number support in qemu optional and off by default, and in October 2009 Rusty reverted the Linux virtio-blk support for it. Given that I can't find support in any other virtio implementation that makes the feature look essentially dead.

How should we proceed with adding more fields to struct virtio_blk_config? I would suggest removing the identity field, declaring VIRTIO_BLK_F_IDENTIFY officially deprecated and adding the new fields directly after blk_size again, maybe with a comment that these new features can't be advertized together with VIRTIO_BLK_F_IDENTIFY.

I need to add a new optiomal_io_size field soon to support the block topology information when using virtio which is quite important when using RAID arrays as backend, and I'd prefer to do it in a way that's compatibly with the PCI spec.

#1 lore raw
Quoted 12 lines · Christoph Hellwig

Back iSeptember 2007 Michael made the serial number support in qemu optional and off by default, and in October 2009 Rusty reverted the Linux virtio-blk support for it. Given that I can't find support in any other virtio implementation that makes the feature look essentially dead.

How should we proceed with adding more fields to struct virtio_blk_config? I would suggest removing the identity field, declaring VIRTIO_BLK_F_IDENTIFY officially deprecated and adding the new fields directly after blk_size again, maybe with a comment that these new features can't be advertized together with VIRTIO_BLK_F_IDENTIFY.

Quoted 4 lines

I need to add a new optiomal_io_size field soon to support the block topology information when using virtio which is quite important when using RAID arrays as backend, and I'd prefer to do it in a way that's compatibly with the PCI spec.

Makes sense to me.

#2 lore raw
In reply to Christoph Hellwig
Quoted 12 lines · Christoph Hellwig

Back iSeptember 2007 Michael made the serial number support in qemu optional and off by default, and in October 2009 Rusty reverted the Linux virtio-blk support for it. Given that I can't find support in any other virtio implementation that makes the feature look essentially dead.

How should we proceed with adding more fields to struct virtio_blk_config? I would suggest removing the identity field, declaring VIRTIO_BLK_F_IDENTIFY officially deprecated and adding the new fields directly after blk_size again, maybe with a comment that these new features can't be advertized together with VIRTIO_BLK_F_IDENTIFY.

Quoted 5 lines

I need to add a new optiomal_io_size field soon to support the block topology information when using virtio which is quite important when using RAID arrays as backend, and I'd prefer to do it in a way that's compatibly with the PCI spec.

Sounds good to me. IDENTIFY is basically impossible to implement in it's current form with virtio-pci.

We should put something in the spec mentioning that config space is limited and large values should not be placed in it. Instead, implementations should use a control ring queue to pass large data sets.

Regards,

Anthony Liguori

#3 lore raw
In reply to Christoph Hellwig
Quoted 11 lines · Christoph Hellwig

Back iSeptember 2007 Michael made the serial number support in qemu optional and off by default, and in October 2009 Rusty reverted the Linux virtio-blk support for it. Given that I can't find support in any other virtio implementation that makes the feature look essentially dead.

How should we proceed with adding more fields to struct virtio_blk_config? I would suggest removing the identity field, declaring VIRTIO_BLK_F_IDENTIFY officially deprecated and adding the new fields directly after blk_size again, maybe with a comment that these new features can't be advertized together with VIRTIO_BLK_F_IDENTIFY.

Agreed. Feel free to remove it from the PCI
config space. Its an artifact at this point
and I wouldn't even worry about deprecating
it.

-john

Signature · 1 line
[email protected]
#4 lore raw
In reply to Christoph Hellwig
Quoted 11 lines · Christoph Hellwig

Back iSeptember 2007 Michael made the serial number support in qemu optional and off by default, and in October 2009 Rusty reverted the Linux virtio-blk support for it. Given that I can't find support in any other virtio implementation that makes the feature look essentially dead.

How should we proceed with adding more fields to struct virtio_blk_config? I would suggest removing the identity field, declaring VIRTIO_BLK_F_IDENTIFY officially deprecated and adding the new fields directly after blk_size again, maybe with a comment that these new features can't be advertized together with VIRTIO_BLK_F_IDENTIFY.

Yes, this is the correct approach.

Agreed,
Rusty.