Red Hat Bugzilla – Bug 967141
Expose all CPU features in host definition
Last modified: 2014-07-24 23:23:22 EDT
Description of problem:
The virConnectGetCapabilities API describes the host capabilities by returning an XML description that includes the CPU model name and a set of CPU features. The problem is that any features that are part of the CPU model are not explicitly listed, they are assumed to be part of the definition of that CPU model. This makes it extremely difficult for the caller of this API to check for the presence of a specific CPU feature, the caller would have to know what features are part of which CPU models, a very daunting task.
A simpler solution would be to have this API return a model name, as it currently does, but also explicitly list all of the CPU features that are present. This would make it much easier for a caller of this API to check for specific features.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Call the virConnectGetCapabilities API
`feature' XML fields only present for features that are not part of the CPU model.
`feature' XML field for every CPU feature present on the host.
I think this is resolved by Don's patch that added VIR_CONNECT_BASELINE_CPU_EXPAND_FEATURES, which is upstream nowadays