qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] spapr: fix entry point for secondary CPUs
@ 2018-04-25  9:34 Cédric Le Goater
  2018-04-26  1:19 ` David Gibson
  0 siblings, 1 reply; 3+ messages in thread
From: Cédric Le Goater @ 2018-04-25  9:34 UTC (permalink / raw)
  To: qemu-ppc, qemu-devel; +Cc: David Gibson, Cédric Le Goater

Secondary CPUs do not start at SPAPR_ENTRY_POINT but at an address
given by the guest OS.

Fixes commit c79128c14c20 ("spapr: Make a helper to set up cpu entry
point state")

Signed-off-by: Cédric Le Goater <clg@kaod.org>
---
 hw/ppc/spapr_cpu_core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/ppc/spapr_cpu_core.c b/hw/ppc/spapr_cpu_core.c
index 326b35d6ed23..f3e9b879b251 100644
--- a/hw/ppc/spapr_cpu_core.c
+++ b/hw/ppc/spapr_cpu_core.c
@@ -76,7 +76,7 @@ void spapr_cpu_set_entry_state(PowerPCCPU *cpu, target_ulong nip, target_ulong r
     PowerPCCPUClass *pcc = POWERPC_CPU_GET_CLASS(cpu);
     CPUPPCState *env = &cpu->env;
 
-    env->nip = SPAPR_ENTRY_POINT;
+    env->nip = nip;
     env->gpr[3] = r3;
     CPU(cpu)->halted = 0;
     /* Enable Power-saving mode Exit Cause exceptions */
-- 
2.13.6

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

* Re: [Qemu-devel] [PATCH] spapr: fix entry point for secondary CPUs
  2018-04-25  9:34 [Qemu-devel] [PATCH] spapr: fix entry point for secondary CPUs Cédric Le Goater
@ 2018-04-26  1:19 ` David Gibson
  2018-04-26  7:18   ` Cédric Le Goater
  0 siblings, 1 reply; 3+ messages in thread
From: David Gibson @ 2018-04-26  1:19 UTC (permalink / raw)
  To: Cédric Le Goater; +Cc: qemu-ppc, qemu-devel

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

On Wed, Apr 25, 2018 at 11:34:24AM +0200, Cédric Le Goater wrote:
> Secondary CPUs do not start at SPAPR_ENTRY_POINT but at an address
> given by the guest OS.
> 
> Fixes commit c79128c14c20 ("spapr: Make a helper to set up cpu entry
> point state")
> 
> Signed-off-by: Cédric Le Goater <clg@kaod.org>

Oops.  Since I haven't send that patch upstream yet, I've folded this
fix in rather than including it as a separate patch.

Note that ppc-for-<whatever> are rebasing trees, so commit ids in
there aren't stable.

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

* Re: [Qemu-devel] [PATCH] spapr: fix entry point for secondary CPUs
  2018-04-26  1:19 ` David Gibson
@ 2018-04-26  7:18   ` Cédric Le Goater
  0 siblings, 0 replies; 3+ messages in thread
From: Cédric Le Goater @ 2018-04-26  7:18 UTC (permalink / raw)
  To: David Gibson; +Cc: qemu-ppc, qemu-devel

On 04/26/2018 03:19 AM, David Gibson wrote:
> On Wed, Apr 25, 2018 at 11:34:24AM +0200, Cédric Le Goater wrote:
>> Secondary CPUs do not start at SPAPR_ENTRY_POINT but at an address
>> given by the guest OS.
>>
>> Fixes commit c79128c14c20 ("spapr: Make a helper to set up cpu entry
>> point state")
>>
>> Signed-off-by: Cédric Le Goater <clg@kaod.org>
> 
> Oops.  Since I haven't send that patch upstream yet, I've folded this
> fix in rather than including it as a separate patch.

OK. 

> Note that ppc-for-<whatever> are rebasing trees, so commit ids in
> there aren't stable.

yes. I usually track these at the beginning of the dev cycle. So I 
have rebased all my QEMU development trees on ppc-for-2.13 yesterday 
and found a couple of issues in TCG hot(un)plug, the entry point and 
the radix LPCR setting.

C.
 

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

end of thread, other threads:[~2018-04-26  7:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-25  9:34 [Qemu-devel] [PATCH] spapr: fix entry point for secondary CPUs Cédric Le Goater
2018-04-26  1:19 ` David Gibson
2018-04-26  7:18   ` Cédric Le Goater

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