On 04/26/2013 04:30 PM, Cole Robinson wrote: > On 04/26/2013 02:58 AM, Martin Kletzander wrote: >> On 04/25/2013 07:55 PM, Cole Robinson wrote: >>> On 04/25/2013 06:45 AM, Martin Kletzander wrote: >>>> Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=952086 >>>> >>>> Signed-off-by: Martin Kletzander <mkletzan@xxxxxxxxxx> >>>> --- >>>> man/virt-install.pod | 6 +++++- >>>> 1 file changed, 5 insertions(+), 1 deletion(-) >>>> >>>> diff --git a/man/virt-install.pod b/man/virt-install.pod >>>> index 32eabc6..bf00284 100644 >>>> --- a/man/virt-install.pod >>>> +++ b/man/virt-install.pod >>>> @@ -847,7 +847,11 @@ a USB2 controller with fallback USB1 support. >>>> >>>> =item B<model> >>>> >>>> -Controller model. >>>> +Controller model. These may vary according to the hypervisor and its >>>> +version. Most commonly used models are e.g. B<auto>, B<virtio-scsi> >>>> +for the B<scsi> controller, B<ehci> or B<none> for the B<usb> >>>> +controller. For full list and further details on controllers/models, >>>> +see C<http://libvirt.org/formatdomain.html#elementsControllers>. >>>> >>>> =item B<address> >>>> >>> >>> ACK, please push. >>> >> >> Thanks, pushed. >> >>> Would be nice if we got to a point that --controller model=? could print out >>> all supported model values. Even better if we could get that info from libvirt >>> and not duplicate it internally. But that's not in the near term. >>> >> >> Definitely get the info from libvirt (which we can now partially do from >> the RNG scheme, but that seems pretty cumbersome to me). >> > > Is there an API to access RNG or do we just pull from the local FS? Either way > probably not too cumbersome if we use standard libs to parse it, certainly > better than constantly having to update our whitelists. > Unfortunately, the schemes are not part of any API, but they should be supplied in the libvirt-client rpm. I haven't found any RelaxNG parsing utilities that would easily got us the info, although in my imagination it was something like: parser.xpath('/domain/device/controller').validAttribs('type') returns [['fdc', 'ide', 'sata', 'ccid'], ['scsi'], ['usb'], ['pci']] parser.xpath('/domain/device/controller[@type="pci"]').validAttribs('model') returns ['pci-root', 'pci-bridge'] And I understand that's a bit much to want. However, there might be some possibilities with translating the rng into rnc and parsing the values from there as that wouldn't be so change-prone in case there's some definition mangling in RNG schemas in the future. All I know for now, let me know what you think, I'll see what I can do with that when I'll get to that. Have a nice day, Martin _______________________________________________ virt-tools-list mailing list virt-tools-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/virt-tools-list