]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
Add VIR_CONNECT_BASELINE_CPU_MIGRATABLE flag
authorJán Tomko <jtomko@redhat.com>
Thu, 5 Feb 2015 14:26:03 +0000 (15:26 +0100)
committerJán Tomko <jtomko@redhat.com>
Mon, 2 Mar 2015 06:59:12 +0000 (07:59 +0100)
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

include/libvirt/libvirt-host.h
src/libvirt-host.c

index f760a5529e0d79a20279eef9633accff291dd256..77058af694c3acd435255341a9dd0a6e7d27ec36 100644 (file)
@@ -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,
index 78ee7709384a6f0c658c59b8774981dfd7533eed..b4dc13e90cb3fabeb69a14653b6cbc67504f80fe 100644 (file)
@@ -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 *