Skip to content

x86/pv: #DB vs %dr6 fixes, part 2

Andrew Cooper xen-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest7 patches 23 repliesIn review
  2. v15 patches 16 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7x86/emul: ASSERT that X86EMUL_DONE doesn't escape to callersxen/arch/x86/x86_emulate/x86_emulate.c+6 -01 reply
2/7x86/emul: Fix and extend #DB trap handlingxen/arch/x86/x86_emulate/x86_emulate.c xen/arch/x86/x86_emulate/x86_emulate.h+24 -105 replies
3/7x86/pv: Fix the determiniation of whether to inject #DBxen/arch/x86/pv/emul-priv-op.c+5 -20 replies
4/7x86/pv: Drop priv_op_ctxt.bpmatch and use pending_dbg insteadxen/arch/x86/pv/emul-priv-op.c+12 -124 replies
5/7x86: Introduce x86_merge_dr6()xen/arch/x86/debug.c xen/arch/x86/include/asm/debugreg.h xen/arch/x86/include/asm/x86-defns.h+34 -05 replies
6/7x86: Extend x86_event with a pending_dbg fieldxen/arch/x86/include/asm/domain.h xen/arch/x86/include/asm/hvm/hvm.h xen/arch/x86/x86_emulate/x86_emulate.h+22 -42 replies
7/7x86/pv: Rewrite %dr6 handlingxen/arch/x86/pv/emul-priv-op.c xen/arch/x86/pv/emulate.c xen/arch/x86/pv/ro-page-fault.c +2 more+34 -245 replies

Reviews trailers per patch

6 of 7 patches have a Reviewed-by or Acked-by.

PatchJan Beulich
1/7R-b
2/7
3/7R-b
4/7R-b
5/7A-b
6/7R-b
7/7R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/7] x86/pv: #DB vs %dr6 fixes, part 2

This time with a bit of sanity testing. See patches for details.

Andrew Cooper (7):
x86/emul: ASSERT that X86EMUL_DONE doesn't escape to callers x86/emul: Fix and extend #DB trap handling
x86/pv: Fix the determiniation of whether to inject #DB x86/pv: Drop priv_op_ctxt.bpmatch and use pending_dbg instead
x86: Introduce x86_merge_dr6()
x86: Extend x86_event with a pending_dbg field x86/pv: Rewrite %dr6 handling

 xen/arch/x86/debug.c                   | 20 +++++++++++++++++
 xen/arch/x86/include/asm/debugreg.h    |  7 ++++++
 xen/arch/x86/include/asm/domain.h      | 18 ++++++++++++++--
 xen/arch/x86/include/asm/hvm/hvm.h     |  3 ++-
 xen/arch/x86/include/asm/x86-defns.h   |  7 ++++++
 xen/arch/x86/pv/emul-priv-op.c         | 30 +++++++++++++-------------
 xen/arch/x86/pv/emulate.c              |  9 ++++++--
 xen/arch/x86/pv/ro-page-fault.c        |  4 ++--
 xen/arch/x86/pv/traps.c                | 17 +++++++++++----
 xen/arch/x86/traps.c                   | 23 ++++++++++----------
 xen/arch/x86/x86_emulate/x86_emulate.c | 26 ++++++++++++++++------
 xen/arch/x86/x86_emulate/x86_emulate.h | 19 ++++++++++++----
 12 files changed, 134 insertions(+), 49 deletions(-)
Signature · 1 line
2.30.2