Re: [PATCH 2/2] x86/machine_kexec: disable PMU before jumping to new kernel

2020-11-26 Thread Pingfan Liu
Sorry that I had made a misunderstanding of the code. Nacked it On Mon, Nov 23, 2020 at 1:37 PM Pingfan Liu wrote: > > During jumping to the new kernel, on the crashed cpu, the memory mapping > switches from an old one to an identity one. It had better disable PMU to > suppress NMI, which can be

[PATCH 2/2] x86/machine_kexec: disable PMU before jumping to new kernel

2020-11-22 Thread Pingfan Liu
During jumping to the new kernel, on the crashed cpu, the memory mapping switches from an old one to an identity one. It had better disable PMU to suppress NMI, which can be delivered using the old mapping. Also on x86_64, idt_invalidate() to clear idt as on 32 bits. Signed-off-by: Pingfan Liu C