HomeFreeBSD

vmm: enable software breakpoints for AMD CPUs

Description

vmm: enable software breakpoints for AMD CPUs

This patch adds support for software breakpoint vmexits on AMD SVM.
It implements the VM_CAP_BPT_EXIT used to enable software breakpoints.
When enabled, breakpoint vmexits are passed to userspace where they
are handled by the GDB stub.

Reviewed by: jhb
Sponsored by: Google, Inc. (GSoC 2022)
Differential Revision: https://reviews.freebsd.org/D42295

(cherry picked from commit 231eee17d2905682014b71d1f01719003b13bd91)

Details

Provenance
bnovkovAuthored on Dec 7 2023, 10:46 PM
jhbCommitted on Jan 5 2024, 12:25 AM
Reviewer
jhb
Differential Revision
D42295: vmm: enable software breakpoints for AMD CPUs
Parents
rG6d80d20a64a4: vmm: refactor event reflection in AMD SVM
Branches
Unknown
Tags
Unknown