Page MenuHomeFreeBSD

x86/xen: fill hypercall page with int3
ClosedPublic

Authored by royger on Feb 16 2024, 12:15 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Apr 4, 12:02 AM
Unknown Object (File)
Thu, Apr 2, 7:12 AM
Unknown Object (File)
Tue, Mar 31, 6:09 AM
Unknown Object (File)
Mon, Mar 30, 8:53 PM
Unknown Object (File)
Sat, Mar 28, 7:11 AM
Unknown Object (File)
Fri, Mar 27, 4:32 PM
Unknown Object (File)
Sat, Mar 14, 4:21 AM
Unknown Object (File)
Mar 5 2026, 9:30 AM
Subscribers

Details

Summary

Filling the hypercall page with nops is not helpful from a debugging point of
view, as for example attempting to execute an hypercall before the page is
initialized will result in the execution flow falling through into
xen_start32, making the mistake less obvious to spot.

Instead fill the page with int3 (0xcc) which will result in a #BP trap.

Sponsored by: Cloud Software Group

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable