qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Nicholas Piggin <npiggin@gmail.com>
To: Daniel Henrique Barboza <danielhb413@gmail.com>
Cc: "Nicholas Piggin" <npiggin@gmail.com>,
	"Cédric Le Goater" <clg@kaod.org>,
	"Frédéric Barrat" <fbarrat@linux.ibm.com>,
	"David Gibson" <david@gibson.dropbear.id.au>,
	"Greg Kurz" <groug@kaod.org>,
	"Harsh Prateek Bora" <harshpb@linux.ibm.com>,
	qemu-ppc@nongnu.org, qemu-devel@nongnu.org
Subject: [PATCH 0/4] ppc/pnv: SMT support for powernv
Date: Mon,  3 Jul 2023 20:16:56 +1000	[thread overview]
Message-ID: <20230703101700.24064-1-npiggin@gmail.com> (raw)

These patches implement enough to install a distro, boot, run SMP KVM
guests with libvirt with good performance using MTTCG (as reported by
Cedric).

There are a few more SPRs that need to be done, and per-LPAR SPRs are
mostly not annotated yet so it can't run in 1 LPAR mode. But those can
be added in time, it will take a bit of time to get everything exactly
as hardware does so I consider this good enough to run common
software usefully.

Thanks Joel and Cedric for reviews and testing.

Since RFC:
- Rebased against ppc-next (no conflicts vs upstream anyway).
- Add patch 4 avocado boot test with SMT, as was added with pseries SMT.
- Renamed POWERPC_FLAG_1LPAR to POWERPC_FLAG_SMT_1LPAR since it implies
  SMT.
- Fixed typos, patch 1, 3 changelogs improvement (hopefully).

Thanks,
Nick

Nicholas Piggin (4):
  target/ppc: Add LPAR-per-core vs per-thread mode flag
  target/ppc: SMT support for the HID SPR
  ppc/pnv: SMT support for powernv
  tests/avocado: Add powernv machine test script

 hw/ppc/pnv.c                 | 12 +++++
 hw/ppc/pnv_core.c            | 13 +++---
 hw/ppc/spapr_cpu_core.c      |  2 +
 target/ppc/cpu.h             |  3 ++
 target/ppc/cpu_init.c        | 14 +++++-
 target/ppc/helper.h          |  1 +
 target/ppc/misc_helper.c     | 21 +++++++++
 target/ppc/spr_common.h      |  1 +
 target/ppc/translate.c       | 32 ++++++++++++--
 tests/avocado/ppc_powernv.py | 86 ++++++++++++++++++++++++++++++++++++
 10 files changed, 173 insertions(+), 12 deletions(-)
 create mode 100644 tests/avocado/ppc_powernv.py

-- 
2.40.1



             reply	other threads:[~2023-07-03 10:18 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-03 10:16 Nicholas Piggin [this message]
2023-07-03 10:16 ` [PATCH 1/4] target/ppc: Add LPAR-per-core vs per-thread mode flag Nicholas Piggin
2023-07-03 11:43   ` Cédric Le Goater
2023-07-03 12:23   ` Daniel Henrique Barboza
2023-07-03 12:55     ` Cédric Le Goater
2023-07-03 13:02     ` Nicholas Piggin
2023-07-03 10:16 ` [PATCH 2/4] target/ppc: SMT support for the HID SPR Nicholas Piggin
2023-07-03 11:42   ` Cédric Le Goater
2023-07-03 10:16 ` [PATCH 3/4] ppc/pnv: SMT support for powernv Nicholas Piggin
2023-07-03 10:17 ` [PATCH 4/4] tests/avocado: Add powernv machine test script Nicholas Piggin
2023-07-03 11:41   ` Cédric Le Goater
2023-07-03 12:59 ` [PATCH 0/4] ppc/pnv: SMT support for powernv Cédric Le Goater

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230703101700.24064-1-npiggin@gmail.com \
    --to=npiggin@gmail.com \
    --cc=clg@kaod.org \
    --cc=danielhb413@gmail.com \
    --cc=david@gibson.dropbear.id.au \
    --cc=fbarrat@linux.ibm.com \
    --cc=groug@kaod.org \
    --cc=harshpb@linux.ibm.com \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-ppc@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).