All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Nicholas Piggin" <npiggin@gmail.com>
To: "Harsh Prateek Bora" <harshpb@linux.ibm.com>, <qemu-ppc@nongnu.org>
Cc: <qemu-devel@nongnu.org>,
	"Daniel Henrique Barboza" <dbarboza@ventanamicro.com>
Subject: Re: [PATCH 2/4] ppc/spapr: Add a nested state struct
Date: Thu, 15 Jun 2023 15:36:37 +1000	[thread overview]
Message-ID: <CTCZBGI3FBF7.7FQGDAVNLTYL@wheely> (raw)
In-Reply-To: <30b061d3-83e1-eb96-4404-ffb9559b3684@linux.ibm.com>

On Thu Jun 15, 2023 at 2:51 PM AEST, Harsh Prateek Bora wrote:
>
>
> On 6/14/23 17:26, Nicholas Piggin wrote:
> >>> @@ -1766,34 +1872,8 @@ void spapr_exit_nested(PowerPCCPU *cpu, int excp)
> >>>        address_space_unmap(CPU(cpu)->as, regs, len, len, true);
> >>>    
> >>>    out_restore_l1:
> >>> -    memcpy(env->gpr, spapr_cpu->nested_host_state->gpr, sizeof(env->gpr));
> >>> -    env->lr = spapr_cpu->nested_host_state->lr;
> >>> -    env->ctr = spapr_cpu->nested_host_state->ctr;
> >>> -    memcpy(env->crf, spapr_cpu->nested_host_state->crf, sizeof(env->crf));
> >>> -    env->cfar = spapr_cpu->nested_host_state->cfar;
> >>> -    env->xer = spapr_cpu->nested_host_state->xer;
> >>> -    env->so = spapr_cpu->nested_host_state->so;
> >>> -    env->ca = spapr_cpu->nested_host_state->ca;
> >>> -    env->ov = spapr_cpu->nested_host_state->ov;
> >>> -    env->ov32 = spapr_cpu->nested_host_state->ov32;
> >>> -    env->ca32 = spapr_cpu->nested_host_state->ca32;
> >>
> >> Above fields so, ca, ov, ov32, ca32 are not taken care in
> >> nested_load_state, ca being introduced in previous patch.
> > 
> > They should be, by cpu_write_xer.
> > 
> I see. In that case, do we really need the previous 1/4 patch?

Good question. This supersedes it, but it's good practice to do a
minimal fixes for bugs. Not just to make for easier backporting, but it
helps to understand bugs in the commit history.

>
> Reviewed-by: Harsh Prateek Bora <harshpb@linux.ibm.com>

Thanks,
Nick


  reply	other threads:[~2023-06-15  5:38 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-08  9:13 [PATCH 0/4] ppc/spapr: Nested HV fix and tidying Nicholas Piggin
2023-06-08  9:13 ` [PATCH 1/4] ppc/spapr: H_ENTER_NESTED should restore host XER ca field Nicholas Piggin
2023-06-09  7:05   ` Harsh Prateek Bora
2023-06-14 11:53     ` Nicholas Piggin
2023-06-08  9:13 ` [PATCH 2/4] ppc/spapr: Add a nested state struct Nicholas Piggin
2023-06-09  7:09   ` Harsh Prateek Bora
2023-06-14 11:56     ` Nicholas Piggin
2023-06-15  4:51       ` Harsh Prateek Bora
2023-06-15  5:36         ` Nicholas Piggin [this message]
2023-06-08  9:13 ` [PATCH 3/4] ppc/spapr: load and store l2 state with helper functions Nicholas Piggin
2023-06-09  8:00   ` Harsh Prateek Bora
2023-06-14 12:02     ` Nicholas Piggin
2023-06-15  4:53       ` Harsh Prateek Bora
2023-06-08  9:13 ` [PATCH 4/4] ppc/spapr: Move spapr nested HV to a new file Nicholas Piggin
2023-06-15  6:30   ` Harsh Prateek Bora
2023-06-15 11:51     ` Nicholas Piggin
2023-06-16  4:57       ` Harsh Prateek Bora
2023-06-18  9:53   ` Daniel Henrique Barboza
2023-06-20  3:41     ` Nicholas Piggin

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=CTCZBGI3FBF7.7FQGDAVNLTYL@wheely \
    --to=npiggin@gmail.com \
    --cc=dbarboza@ventanamicro.com \
    --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 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.