mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-05 04:58:33 +03:00
Add VIR_CONNECT_BASELINE_CPU_MIGRATABLE flag
This flag for virConnectBaselineCPU will allow filtering out CPU features that block migration from the result. https://bugzilla.redhat.com/show_bug.cgi?id=1171484
This commit is contained in:
parent
995ca6cbf3
commit
02c8b66d6a
@ -862,6 +862,7 @@ int virConnectGetCPUModelNames(virConnectPtr conn,
|
||||
*/
|
||||
typedef enum {
|
||||
VIR_CONNECT_BASELINE_CPU_EXPAND_FEATURES = (1 << 0), /* show all features */
|
||||
VIR_CONNECT_BASELINE_CPU_MIGRATABLE = (1 << 1), /* filter out non-migratable features */
|
||||
} virConnectBaselineCPUFlags;
|
||||
|
||||
char *virConnectBaselineCPU(virConnectPtr conn,
|
||||
|
@ -1052,6 +1052,9 @@ virConnectGetCPUModelNames(virConnectPtr conn, const char *arch, char ***models,
|
||||
* without this flag features that are part of the CPU model will not be
|
||||
* listed.
|
||||
*
|
||||
* If @flags includes VIR_CONNECT_BASELINE_CPU_MIGRATABLE, the resulting
|
||||
* CPU will not include features that block migration.
|
||||
*
|
||||
* Returns XML description of the computed CPU (caller frees) or NULL on error.
|
||||
*/
|
||||
char *
|
||||
|
Loading…
x
Reference in New Issue
Block a user