From: Cole Robinson Date: Wed, 22 Apr 2015 14:34:38 +0000 (-0400) Subject: domain: conf: Drop unused OSTYPE_AIX X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=066f7c7c3a0b06dd22e3772c74e188844c050b9d;p=libvirt.git 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. --- diff --git a/docs/schemas/capability.rng b/docs/schemas/capability.rng index 5f3ec70d97..88e08d299a 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 7e4f0af25d..5f74ab1c4c 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 0761eee3f6..96988ef711 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 e9a31d054f..c558c48d48 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 5a43d63457..0c79af8c3d 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,