x86emul: defer injection of #DB
authorJan Beulich <jbeulich@suse.com>
Fri, 30 Sep 2016 12:58:48 +0000 (14:58 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 30 Sep 2016 12:58:48 +0000 (14:58 +0200)
commitc3a2654fa248687c66f033fcdb4dd6c50e6d6fdf
treecbdf851f03ff9c03624c3bf7039ecdc08779e38d
parent2257f8409f11714938d89c15ccabb22fc4b67ce9
x86emul: defer injection of #DB

Move the raising of the single step trap until after registers were
updated. This should probably have been that way from the beginning,
to allow the inject_hw_exception() hook to see updated register state
(in case it cares) - it's a trap, after all.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/x86_emulate/x86_emulate.c