6ce031e5d6
Native IPI is used for AP booting, because it is the booting interface
between OS and BIOS firmware. The paravirt IPI is only used inside OS,
and native IPI is necessary to boot AP.
When booting AP, we write the kernel entry address in the HW mailbox of
AP and send IPI interrupt to it. AP executes idle instruction and waits
for interrupts or SW events, then clears IPI interrupt and jumps to the
kernel entry from HW mailbox.
Between writing HW mailbox and sending IPI, AP can be woken up by SW
events and jumps to the kernel entry, so ACTION_BOOT_CPU IPI interrupt
will keep pending during AP booting. And native IPI interrupt handler
needs be registered so that it can clear pending native IPI, else there
will be endless interrupts during AP booting stage.
Here native IPI interrupt is initialized even if paravirt IPI is used.
Cc: stable@vger.kernel.org
Fixes:
|
||
---|---|---|
.. | ||
.gitignore | ||
access-helper.h | ||
acpi.c | ||
alternative.c | ||
asm-offsets.c | ||
cacheinfo.c | ||
cpu-probe.c | ||
crash_dump.c | ||
dma.c | ||
efi-header.S | ||
efi.c | ||
elf.c | ||
entry.S | ||
env.c | ||
fpu.S | ||
ftrace_dyn.c | ||
ftrace.c | ||
genex.S | ||
head.S | ||
hw_breakpoint.c | ||
idle.c | ||
image-vars.h | ||
inst.c | ||
io.c | ||
irq.c | ||
jump_label.c | ||
kfpu.c | ||
kgdb.c | ||
kprobes.c | ||
lbt.S | ||
machine_kexec.c | ||
Makefile | ||
Makefile.syscalls | ||
mcount_dyn.S | ||
mcount.S | ||
mem.c | ||
module-sections.c | ||
module.c | ||
numa.c | ||
paravirt.c | ||
perf_event.c | ||
perf_regs.c | ||
proc.c | ||
process.c | ||
ptrace.c | ||
relocate_kernel.S | ||
relocate.c | ||
reset.c | ||
rethook_trampoline.S | ||
rethook.c | ||
rethook.h | ||
setup.c | ||
signal.c | ||
smp.c | ||
stacktrace.c | ||
switch.S | ||
syscall.c | ||
sysrq.c | ||
time.c | ||
topology.c | ||
traps.c | ||
unaligned.c | ||
unwind_guess.c | ||
unwind_orc.c | ||
unwind_prologue.c | ||
unwind.c | ||
uprobes.c | ||
vdso.c | ||
vmlinux.lds.S |