HomeFreeBSD

bhyve: Add support for XML register definitions

Description

bhyve: Add support for XML register definitions

This is useful for exposing additional registers to debuggers. For
instance, control registers are now available on amd64 when using gdb to
debug a guest.

The stub indicates support by including the string
"qXfer:features:read+" in its feature list. The debugger queries for
target descriptions by sending the query "qXfer:features:read:" followed
by a file path.

The XML definitions are copied from QEMU and installed to
/usr/share/bhyve/gdb.

Note that we currently don't handle the SIMD registers at all, since
that's of somewhat limited utility (for me at least) and since that
requires new ioctls to fetch the register values.

Reviewed by: jhb
MFC after: 2 weeks
Sponsored by: Innovate UK
Differential Revision: https://reviews.freebsd.org/D43666

(cherry picked from commit f81cdf24ba5436367377f7c8e8f51f6df2a75ca7)

Details

Provenance
markjAuthored on Feb 21 2024, 12:21 AM
Reviewer
jhb
Differential Revision
D43666: bhyve: Add support for XML register definitions
Parents
rG43ae86aa8e24: conf: Expand the include path for more openssl files
Branches
Unknown
Tags
Unknown