[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <52245D94.5050702@jp.fujitsu.com>
Date: Mon, 02 Sep 2013 18:42:44 +0900
From: HATAYAMA Daisuke <d.hatayama@...fujitsu.com>
To: Borislav Petkov <bp@...en8.de>
CC: ebiederm@...ssion.com, vgoyal@...hat.com,
akpm@...ux-foundation.org, hpa@...ux.intel.com,
kexec@...ts.infradead.org, linux-kernel@...r.kernel.org,
jingbai.ma@...com
Subject: Re: [PATCH 2/2] x86, apic: Disable BSP if boot cpu is AP
(2013/09/02 16:13), Borislav Petkov wrote:
> On Mon, Sep 02, 2013 at 11:32:59AM +0900, HATAYAMA Daisuke wrote:
>> As you suggest, boot_cpu seems more understandable also to me. BTW,
>> please notice that it doesn't denote that the CPU we're booting on
>> currently, but that the CPU with BSP flag set.
>
> Hmm, by "BSP flag set" you mean it is the first LAPIC entry in the MADT,
> correct? At least this is the case when you set isbsp to true. Because,
> there's also the BSC flag in APIC_BAR (MSR 0x1b) which denotes the
> bootstrapping core on node 0.
>
The reason why I don't lookup BSP flag in MSR is that it's impossible.
To read MSR of some CPU, we need to use rdmsr instruction on the CPU.
However, in case of this issue, the BSP is halting or running in
the kdump 1st kernel.
A whole explanation is written in the patch description.
--
Thanks.
HATAYAMA, Daisuke
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists