Skip to contentSkip to conversation

Misaligned I/O Breakpoints

PATCH New Matthew Barnes 1 participant 1 message Nov 12, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Misaligned I/O Breakpoints

This xtf test tests a bug to hardware IO port breakpoints fixed by 08aacc392d86 ("x86/emul: Fix misaligned IO breakpoint behaviour in PV guests")

---
 docs/all-tests.dox                       |   2 +
 tests/misaligned-io-breakpoints/Makefile |   9 +
 tests/misaligned-io-breakpoints/main.c   | 283 +++++++++++++++++++++++
 3 files changed, 294 insertions(+)
 create mode 100644 tests/misaligned-io-breakpoints/Makefile
 create mode 100644 tests/misaligned-io-breakpoints/main.c
docs/all-tests.dox +2 -0
index 0a8b9130cfe8..66e35babe4d7 100644
@@ -41,6 +41,8 @@ Coveres XSA-106 and XSA-156.
 
 @subpage test-umip - Guest User-Mode Instruction Prevention support.
 
+@subpage test-misaligned-io-breakpoints - Misaligned I/O port hardware breakpoint test.
+
 
 @section index-xsa XSA Proof-of-Concept tests
 
tests/misaligned-io-breakpoints/Makefile new file +9 -0
new file mode 100644
index 000000000000..9e4cd3eef761
@@ -0,0 +1,9 @@
+include $(ROOT)/build/common.mk
+
+NAME      := misaligned-io-breakpoints
+CATEGORY  := utility
+TEST-ENVS := pv64
+
+obj-perenv += main.o
+
+include $(ROOT)/build/gen.mk
tests/misaligned-io-breakpoints/main.c new file +283 -0

283 lines not on this page · raw message

Signature · 1 line
2.34.1