[PATCH v2 04/14] x86/traps: Implement #CP handler and extend #PF for shadow stacks

2020-05-27 Thread Andrew Cooper
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. Signed-off-by: Andrew Cooper --- CC: Jan Beulich CC: Wei Liu CC: Roger Pau Monné v2: * Rebase over #PF[Rsvd] rework. * Alignment for PFEC_shstk. * Use more X86_E

Re: [PATCH v2 04/14] x86/traps: Implement #CP handler and extend #PF for shadow stacks

2020-05-28 Thread Jan Beulich
On 27.05.2020 21:18, Andrew Cooper wrote: > 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. > > Signed-off-by: Andrew Cooper Reviewed-by: Jan Beulich with one more question and a suggestion: > @@ -1445,8 +1447,1

Re: [PATCH v2 04/14] x86/traps: Implement #CP handler and extend #PF for shadow stacks

2020-05-28 Thread Andrew Cooper
On 28/05/2020 13:03, Jan Beulich wrote: > On 27.05.2020 21:18, Andrew Cooper wrote: >> 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. >> >> Signed-off-by: Andrew Cooper > Reviewed-by: Jan Beulich > with one more

Re: [PATCH v2 04/14] x86/traps: Implement #CP handler and extend #PF for shadow stacks

2020-05-28 Thread Jan Beulich
On 28.05.2020 15:22, Andrew Cooper wrote: > On 28/05/2020 13:03, Jan Beulich wrote: >> On 27.05.2020 21:18, Andrew Cooper wrote: >>> @@ -940,7 +944,8 @@ autogen_stubs: /* Automatically generated stubs. */ >>> entrypoint 1b >>> >>> /* Reserved exceptions, heading towards do_reser

Re: [PATCH v2 04/14] x86/traps: Implement #CP handler and extend #PF for shadow stacks

2020-05-29 Thread Andrew Cooper
On 28/05/2020 14:31, Jan Beulich wrote: > On 28.05.2020 15:22, Andrew Cooper wrote: >> On 28/05/2020 13:03, Jan Beulich wrote: >>> On 27.05.2020 21:18, Andrew Cooper wrote: @@ -940,7 +944,8 @@ autogen_stubs: /* Automatically generated stubs. */ entrypoint 1b