[virt-tools-list] [libosinfo] Add basic devices to RHEL OSes

Daniel P. Berrange berrange at redhat.com
Thu Jun 9 08:59:58 UTC 2011


On Thu, Jun 09, 2011 at 03:40:28AM +0300, Zeeshan Ali wrote:
> From: "Zeeshan Ali (Khattak)" <zeeshanak at gnome.org>
> 
> I'm not at all sure I'm doing the right thing here but sending this
> still in hope to get some guidance on how to get this stuff right.
> ---
>  data/oses/rhel.xml |   11 +++++++++++
>  1 files changed, 11 insertions(+), 0 deletions(-)
> 
> diff --git a/data/oses/rhel.xml b/data/oses/rhel.xml
> index 9218fc9..3e932da 100644
> --- a/data/oses/rhel.xml
> +++ b/data/oses/rhel.xml
> @@ -28,6 +28,11 @@
>      <version>5.7</version>
>      <vendor>Red Hat, Inc</vendor>
>      <upgrades id="http://redhat.com/rhel/5.6"/>
> +
> +    <devices>
> +      <device id="http://pciids.sourceforge.net/v2.2/pci.ids/1af4/1000">
> +      <device id="http://pciids.sourceforge.net/v2.2/pci.ids/1af4/1001">
> +    </devices>
>    </os>
>  
>    <os id="http://redhat.com/rhel/6.0">
> @@ -43,6 +48,12 @@
>      <version>6.1</version>
>      <vendor>Red Hat, Inc</vendor>
>      <upgrades id="http://redhat.com/rhel/6.0"/>
> +
> +    <devices>
> +      <device id="http://pciids.sourceforge.net/v2.2/pci.ids/1af4/1000">
> +      <device id="http://pciids.sourceforge.net/v2.2/pci.ids/1af4/1001">
> +      <device id="http://www.linux-usb.org/usb.ids/80ee/0021">
> +    </devices>
>    </os>
>  
>  </libosinfo>

To avoid having to duplicate the device data across every single RHEL 6.x
update, we should put the devices in the older update (eg 6.0). For later
upodates 6.1, 6.2, etc, they can inherit the devices from the original
update 6.0. This should work in the general case, because minor updates
will typically be using the exact same devices, possibly just adding a
few newer ones. If we find we need to blacklist a device in a newer update
we can invent a syntax for that later


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 :|




More information about the virt-tools-list mailing list