android_kernel_xiaomi_sm8350/arch/i386/kernel
Andi Kleen ab144f5ec6 i386: Make patching more robust, fix paravirt issue
Commit 19d36ccdc3 "x86: Fix alternatives
and kprobes to remap write-protected kernel text" uses code which is
being patched for patching.

In particular, paravirt_ops does patching in two stages: first it
calls paravirt_ops.patch, then it fills any remaining instructions
with nop_out().  nop_out calls text_poke() which calls
lookup_address() which calls pgd_val() (aka paravirt_ops.pgd_val):
that call site is one of the places we patch.

If we always do patching as one single call to text_poke(), we only
need make sure we're not patching the memcpy in text_poke itself.
This means the prototype to paravirt_ops.patch needs to change, to
marshal the new code into a buffer rather than patching in place as it
does now.  It also means all patching goes through text_poke(), which
is known to be safe (apply_alternatives is also changed to make a
single patch).

AK: fix compilation on x86-64 (bad rusty!)
AK: fix boot on x86-64 (sigh)
AK: merged with other patches

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-08-11 15:58:13 -07:00
..
acpi ACPI: restore CONFIG_ACPI_SLEEP 2007-07-29 16:53:59 -07:00
cpu i386: include asm/bugs.h in bugs.c for check_bugs prototype 2007-07-31 15:39:42 -07:00
.gitignore
alternative.c i386: Make patching more robust, fix paravirt issue 2007-08-11 15:58:13 -07:00
apic.c i386: remove volatile in apic.c 2007-07-21 18:37:14 -07:00
apm.c arch/i386/kernel/apm.c: apm_init() warning fix 2007-07-31 15:39:39 -07:00
asm-offsets.c lguest: the asm offsets 2007-07-19 10:04:52 -07:00
bootflag.c
cpuid.c
crash_dump.c
crash.c
doublefault.c
e820.c Replace CONFIG_SOFTWARE_SUSPEND with CONFIG_HIBERNATION 2007-07-29 16:45:38 -07:00
early_printk.c
efi_stub.S
efi.c arch/i386/* fs/* ipc/*: mark variables with uninitialized_var() 2007-07-17 16:23:19 -04:00
entry.S i386: fixup TRACE_IRQ breakage 2007-07-18 12:09:01 -07:00
geode.c i386: basic infrastructure support for AMD geode-class machines 2007-07-21 18:37:14 -07:00
head.S xen: Core Xen implementation 2007-07-18 08:47:42 -07:00
hpet.c i386: hpet assumes boot cpu is 0 2007-07-21 18:37:14 -07:00
i386_ksyms.c
i387.c
i8237.c
i8253.c i386: move PIT function declarations and constants to correct header file 2007-07-21 18:37:14 -07:00
i8259.c
init_task.c use the new percpu interface for shared data 2007-07-19 10:04:45 -07:00
io_apic.c i386: remove old IRQ balancing debug cruft 2007-07-21 18:37:14 -07:00
ioport.c
irq.c i386: Update alignment when 4K stacks are used. 2007-07-21 18:37:14 -07:00
kprobes.c x86: Fix alternatives and kprobes to remap write-protected kernel text 2007-07-22 11:03:37 -07:00
ldt.c
machine_kexec.c
Makefile revert "x86, serial: convert legacy COM ports to platform devices" 2007-07-31 15:39:38 -07:00
mca.c
microcode.c Remove fs.h from mm.h 2007-07-29 17:09:29 -07:00
module.c
mpparse.c
msr.c
nmi.c i386: Do not include other cpus' interrupt 0 in nmi_watchdog 2007-07-22 11:03:38 -07:00
numaq.c
paravirt.c i386: Make patching more robust, fix paravirt issue 2007-08-11 15:58:13 -07:00
pci-dma.c x86: Disable DAC on VIA bridges 2007-06-20 14:27:25 -07:00
pcspeaker.c
process.c x86: Make Alt-SysRq-p display the debug register contents 2007-07-21 18:37:10 -07:00
ptrace.c Handle bogus %cs selector in single-step instruction decoding 2007-07-18 12:09:01 -07:00
quirks.c Clean up E7520/7320/7525 quirk printk. 2007-07-07 13:53:13 -07:00
reboot_fixups.c GEODE: reboot fixup for geode machines with CS5536 boards 2007-07-06 11:45:11 -07:00
reboot.c i386: DMI_MATCH patch in reboot.c for SFF Dell OptiPlex 745 - fixes hang on reboot 2007-07-21 18:37:12 -07:00
relocate_kernel.S
scx200.c
setup.c ACPI: restore CONFIG_ACPI_SLEEP 2007-07-29 16:53:59 -07:00
sigframe.h
signal.c x86: i386-show-unhandled-signals-v3 2007-07-22 11:03:37 -07:00
smp.c paravirt: unstatic leave_mm 2007-07-18 08:47:41 -07:00
smpboot.c i386: Fix cpu_llc_id section mismatch warning 2007-07-22 11:03:37 -07:00
smpcommon.c i386: Allow smp_call_function_single() to current cpu 2007-07-16 12:05:50 +03:00
srat.c
summit.c
sys_i386.c Remove fs.h from mm.h 2007-07-29 17:09:29 -07:00
syscall_table.S sys_fallocate() implementation on i386, x86_64 and powerpc 2007-07-17 21:42:44 -04:00
sysenter.c Remove fs.h from mm.h 2007-07-29 17:09:29 -07:00
time.c NTP: move the cmos update code into ntp.c 2007-07-21 17:49:15 -07:00
topology.c
trampoline.S
traps.c x86: Stop MCEs and NMIs during code patching 2007-07-22 11:03:37 -07:00
tsc_sync.c
tsc.c lguest: the host code 2007-07-19 10:04:52 -07:00
vm86.c
vmi.c i386: Make patching more robust, fix paravirt issue 2007-08-11 15:58:13 -07:00
vmiclock.c i386: move PIT function declarations and constants to correct header file 2007-07-21 18:37:14 -07:00
vmlinux.lds.S i386: Put allocated ELF notes in read-only data segment 2007-07-19 10:04:47 -07:00
vsyscall-int80.S
vsyscall-note.S xen: disable vdso "nosegneg" on native boot 2007-07-20 08:44:19 -07:00
vsyscall-sigreturn.S
vsyscall-sysenter.S
vsyscall.lds.S
vsyscall.S