x86/traps: Implement #CP handler and extend #PF for shadow stacks
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 21 Feb 2020 17:56:57 +0000 (17:56 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 29 May 2020 22:09:46 +0000 (23:09 +0100)
commit5ad05b9c249060fb0f8e8afb9215b08f04579f17
treec01a2b94f0e34855b20c1e6b893c3af29bf83264
parentd3fb3ed32fc8ee4cb453058e54e7c317a9b93922
x86/traps: Implement #CP handler and extend #PF for shadow stacks

For now, any #CP exception or shadow stack #PF indicate a bug in Xen, but
attempt to recover from #CP if taken in guest context.

This will of course have to change as part of introducing CET-SS support for
PV guests.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/traps.c
xen/arch/x86/x86_64/entry.S
xen/include/asm-x86/processor.h