avocado/ppc_405.py: check TCG accel in test_ppc_ref405ep()
commit6e73b98a1b2876a565414c4db03149217190b3cd
authorDaniel Henrique Barboza <danielhb413@gmail.com>
Mon, 14 Mar 2022 14:57:17 +0000 (14 15:57 +0100)
committerCédric Le Goater <clg@kaod.org>
Mon, 14 Mar 2022 14:57:17 +0000 (14 15:57 +0100)
treeb53191463da1fda3557599a24abe69e33ac50de8
parentd08b9b76580662e1064ece0b07b1c438fb6f571d
avocado/ppc_405.py: check TCG accel in test_ppc_ref405ep()

Running this test without TCG support in an IBM POWER server results
in the following error:

        Command: ./qemu-system-ppc -display none -vga none (...)
-machine ref405ep (...)
        Output: qemu-system-ppc: Register sync failed... If you're using
kvm-hv.ko, only "-cpu host" is possible
qemu-system-ppc: kvm_init_vcpu: kvm_arch_init_vcpu failed (0): Invalid argument

Although the host is running kvm_hv we don't have a way of differentiate
between kvm_hv and kvm_pr, meaning that this test would've failed in the
same way if kvm_pr was the KVM module loaded in the host.

Since we don't have a way of checking which KVM module is being loaded
when using avocado, make a TCG accel check in test_ppc_ref405ep().

Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Message-Id: <20220310183011.110391-5-danielhb413@gmail.com>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
tests/avocado/ppc_405.py