From 066f7c7c3a0b06dd22e3772c74e188844c050b9d Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Wed, 22 Apr 2015 10:34:38 -0400 Subject: [PATCH] domain: conf: Drop unused OSTYPE_AIX The phyp driver stuffed it into a DomainDefPtr during its attachdevice routine, but the value is never advertised via capabilities so it should be safe to drop. Have the phyp driver use OSTYPE_LINUX, which is what it advertises via capabilities. --- docs/schemas/capability.rng | 3 ++- src/conf/domain_conf.c | 3 +-- src/conf/domain_conf.h | 1 - src/phyp/phyp_driver.c | 2 +- tests/vircapstest.c | 2 +- 5 files changed, 5 insertions(+), 6 deletions(-) diff --git a/docs/schemas/capability.rng b/docs/schemas/capability.rng index 5f3ec70d9..88e08d299 100644 --- a/docs/schemas/capability.rng +++ b/docs/schemas/capability.rng @@ -262,7 +262,8 @@ xen - linux + linux hvm exe uml diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index 7e4f0af25..5f74ab1c4 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -124,8 +124,7 @@ VIR_ENUM_IMPL(virDomainOS, VIR_DOMAIN_OSTYPE_LAST, "xen", "linux", "exe", - "uml", - "aix") + "uml") VIR_ENUM_IMPL(virDomainBoot, VIR_DOMAIN_BOOT_LAST, "fd", diff --git a/src/conf/domain_conf.h b/src/conf/domain_conf.h index 0761eee3f..96988ef71 100644 --- a/src/conf/domain_conf.h +++ b/src/conf/domain_conf.h @@ -233,7 +233,6 @@ typedef enum { VIR_DOMAIN_OSTYPE_LINUX, VIR_DOMAIN_OSTYPE_EXE, VIR_DOMAIN_OSTYPE_UML, - VIR_DOMAIN_OSTYPE_AIX, VIR_DOMAIN_OSTYPE_LAST } virDomainOSType; diff --git a/src/phyp/phyp_driver.c b/src/phyp/phyp_driver.c index e9a31d054..c558c48d4 100644 --- a/src/phyp/phyp_driver.c +++ b/src/phyp/phyp_driver.c @@ -1720,7 +1720,7 @@ phypDomainAttachDevice(virDomainPtr domain, const char *xml) if (domain_name == NULL) goto cleanup; - def->os.type = VIR_DOMAIN_OSTYPE_AIX; + def->os.type = VIR_DOMAIN_OSTYPE_LINUX; dev = virDomainDeviceDefParse(xml, def, phyp_driver->caps, NULL, VIR_DOMAIN_DEF_PARSE_INACTIVE); diff --git a/tests/vircapstest.c b/tests/vircapstest.c index 5a43d6345..0c79af8c3 100644 --- a/tests/vircapstest.c +++ b/tests/vircapstest.c @@ -250,7 +250,7 @@ test_virCapsDomainDataLookupQEMU(const void *data ATTRIBUTE_UNUSED) VIR_DOMAIN_OSTYPE_HVM, VIR_ARCH_PPC64LE, VIR_DOMAIN_VIRT_QEMU, "/usr/bin/qemu-system-ppc64", "pseries"); - CAPS_EXPECT_ERR(VIR_DOMAIN_OSTYPE_AIX, VIR_ARCH_NONE, -1, NULL, NULL); + CAPS_EXPECT_ERR(VIR_DOMAIN_OSTYPE_LINUX, VIR_ARCH_NONE, -1, NULL, NULL); CAPS_EXPECT_ERR(-1, VIR_ARCH_PPC64LE, -1, NULL, "pc"); CAPS_EXPECT_ERR(-1, VIR_ARCH_MIPS, -1, NULL, NULL); CAPS_EXPECT_ERR(-1, VIR_ARCH_AARCH64, VIR_DOMAIN_VIRT_KVM, -- 2.39.5