From: David Gibson <david@gibson.dropbear.id.au>
To: Nicholas Piggin <npiggin@gmail.com>
Cc: qemu-devel@nongnu.org, qemu-ppc@nongnu.org,
"Greg Kurz" <groug@kaod.org>, "Cédric Le Goater" <clg@kaod.org>
Subject: Re: [Qemu-devel] [PATCH v6 1/4] spapr: Implement dispatch tracking for tcg
Date: Fri, 19 Jul 2019 12:27:23 +1000 [thread overview]
Message-ID: <20190719022723.GQ8468@umbus.fritz.box> (raw)
In-Reply-To: <1563491322.dlreynwzv6.astroid@bobo.none>
[-- Attachment #1: Type: text/plain, Size: 2405 bytes --]
On Fri, Jul 19, 2019 at 09:12:16AM +1000, Nicholas Piggin wrote:
> Greg Kurz's on July 18, 2019 8:13 pm:
> > On Thu, 18 Jul 2019 13:42:11 +1000
> > Nicholas Piggin <npiggin@gmail.com> wrote:
> >
> >> Implement cpu_exec_enter/exit on ppc which calls into new methods of
> >> the same name in PPCVirtualHypervisorClass. These are used by spapr
> >> to implement the splpar VPA dispatch counter initially.
> >>
> >> Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
> >> ---
> >> Changes since v5:
> >> - Move 'prod' into next patch.
> >> - Use uint32_t type for dispatch counter.
> >> - Add guest error message for incorrect dispatch counter.
> >> - Conditionally compile away if CONFIG_USER_ONLY
> >> - Small cleanups
> >>
> >> Changes since v4:
> >> - Store to VPA on the way out as well.
> >> - Increment the dispatch counter directly in the VPA, which means it will
> >> migrate with guest memory the same as KVM.
> >> - Prod need not be migrated, add a comment.
> >>
> >> hw/ppc/spapr.c | 52 +++++++++++++++++++++++++++++++++
> >> hw/ppc/spapr_hcall.c | 5 ----
> >> include/hw/ppc/spapr.h | 7 +++++
> >> target/ppc/cpu.h | 4 +++
> >> target/ppc/translate_init.inc.c | 27 +++++++++++++++++
> >> 5 files changed, 90 insertions(+), 5 deletions(-)
> >>
> >> diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c
> >> index 821f0d4a49..3e5678d467 100644
> >> --- a/hw/ppc/spapr.c
> >> +++ b/hw/ppc/spapr.c
> >> @@ -4302,6 +4302,54 @@ PowerPCCPU *spapr_find_cpu(int vcpu_id)
> >> return NULL;
> >> }
> >>
> >> +#ifndef CONFIG_USER_ONLY
> >
> > This file is for system emulation only, no need to guard here.
> >
> > This is minor and rest looks good.
> >
> > Reviewed-by: Greg Kurz <groug@kaod.org>
>
> Thanks for all the reviews Greg (and others), they made significant
> improvements. David I'm not sure how you like to work with merging
> patches, but if you can add the Reviewed-by tags and this issue, then
> I won't have to resend.
I've fixed it up in my tree.
>
> Or if you prefer I can fix it up and send to you privately to reduce
> list spam.
>
> Thanks,
> Nick
>
--
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 --]
next prev parent reply other threads:[~2019-07-19 2:45 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-18 3:42 [Qemu-devel] [PATCH v6 0/4] spapr: implement dispatch and suspend calls Nicholas Piggin
2019-07-18 3:42 ` [Qemu-devel] [PATCH v6 1/4] spapr: Implement dispatch tracking for tcg Nicholas Piggin
2019-07-18 10:13 ` Greg Kurz
2019-07-18 23:12 ` Nicholas Piggin
2019-07-19 2:27 ` David Gibson [this message]
2019-07-18 3:42 ` [Qemu-devel] [PATCH v6 2/4] spapr: Implement H_PROD Nicholas Piggin
2019-07-18 10:47 ` Greg Kurz
2019-07-18 3:42 ` [Qemu-devel] [PATCH v6 3/4] spapr: Implement H_CONFER Nicholas Piggin
2019-07-18 10:47 ` Greg Kurz
2019-07-18 3:42 ` [Qemu-devel] [PATCH v6 4/4] spapr: Implement H_JOIN Nicholas Piggin
2019-07-18 10:48 ` Greg Kurz
2019-07-18 4:31 ` [Qemu-devel] [PATCH v6 0/4] spapr: implement dispatch and suspend calls David Gibson
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=20190719022723.GQ8468@umbus.fritz.box \
--to=david@gibson.dropbear.id.au \
--cc=clg@kaod.org \
--cc=groug@kaod.org \
--cc=npiggin@gmail.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).