Bug 2109643
| Summary: | [RFE] Mechanism for determining preferred CPU model | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 9 | Reporter: | sgott |
| Component: | libvirt | Assignee: | Tim Wiederhake <twiederh> |
| libvirt sub component: | General | QA Contact: | Luyao Huang <lhuang> |
| Status: | CLOSED NOTABUG | Docs Contact: | |
| Severity: | urgent | ||
| Priority: | unspecified | CC: | ailan, fdeutsch, jsuchane, lmen, twiederh, virt-maint, xuzhang |
| Version: | unspecified | Keywords: | FutureFeature, Triaged |
| Target Milestone: | rc | Flags: | ailan:
needinfo?
(twiederh) ailan: needinfo? (twiederh) ailan: needinfo? (jsuchane) |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2023-07-12 09:56:24 UTC | Type: | Feature Request |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | 1856522 | ||
| Bug Blocks: | |||
|
Description
sgott
2022-07-21 16:56:44 UTC
I am not sure that I understand the question correctly. The nodes' domain capabilities (`virsh domcapabilities > domcap_$HOSTNAME.xml`) can be used to calculate the baseline cpu model that is compatible with all nodes (`cat domcap_*.xml | virsh hypervisor-cpu-baseline /dev/stdin --migratable`). This cpu model enables all features that are present on all nodes and would be the "best". Hi Tim, a fair point. Will the baseline CPU recommendation always only be one CPU? If it might recommend multiple, then we'll need the ability to understand which the most recent one is. There will always be exactly one baseline (or none, in case there is no cpu model that is compatible with all nodes). Note that this cpu model might not have a physical counterpart, ie. not be exactly one of the named cpu models. It will most likely be something equivalent to "CPU XYZ plus features A, B, and C". Append "--features" to the call to "virsh hypervisor-cpu-baseline ..." to get a full list of features in the resulting cpu models. There is nothing actionable here, I believe Tim's comment 5 provided the required answer. Please note that the cpu models handling in libvirt is being refactored and will be part of large scale of changes. Related feature requests will be created accordingly. |