diff mbox series

pwoerpc: Enable HTM capability for h_cede_tm testcase

Message ID 20190227022354.12726-1-david@gibson.dropbear.id.au
State Not Applicable
Headers show
Series pwoerpc: Enable HTM capability for h_cede_tm testcase | expand

Commit Message

David Gibson Feb. 27, 2019, 2:23 a.m. UTC
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.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
---
 powerpc/unittests.cfg | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Thomas Huth Feb. 27, 2019, 7:40 a.m. UTC | #1
On 27/02/2019 03.23, David Gibson wrote:
> 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.
> 
> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
> ---
>  powerpc/unittests.cfg | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/powerpc/unittests.cfg b/powerpc/unittests.cfg
> index 4eda258..af535b7 100644
> --- a/powerpc/unittests.cfg
> +++ b/powerpc/unittests.cfg
> @@ -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:

Reviewed-by: Thomas Huth <thuth@redhat.com>
David Gibson Feb. 28, 2019, 4:02 a.m. UTC | #2
On Wed, Feb 27, 2019 at 08:40:12AM +0100, Thomas Huth wrote:
> On 27/02/2019 03.23, David Gibson wrote:
> > 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.
> > 
> > Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
> > ---
> >  powerpc/unittests.cfg | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/powerpc/unittests.cfg b/powerpc/unittests.cfg
> > index 4eda258..af535b7 100644
> > --- a/powerpc/unittests.cfg
> > +++ b/powerpc/unittests.cfg
> > @@ -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.

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

Patch

diff --git a/powerpc/unittests.cfg b/powerpc/unittests.cfg
index 4eda258..af535b7 100644
--- a/powerpc/unittests.cfg
+++ b/powerpc/unittests.cfg
@@ -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]