Re: [osinfo-db PATCH] RFC: schema: Add support to Guest Features

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 11/15/2018 06:04 AM, Fabiano Fidêncio wrote:
One of the requests that came from KubeVirt is that would be really nice
if we could expose Guest supported features.

In order to do so, I came up with this *prototype* and I'd like to ask
for some review of the schema before I actually start implementing
something on libosinfo side.

One example of how it'll look like is:
<os>
   <features>
     <feature removed="true">device-hotplug</feature>
     <feature>cpu-hotplug</feature>
     <feature>NUMA</feature>
   </features>
</os>

From the start:
- features *will* be inrited between OSes, by default.
- the feature element has an optional "removed" attribute which, by
default, is "false".

Is this approach okay?


ACK, this looks like what I imagined as well. It will work like <devices> but just advertises unique string values. The main thing for us will be to thoroughly document the semantics of each string value.

The term 'feature' is kinda misleading because I can see this functionality being used to advertise anti-features, like an OS bug that affects guest config. I listed some cases here[1]. But I can't think of anything better, and I doubt there's any single term that can cover all possible usages of this functionality without being meaningless, so I'm cool with 'feature'

[1]: https://www.redhat.com/archives/libosinfo/2018-September/msg00002.html

- Cole

_______________________________________________
Libosinfo mailing list
Libosinfo@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libosinfo




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux