freebsd-src/sys/dev/xen
Roger Pau Monné ee72bc1d1f xen/debug: remove usage of sbuf_{clear,finish}() on drained sbuf
Using sbuf_clear() on a drained sbuf is explicitly prohibited, and using
sbuf_finish() after printing a trace leads to a single trace being printed, as
after calling sbuf_finish() further attempts to use the same sbuf will lead to
a panic.

While there also switch to using xen_emergency_print() instead of attempting to
write directly to the hypervisor console.  xen_emergency_print() can be
implemented per-arch to use a different mechanism than the console hypercall
(note the default implementation still uses the console hypercall).

Fixes: df62b8a25f ('xen: add a handler for the debug interrupt')
Sponsored by: Cloud Software Group
Reviewed by: markj
Differential review: https://reviews.freebsd.org/D45060
2024-05-09 12:50:08 +02:00
..
balloon xen/dev: remove __unused from driver argument of identify functions 2023-11-28 13:32:57 +01:00
blkback xen/dev: switch to DEVMETHOD_END 2023-11-28 13:31:47 +01:00
blkfront xen/dev: switch to DEVMETHOD_END 2023-11-28 13:31:47 +01:00
bus x86/xen: fix accounted interrupt time 2024-04-16 09:06:33 +02:00
console x86/xen: introduce non-hypercall based emergency print 2024-02-22 11:08:03 +01:00
control xen/dev: remove __unused from driver argument of identify functions 2023-11-28 13:32:57 +01:00
cpu sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
debug xen/debug: remove usage of sbuf_{clear,finish}() on drained sbuf 2024-05-09 12:50:08 +02:00
efi sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
evtchn sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
gntdev gntdev: Handle errors from suword32() in gntdev_alloc_gref() 2023-12-25 21:04:01 -05:00
grant_table xen/dev: remove __unused from driver argument of identify functions 2023-11-28 13:32:57 +01:00
netback netpfil: Use accessor functions and named constants for all tcphdr flags 2023-12-25 13:18:01 +01:00
netfront xen-netfront: attempt to make cleanup idempotent 2023-11-06 11:17:40 +01:00
privcmd sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
timer xen/intr: correct misuses of Xen handle pointer type 2023-11-28 12:51:19 +01:00
xenpci xen/dev: switch to DEVMETHOD_END 2023-11-28 13:31:47 +01:00
xenstore xen/dev: remove __unused from driver argument of identify functions 2023-11-28 13:32:57 +01:00