diff mbox series

[kvm-unit-tests,v5,08/29] powerpc: Require KVM for the TM test

Message ID 20231216134257.1743345-9-npiggin@gmail.com (mailing list archive)
State Not Applicable
Headers show
Series powerpc: updates, P10, PNV support | expand

Commit Message

Nicholas Piggin Dec. 16, 2023, 1:42 p.m. UTC
QEMU TCG does not support TM. Skip this test gracefully when not on KVM.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
---
 powerpc/unittests.cfg | 1 +
 1 file changed, 1 insertion(+)

Comments

Thomas Huth Dec. 19, 2023, 5:59 a.m. UTC | #1
On 16/12/2023 14.42, Nicholas Piggin wrote:
> QEMU TCG does not support TM. Skip this test gracefully when not on KVM.
> 
> Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
> ---
>   powerpc/unittests.cfg | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/powerpc/unittests.cfg b/powerpc/unittests.cfg
> index dd5f361c..e71140aa 100644
> --- a/powerpc/unittests.cfg
> +++ b/powerpc/unittests.cfg
> @@ -65,6 +65,7 @@ file = emulator.elf
>   
>   [h_cede_tm]
>   file = tm.elf
> +accel = kvm
>   smp = 2,threads=2
>   extra_params = -machine cap-htm=on -append "h_cede_tm"
>   groups = h_cede_tm

Reviewed-by: Thomas Huth <thuth@redhat.com>
diff mbox series

Patch

diff --git a/powerpc/unittests.cfg b/powerpc/unittests.cfg
index dd5f361c..e71140aa 100644
--- a/powerpc/unittests.cfg
+++ b/powerpc/unittests.cfg
@@ -65,6 +65,7 @@  file = emulator.elf
 
 [h_cede_tm]
 file = tm.elf
+accel = kvm
 smp = 2,threads=2
 extra_params = -machine cap-htm=on -append "h_cede_tm"
 groups = h_cede_tm