tests/avocado: Add pseries KVM boot_linux test
authorNicholas Piggin <npiggin@gmail.com>
Tue, 3 Oct 2023 00:42:45 +0000 (10:42 +1000)
committerNicholas Piggin <npiggin@gmail.com>
Fri, 23 Feb 2024 13:16:35 +0000 (23:16 +1000)
ppc has no avocado tests for the KVM backend. Add a KVM boot_linux.py
test for pseries.

Reviewed-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
tests/avocado/boot_linux.py

index de4c8805f7e4ccfce7b23d778d8e316e69714d87..cdce4cbcba0d5869ae15a15acdeb765bcddfddcd 100644 (file)
@@ -103,6 +103,15 @@ class BootLinuxPPC64(LinuxTest):
         self.vm.add_args("-accel", "tcg")
         self.launch_and_wait(set_up_ssh_connection=False)
 
+    def test_pseries_kvm(self):
+        """
+        :avocado: tags=machine:pseries
+        :avocado: tags=accel:kvm
+        """
+        self.require_accelerator("kvm")
+        self.vm.add_args("-accel", "kvm")
+        self.vm.add_args("-machine", "cap-ccf-assist=off")
+        self.launch_and_wait(set_up_ssh_connection=False)
 
 class BootLinuxS390X(LinuxTest):
     """