[libvirt] [PATCHv2 1/2] S390: Enable virtio-scsi and virtio-rng

Eric Blake eblake at redhat.com
Thu Mar 14 17:56:57 UTC 2013


On 03/14/2013 11:52 AM, Viktor Mihajlovski wrote:
> On 03/14/2013 06:29 PM, Daniel P. Berrange wrote:
>>
>> Sorry, I think I should have been clearer before. I was only meaning to
>> reject the rename of the string. Renaming the exist enum symbol is fine,
>> as long as corresponding string is left unchanged. So no need for this
>> new enum entry.
>>
>>
>> Daniel
>>
> 
> I understood that this was technically feasible, however found it
> strange to use "virtio-scsi-pci" in a, say CCW context.
> If you think that this is only a minor quirk we can go that way.
> Just let me know ... it's only a stroke of the pen :-).

You can do s/QEMU_CAPS_VIRTIO_SCSI_PCI/QEMU_CAPS_VIRTIO_SCSI/ so that
the bulk of the code looks sane.  The only thing you can't do is rename
s/"virtio-scsi-pci"/"virtio-scsi"/, because that has impacts to XML
which is preserved over libvirtd restarts.  But you CAN do:

s|"virtio-scsi-pci";|& /* the -pci suffix is a back-compat historical
wart */|

and then you don't need a new cap bit.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 621 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20130314/89444087/attachment-0001.sig>


More information about the libvir-list mailing list