• P
    powerpc/powernv: Fix problems in onlining CPUs · cba313da
    Paul Mackerras 提交于
    At present, on the powernv platform, if you off-line a CPU that was
    online, and then try to on-line it again, the kernel generates a
    warning message "OPAL Error -1 starting CPU n".  Furthermore, if the
    CPU is a secondary thread that was used by KVM while it was off-line,
    the CPU fails to come online.
    
    The first problem is fixed by only calling OPAL to start the CPU the
    first time it is on-lined, as indicated by the cpu_start field of its
    PACA being zero.  The second problem is fixed by restoring the
    cpu_start field to 1 instead of 0 when using the CPU within KVM.
    Signed-off-by: NPaul Mackerras <paulus@samba.org>
    Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
    cba313da
exceptions-64s.S 30.6 KB