All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] pwoerpc: Enable HTM capability for h_cede_tm testcase
@ 2019-02-27  2:23 David Gibson
  2019-02-27  7:40 ` Thomas Huth
  2019-02-28  4:02 ` David Gibson
  0 siblings, 2 replies; 3+ messages in thread
From: David Gibson @ 2019-02-27  2:23 UTC (permalink / raw)
  To: kvm-ppc

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
 
 [sprs]
-- 
2.20.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] pwoerpc: Enable HTM capability for h_cede_tm testcase
  2019-02-27  2:23 [PATCH] pwoerpc: Enable HTM capability for h_cede_tm testcase David Gibson
@ 2019-02-27  7:40 ` Thomas Huth
  2019-02-28  4:02 ` David Gibson
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Huth @ 2019-02-27  7:40 UTC (permalink / raw)
  To: kvm-ppc

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>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] pwoerpc: Enable HTM capability for h_cede_tm testcase
  2019-02-27  2:23 [PATCH] pwoerpc: Enable HTM capability for h_cede_tm testcase David Gibson
  2019-02-27  7:40 ` Thomas Huth
@ 2019-02-28  4:02 ` David Gibson
  1 sibling, 0 replies; 3+ messages in thread
From: David Gibson @ 2019-02-28  4:02 UTC (permalink / raw)
  To: kvm-ppc

[-- Attachment #1: Type: text/plain, Size: 1350 bytes --]

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>
> 

-- 
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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-02-28  4:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-27  2:23 [PATCH] pwoerpc: Enable HTM capability for h_cede_tm testcase David Gibson
2019-02-27  7:40 ` Thomas Huth
2019-02-28  4:02 ` David Gibson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.