Skip to contentSkip to conversation

pwoerpc: Enable HTM capability for h_cede_tm testcase

PATCH In review David Gibson 2 participants 3 messages Feb 27, 2019 – Feb 28, 2019

lore
Share & tools
lore
#0 lore raw

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
index 4eda258..af535b7 100644
@@ -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
Reviewed-by on v1 1/1
#1 lore raw
Quoted 15 lines · David Gibson

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 +0 -0
index 4eda258..af535b7 100644

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:

#2 lore raw
In reply to David Gibson
Quoted 11 lines · Thomas Huth
Quoted 10 lines · David Gibson

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(-)
Quoted 14 lines

powerpc/unittests.cfg file = emulator.elf · line 67

Quoted 11 lines
powerpc/unittests.cfg +1 -1
index 4eda258..af535b7 100644
@@ -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:

Oops, sorry.

Quoted 3 lines
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