提交 39343bc8 编写于 作者: M Marc-André Lureau

domain/conf: add VIR_DOMAIN_FEATURE_VMPORT

上级 208abbcb
...@@ -143,7 +143,8 @@ VIR_ENUM_IMPL(virDomainFeature, VIR_DOMAIN_FEATURE_LAST, ...@@ -143,7 +143,8 @@ VIR_ENUM_IMPL(virDomainFeature, VIR_DOMAIN_FEATURE_LAST,
"kvm", "kvm",
"pvspinlock", "pvspinlock",
"capabilities", "capabilities",
"pmu") "pmu",
"vmport")
VIR_ENUM_IMPL(virDomainCapabilitiesPolicy, VIR_DOMAIN_CAPABILITIES_POLICY_LAST, VIR_ENUM_IMPL(virDomainCapabilitiesPolicy, VIR_DOMAIN_CAPABILITIES_POLICY_LAST,
"default", "default",
...@@ -14493,6 +14494,7 @@ virDomainDefParseXML(xmlDocPtr xml, ...@@ -14493,6 +14494,7 @@ virDomainDefParseXML(xmlDocPtr xml,
case VIR_DOMAIN_FEATURE_PMU: case VIR_DOMAIN_FEATURE_PMU:
case VIR_DOMAIN_FEATURE_PVSPINLOCK: case VIR_DOMAIN_FEATURE_PVSPINLOCK:
case VIR_DOMAIN_FEATURE_VMPORT:
node = ctxt->node; node = ctxt->node;
ctxt->node = nodes[i]; ctxt->node = nodes[i];
if ((tmp = virXPathString("string(./@state)", ctxt))) { if ((tmp = virXPathString("string(./@state)", ctxt))) {
...@@ -21119,6 +21121,7 @@ virDomainDefFormatInternal(virDomainDefPtr def, ...@@ -21119,6 +21121,7 @@ virDomainDefFormatInternal(virDomainDefPtr def,
case VIR_DOMAIN_FEATURE_PMU: case VIR_DOMAIN_FEATURE_PMU:
case VIR_DOMAIN_FEATURE_PVSPINLOCK: case VIR_DOMAIN_FEATURE_PVSPINLOCK:
case VIR_DOMAIN_FEATURE_VMPORT:
switch ((virTristateSwitch) def->features[i]) { switch ((virTristateSwitch) def->features[i]) {
case VIR_TRISTATE_SWITCH_LAST: case VIR_TRISTATE_SWITCH_LAST:
case VIR_TRISTATE_SWITCH_ABSENT: case VIR_TRISTATE_SWITCH_ABSENT:
......
...@@ -1648,6 +1648,7 @@ typedef enum { ...@@ -1648,6 +1648,7 @@ typedef enum {
VIR_DOMAIN_FEATURE_PVSPINLOCK, VIR_DOMAIN_FEATURE_PVSPINLOCK,
VIR_DOMAIN_FEATURE_CAPABILITIES, VIR_DOMAIN_FEATURE_CAPABILITIES,
VIR_DOMAIN_FEATURE_PMU, VIR_DOMAIN_FEATURE_PMU,
VIR_DOMAIN_FEATURE_VMPORT,
VIR_DOMAIN_FEATURE_LAST VIR_DOMAIN_FEATURE_LAST
} virDomainFeature; } virDomainFeature;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册