x86/paravirt: Drop {read,write}_cr8() hooks
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 15 Jul 2019 15:16:41 +0000 (16:16 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 22 Jul 2019 08:12:33 +0000 (10:12 +0200)
commit83b584d9c6a1494170abd3a8b24f41939b23d625
treed1cd396adbb7280482b290a423d09005b4dd0d6d
parent229b969b3d38bc28bcd55841ee7ca9a9afb922f3
x86/paravirt: Drop {read,write}_cr8() hooks

There is a lot of infrastructure for functionality which is used
exclusively in __{save,restore}_processor_state() on the suspend/resume
path.

cr8 is an alias of APIC_TASKPRI, and APIC_TASKPRI is saved/restored by
lapic_{suspend,resume}().  Saving and restoring cr8 independently of the
rest of the Local APIC state isn't a clever thing to be doing.

Delete the suspend/resume cr8 handling, which shrinks the size of struct
saved_context, and allows for the removal of both PVOPS.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Juergen Gross <jgross@suse.com>
Link: https://lkml.kernel.org/r/20190715151641.29210-1-andrew.cooper3@citrix.com
arch/x86/include/asm/paravirt.h
arch/x86/include/asm/paravirt_types.h
arch/x86/include/asm/special_insns.h
arch/x86/include/asm/suspend_64.h
arch/x86/kernel/asm-offsets_64.c
arch/x86/kernel/paravirt.c
arch/x86/power/cpu.c
arch/x86/xen/enlighten_pv.c