Re: [Xen-devel] [PATCH] vmx: Restore debug registers when injecting #DB traps

2016-03-11 Thread Jan Beulich
>>> On 11.03.16 at 15:51, wrote: > --- a/xen/arch/x86/hvm/vmx/vmx.c > +++ b/xen/arch/x86/hvm/vmx/vmx.c > @@ -3091,24 +3091,23 @@ static int vmx_handle_eoi_write(void) > * It is the callers responsibility to ensure that this function is only used > * in the context of an appropriate vmexit. >

[Xen-devel] [PATCH] vmx: Restore debug registers when injecting #DB traps

2016-03-11 Thread Ross Lagerwall
Commit a929bee0e652 ("x86/vmx: Fix injection of #DB traps following XSA-156") prevents an infinite loop in certain #DB traps. However, it changed the behavior to not call hvm_hw_inject_trap() for #DB and #AC traps which which means that the debug registers are not restored correctly and nullified c