diff --git a/tests/data/capabilities/hvf-x86_64-domcaps.xml b/tests/data/capabilities/hvf-x86_64-domcaps.xml new file mode 100644 index 000000000..a7ddb3b23 --- /dev/null +++ b/tests/data/capabilities/hvf-x86_64-domcaps.xml @@ -0,0 +1,240 @@ + + /opt/local/bin/qemu-system-x86_64 + hvf + pc-i440fx-8.0 + x86_64 + + + + + efi + + + /opt/local/share/qemu/edk2-x86_64-code.fd + + rom + pflash + + + yes + no + + + no + + + + + + + on + off + + + + + on + off + + + + Skylake-Client + Intel + + + + + + + + + + + + qemu64 + qemu32 + phenom + pentium3 + pentium2 + pentium + n270 + kvm64 + kvm32 + coreduo + core2duo + athlon + Westmere-IBRS + Westmere + Snowridge + Skylake-Server-noTSX-IBRS + Skylake-Server-IBRS + Skylake-Server + Skylake-Client-noTSX-IBRS + Skylake-Client-IBRS + Skylake-Client + SapphireRapids + SandyBridge-IBRS + SandyBridge + Penryn + Opteron_G5 + Opteron_G4 + Opteron_G3 + Opteron_G2 + Opteron_G1 + Nehalem-IBRS + Nehalem + IvyBridge-IBRS + IvyBridge + Icelake-Server-noTSX + Icelake-Server + Haswell-noTSX-IBRS + Haswell-noTSX + Haswell-IBRS + Haswell + EPYC-Rome + EPYC-Milan + EPYC-IBPB + EPYC + Dhyana + Cooperlake + Conroe + Cascadelake-Server-noTSX + Cascadelake-Server + Broadwell-noTSX-IBRS + Broadwell-noTSX + Broadwell-IBRS + Broadwell + 486 + + + + + file + anonymous + + + + + + disk + cdrom + floppy + lun + + + ide + fdc + scsi + virtio + usb + sata + + + virtio + virtio-transitional + virtio-non-transitional + + + + + vnc + spice + + + + + + subsystem + + + default + mandatory + requisite + optional + + + usb + pci + scsi + + + + + + + virtio + virtio-transitional + virtio-non-transitional + + + random + egd + builtin + + + + + path + handle + + + + + tpm-tis + tpm-crb + + + + + + usb + + + + + pty + unix + spicevmc + + + + + virtio + + + qemu + + + builtin + + + + + + + + + + + + + + + spinlocks + vendor_id + + + + + diff --git a/tests/data/capabilities/hvf-x86_64.xml b/tests/data/capabilities/hvf-x86_64.xml new file mode 100644 index 000000000..fcc315d87 --- /dev/null +++ b/tests/data/capabilities/hvf-x86_64.xml @@ -0,0 +1,601 @@ + + + + acf40888-996f-4bad-9ee3-fac73c1a6695 + + x86_64 + Skylake-Client-IBRS + Intel + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + tcp + rdma + + + + + + 2097152 + + + + + + + + + + + none + 0 + + + + + hvm + + 32 + /opt/local/bin/qemu-system-arm + virt-8.0 + virt + qcom-dc-scm-v1-bmc + mori-bmc + ast2600-evb + borzoi + tiogapass-bmc + spitz + virt-2.7 + nuri + mcimx7d-sabre + romulus-bmc + virt-3.0 + virt-5.0 + npcm750-evb + virt-2.10 + rainier-bmc + mps3-an547 + musca-b1 + realview-pbx-a9 + versatileab + kzm + virt-2.8 + fby35-bmc + musca-a + virt-3.1 + mcimx6ul-evk + virt-5.1 + smdkc210 + sx1 + virt-2.11 + imx25-pdk + stm32vldiscovery + virt-2.9 + orangepi-pc + quanta-q71l-bmc + z2 + virt-5.2 + xilinx-zynq-a9 + tosa + mps2-an500 + virt-2.12 + mps2-an521 + sabrelite + mps2-an511 + canon-a1100 + realview-eb + quanta-gbs-bmc + emcraft-sf2 + realview-pb-a8 + yosemitev2-bmc + virt-7.0 + virt-4.0 + raspi1ap + palmetto-bmc + sx1-v1 + n810 + g220a-bmc + tacoma-bmc + n800 + bletchley-bmc + virt-7.1 + virt-4.1 + quanta-gsj + versatilepb + terrier + mainstone + realview-eb-mpcore + integratorcp + virt-7.2 + supermicrox11-bmc + virt-4.2 + witherspoon-bmc + qcom-firework-bmc + mps3-an524 + kudo-bmc + vexpress-a9 + midway + musicpal + lm3s811evb + lm3s6965evb + supermicro-x11spi-bmc + microbit + fby35 + mps2-an505 + mps2-an385 + virt-6.0 + cubieboard + ast1030-evb + verdex + netduino2 + mps2-an386 + olimex-stm32-h405 + virt-6.1 + raspi2b + vexpress-a15 + fuji-bmc + virt-6.2 + sonorapass-bmc + cheetah + virt-2.6 + ast2500-evb + highbank + akita + connex + netduinoplus2 + collie + raspi0 + fp5280g2-bmc + + + + + + + + + + + hvm + + 32 + /opt/local/bin/qemu-system-arm + virt-8.0 + virt + qcom-dc-scm-v1-bmc + mori-bmc + ast2600-evb + borzoi + tiogapass-bmc + spitz + virt-2.7 + nuri + mcimx7d-sabre + romulus-bmc + virt-3.0 + virt-5.0 + npcm750-evb + virt-2.10 + rainier-bmc + mps3-an547 + musca-b1 + realview-pbx-a9 + versatileab + kzm + virt-2.8 + fby35-bmc + musca-a + virt-3.1 + mcimx6ul-evk + virt-5.1 + smdkc210 + sx1 + virt-2.11 + imx25-pdk + stm32vldiscovery + virt-2.9 + orangepi-pc + quanta-q71l-bmc + z2 + virt-5.2 + xilinx-zynq-a9 + tosa + mps2-an500 + virt-2.12 + mps2-an521 + sabrelite + mps2-an511 + canon-a1100 + realview-eb + quanta-gbs-bmc + emcraft-sf2 + realview-pb-a8 + yosemitev2-bmc + virt-7.0 + virt-4.0 + raspi1ap + palmetto-bmc + sx1-v1 + n810 + g220a-bmc + tacoma-bmc + n800 + bletchley-bmc + virt-7.1 + virt-4.1 + quanta-gsj + versatilepb + terrier + mainstone + realview-eb-mpcore + integratorcp + virt-7.2 + supermicrox11-bmc + virt-4.2 + witherspoon-bmc + qcom-firework-bmc + mps3-an524 + kudo-bmc + vexpress-a9 + midway + musicpal + lm3s811evb + lm3s6965evb + supermicro-x11spi-bmc + microbit + fby35 + mps2-an505 + mps2-an385 + virt-6.0 + cubieboard + ast1030-evb + verdex + netduino2 + mps2-an386 + olimex-stm32-h405 + virt-6.1 + raspi2b + vexpress-a15 + fuji-bmc + virt-6.2 + sonorapass-bmc + cheetah + virt-2.6 + ast2500-evb + highbank + akita + connex + netduinoplus2 + collie + raspi0 + fp5280g2-bmc + + + + + + + + + + + hvm + + 64 + /opt/local/bin/qemu-system-aarch64 + virt-8.0 + virt + qcom-dc-scm-v1-bmc + mori-bmc + ast2600-evb + borzoi + tiogapass-bmc + spitz + virt-2.7 + nuri + mcimx7d-sabre + romulus-bmc + virt-3.0 + virt-5.0 + npcm750-evb + virt-2.10 + rainier-bmc + mps3-an547 + musca-b1 + realview-pbx-a9 + versatileab + kzm + virt-2.8 + fby35-bmc + musca-a + virt-3.1 + mcimx6ul-evk + virt-5.1 + smdkc210 + sx1 + virt-2.11 + imx25-pdk + stm32vldiscovery + virt-2.9 + orangepi-pc + quanta-q71l-bmc + z2 + virt-5.2 + xilinx-zynq-a9 + xlnx-zcu102 + tosa + mps2-an500 + virt-2.12 + mps2-an521 + sabrelite + mps2-an511 + canon-a1100 + realview-eb + quanta-gbs-bmc + emcraft-sf2 + realview-pb-a8 + sbsa-ref + yosemitev2-bmc + virt-7.0 + virt-4.0 + raspi1ap + palmetto-bmc + sx1-v1 + n810 + g220a-bmc + tacoma-bmc + n800 + bletchley-bmc + virt-7.1 + virt-4.1 + quanta-gsj + versatilepb + terrier + mainstone + realview-eb-mpcore + integratorcp + virt-7.2 + supermicrox11-bmc + virt-4.2 + witherspoon-bmc + qcom-firework-bmc + mps3-an524 + kudo-bmc + vexpress-a9 + midway + musicpal + lm3s811evb + lm3s6965evb + supermicro-x11spi-bmc + microbit + fby35 + mps2-an505 + mps2-an385 + virt-6.0 + raspi3ap + cubieboard + ast1030-evb + verdex + netduino2 + xlnx-versal-virt + mps2-an386 + olimex-stm32-h405 + virt-6.1 + raspi3b + raspi2b + vexpress-a15 + fuji-bmc + virt-6.2 + sonorapass-bmc + cheetah + virt-2.6 + ast2500-evb + highbank + akita + connex + netduinoplus2 + collie + raspi0 + fp5280g2-bmc + + + + + + + + + + + + hvm + + 32 + /opt/local/bin/qemu-system-i386 + pc-i440fx-8.0 + pc + pc-q35-5.2 + pc-i440fx-2.12 + pc-i440fx-2.0 + pc-i440fx-6.2 + pc-q35-4.2 + pc-i440fx-2.5 + pc-i440fx-4.2 + pc-i440fx-5.2 + pc-i440fx-1.5 + pc-q35-2.7 + pc-q35-7.1 + pc-i440fx-2.2 + pc-i440fx-2.7 + pc-q35-6.1 + pc-q35-2.4 + pc-i440fx-7.1 + pc-q35-2.10 + pc-i440fx-1.7 + pc-q35-5.1 + pc-q35-2.9 + pc-i440fx-2.11 + pc-q35-3.1 + pc-i440fx-6.1 + pc-q35-4.1 + pc-i440fx-2.4 + pc-i440fx-4.1 + pc-i440fx-5.1 + pc-i440fx-2.9 + isapc + pc-i440fx-1.4 + pc-q35-2.6 + pc-i440fx-3.1 + pc-q35-2.12 + pc-q35-7.0 + pc-i440fx-2.1 + pc-q35-8.0 + q35 + pc-q35-6.0 + pc-i440fx-2.6 + pc-q35-4.0.1 + pc-i440fx-7.0 + pc-i440fx-1.6 + pc-q35-5.0 + pc-q35-2.8 + pc-i440fx-2.10 + pc-q35-3.0 + pc-i440fx-6.0 + pc-q35-7.2 + pc-q35-4.0 + microvm + pc-i440fx-2.3 + pc-i440fx-4.0 + pc-i440fx-5.0 + pc-i440fx-2.8 + pc-q35-6.2 + pc-q35-2.5 + pc-i440fx-3.0 + pc-i440fx-7.2 + pc-q35-2.11 + + + + + + + + + + + + + + + hvm + + 64 + /opt/local/bin/qemu-system-x86_64 + pc-i440fx-8.0 + pc + pc-q35-5.2 + pc-i440fx-2.12 + pc-i440fx-2.0 + pc-i440fx-6.2 + pc-q35-4.2 + pc-i440fx-2.5 + pc-i440fx-4.2 + pc-i440fx-5.2 + pc-i440fx-1.5 + pc-q35-2.7 + pc-q35-7.1 + pc-i440fx-2.2 + pc-i440fx-2.7 + pc-q35-6.1 + pc-q35-2.4 + pc-i440fx-7.1 + pc-q35-2.10 + pc-i440fx-1.7 + pc-q35-5.1 + pc-q35-2.9 + pc-i440fx-2.11 + pc-q35-3.1 + pc-i440fx-6.1 + pc-q35-4.1 + pc-i440fx-2.4 + pc-i440fx-4.1 + pc-i440fx-5.1 + pc-i440fx-2.9 + isapc + pc-i440fx-1.4 + pc-q35-2.6 + pc-i440fx-3.1 + pc-q35-2.12 + pc-q35-7.0 + pc-i440fx-2.1 + pc-q35-8.0 + q35 + pc-q35-6.0 + pc-i440fx-2.6 + pc-q35-4.0.1 + pc-i440fx-7.0 + pc-i440fx-1.6 + pc-q35-5.0 + pc-q35-2.8 + pc-i440fx-2.10 + pc-q35-3.0 + pc-i440fx-6.0 + pc-q35-7.2 + pc-q35-4.0 + microvm + pc-i440fx-2.3 + pc-i440fx-4.0 + pc-i440fx-5.0 + pc-i440fx-2.8 + pc-q35-6.2 + pc-q35-2.5 + pc-i440fx-3.0 + pc-i440fx-7.2 + pc-q35-2.11 + + + + + + + + + + + + + + diff --git a/tests/data/cli/compare/virt-install-hvf-default-f27.xml b/tests/data/cli/compare/virt-install-hvf-default-f27.xml new file mode 100644 index 000000000..52480925e --- /dev/null +++ b/tests/data/cli/compare/virt-install-hvf-default-f27.xml @@ -0,0 +1,81 @@ + + foohvf + 00000000-1111-2222-3333-444444444444 + + + + + + 65536 + 65536 + 2 + + hvm + + + + + + + + + + + + + + + + + + /opt/local/bin/qemu-system-x86_64 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + /dev/urandom + + + diff --git a/tests/test_cli.py b/tests/test_cli.py index b2f707b9a..922de6d69 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -1260,6 +1260,14 @@ c.add_compare("--os-variant fedora27", "bhyve-default-f27") +########################### +# qemu hvf specific tests # +########################### + +c = vinst.add_category("bhyve", "--name foohvf --noautoconsole --connect " + utils.URIs.hvf_x86) +c.add_compare("--os-variant fedora27", "hvf-default-f27") + + ##################################### # Device option back compat testing # diff --git a/tests/utils.py b/tests/utils.py index 5c813f625..0ff505e81 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -106,6 +106,8 @@ class _URIs(object): self.kvm_s390x = _uri_qemu + _caps("kvm-s390x.xml") + _domcaps("kvm-s390x-domcaps.xml") self.qemu_riscv64 = _uri_qemu + _caps("qemu-riscv64.xml") + _domcaps("qemu-riscv64-domcaps.xml") + # hvf + self.hvf_x86 = _uri_qemu + _caps("hvf-x86_64.xml") + _domcaps("hvf-x86_64-domcaps.xml") def openconn(self, uri): diff --git a/virtManager/connection.py b/virtManager/connection.py index a052cdf82..aaeb43044 100644 --- a/virtManager/connection.py +++ b/virtManager/connection.py @@ -221,7 +221,7 @@ class vmmConnection(vmmGObject): elif domtype == "kvm": label = "KVM" elif domtype == "hvf": - label = "Hypervisor.framework" + label = "Hypervisor.framework" # pragma: no cover return label