aboutsummaryrefslogtreecommitdiff
path: root/lib/memory-notifier-error-inject.c
diff options
context:
space:
mode:
authorPetr Tesarik <[email protected]>2018-04-25 12:08:35 +0200
committerThomas Gleixner <[email protected]>2018-04-27 17:06:28 +0200
commit3db3eb285259ac129f7aec6b814b3e9f6c1b372b (patch)
tree4d5bc5058ead6a13380ac4ecbf64f54b7b6347e0 /lib/memory-notifier-error-inject.c
parentb837913fc2d9061bf9b8c0dd6bf2d24e2f98b84a (diff)
x86/setup: Do not reserve a crash kernel region if booted on Xen PV
Xen PV domains cannot shut down and start a crash kernel. Instead, the crashing kernel makes a SCHEDOP_shutdown hypercall with the reason code SHUTDOWN_crash, cf. xen_crash_shutdown() machine op in arch/x86/xen/enlighten_pv.c. A crash kernel reservation is merely a waste of RAM in this case. It may also confuse users of kexec_load(2) and/or kexec_file_load(2). When flags include KEXEC_ON_CRASH or KEXEC_FILE_ON_CRASH, respectively, these syscalls return success, which is technically correct, but the crash kexec image will never be actually used. Signed-off-by: Petr Tesarik <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Reviewed-by: Juergen Gross <[email protected]> Cc: Tom Lendacky <[email protected]> Cc: Dou Liyang <[email protected]> Cc: Mikulas Patocka <[email protected]> Cc: Andy Lutomirski <[email protected]> Cc: "H. Peter Anvin" <[email protected]> Cc: [email protected] Cc: Boris Ostrovsky <[email protected]> Cc: Borislav Petkov <[email protected]> Cc: Jean Delvare <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions