x86/svm: implement debug events
authorAlexandru Isaila <aisaila@bitdefender.com>
Tue, 27 Mar 2018 08:26:42 +0000 (10:26 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 27 Mar 2018 08:26:42 +0000 (10:26 +0200)
commit9338a37dd976d95a3cb371bff3e613337a2fdf55
tree7e955a69dfd65ae494081448cd386e4f22fc0fac
parent99ebf740680cafa9df3b83841961f9cc1d4f774f
x86/svm: implement debug events

At this moment the Debug events for the AMD architecture are not
forwarded to the monitor layer.

This patch adds the Debug event to the common capabilities, adds
the VMEXIT_ICEBP then forwards the event to the monitor layer.

Chapter 2: SVM Processor and Platform Extensions: "Note: A vector 1
exception generated by the single byte INT1
instruction (also known as ICEBP) does not trigger the #DB
intercept. Software should use the dedicated ICEBP
intercept to intercept ICEBP"

Signed-off-by: Alexandru Isaila <aisaila@bitdefender.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Acked-by: Tamas K Lengyel <tamas@tklengyel.com>
xen/arch/x86/hvm/svm/emulate.c
xen/arch/x86/hvm/svm/svm.c
xen/arch/x86/monitor.c
xen/include/asm-x86/hvm/hvm.h
xen/include/asm-x86/hvm/svm/emulate.h
xen/include/asm-x86/monitor.h