pwoerpc: Enable HTM capability for h_cede_tm testcase
PATCH 1/1 pwoerpc: Enable HTM capability for h_cede_tm testcase
The h_cede_tm case is specifically about an edge case with the H_CEDE hypercall while using hardware transactional memory (HTM). Current qemu versions don't enable HTM instructions in guests by default, so we should explicitly enable them in order to execute this test.
--- powerpc/unittests.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
powerpc/unittests.cfg +1 -1
@@ -63,7 +63,7 @@ file = emulator.elf [h_cede_tm] file = tm.elf smp = 2,threads=2 -extra_params = -append "h_cede_tm" +extra_params = -machine cap-htm=on -append "h_cede_tm" groups = nodefault,h_cede_tm [sprs]
Signature · 1 line
2.20.1
Quoted 15 lines · David Gibson
The
h_cede_tmcase is specifically about an edge case with theH_CEDEhypercall while using hardware transactional memory (HTM). Current qemu versions don't enable HTM instructions in guests by default, so we should explicitly enable them in order to execute this test.Signed-off-by David Gibson <[email protected]>--- powerpc/unittests.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)powerpc/unittests.cfg +0
-0
powerpc/unittests.cfg file = emulator.elf · line 67
Quoted 6 lines
powerpc/unittests.cfg +1
-1@@ -63,7 +63,7 @@ file = emulator.elf [h_cede_tm] file = tm.elf smp = 2,threads=2 -extra_params = -append "h_cede_tm" +extra_params = -machine cap-htm=on -append "h_cede_tm" groups = nodefault,h_cede_tm
There is a typo in the subject (which I can fix while applying the patch), but apart from that:
Quoted 11 lines · Thomas Huth
Quoted 10 lines · David Gibson
The
h_cede_tmcase is specifically about an edge case with theH_CEDEhypercall while using hardware transactional memory (HTM). Current qemu versions don't enable HTM instructions in guests by default, so we should explicitly enable them in order to execute this test.Signed-off-by David Gibson <[email protected]>--- powerpc/unittests.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 14 lines
powerpc/unittests.cfg file = emulator.elf · line 67
Quoted 11 lines
powerpc/unittests.cfg +1
-1@@ -63,7 +63,7 @@ file = emulator.elf [h_cede_tm] file = tm.elf smp = 2,threads=2 -extra_params = -append "h_cede_tm" +extra_params = -machine cap-htm=on -append "h_cede_tm" groups = nodefault,h_cede_tmThere is a typo in the subject (which I can fix while applying the patch), but apart from that:
Oops, sorry.
Quoted 3 lines
Reviewed-by Thomas Huth <[email protected]>
Signature · 4 lines
David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson