Re: [kvm-unit-tests PATCH v9 14/31] powerpc: Remove broken SMP exception stack setup

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon Jun 3, 2024 at 7:30 PM AEST, Thomas Huth wrote:
> On 04/05/2024 14.28, Nicholas Piggin wrote:
> > The exception stack setup does not work correctly for SMP, because
> > it is the boot processor that calls cpu_set() which sets SPRG2 to
> > the exception stack, not the target CPU itself. So secondaries
> > never got their SPRG2 set to a valid exception stack.
>
> So secondary CPUs currently must not run into any exceptions?

Yes, at the moment. It was broken anyway.

Patch 16 creates a proper environment for secondaries, including
taking interrupts.

Thanks,
Nick

>
> > Remove the SMP code and just set an exception stack for the boot
> > processor. Make the stack 64kB while we're here, to match the
> > size of the regular stack.
> > 
> > Signed-off-by: Nicholas Piggin <npiggin@xxxxxxxxx>
> > ---
> >   lib/powerpc/setup.c | 16 ++++++++--------
> >   1 file changed, 8 insertions(+), 8 deletions(-)
>
> Reviewed-by: Thomas Huth <thuth@xxxxxxxxxx>






[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux