mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-10-05 22:05:47 +00: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 {
|
typedef enum {
|
||||||
VIR_CONNECT_BASELINE_CPU_EXPAND_FEATURES = (1 << 0), /* show all features */
|
VIR_CONNECT_BASELINE_CPU_EXPAND_FEATURES = (1 << 0), /* show all features */
|
||||||
|
VIR_CONNECT_BASELINE_CPU_MIGRATABLE = (1 << 1), /* filter out non-migratable features */
|
||||||
} virConnectBaselineCPUFlags;
|
} virConnectBaselineCPUFlags;
|
||||||
|
|
||||||
char *virConnectBaselineCPU(virConnectPtr conn,
|
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
|
* without this flag features that are part of the CPU model will not be
|
||||||
* listed.
|
* 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.
|
* Returns XML description of the computed CPU (caller frees) or NULL on error.
|
||||||
*/
|
*/
|
||||||
char *
|
char *
|
||||||
|
Loading…
Reference in New Issue
Block a user