Page MenuHomeFreeBSD

arm64/vmm: Update exception vectors around a guest
ClosedPublic

Authored by andrew on Jul 23 2024, 11:21 AM.
Tags
None
Referenced Files
F151763685: D46081.id142245.diff
Fri, Apr 10, 12:26 PM
Unknown Object (File)
Tue, Apr 7, 12:30 PM
Unknown Object (File)
Mon, Apr 6, 12:16 PM
Unknown Object (File)
Fri, Apr 3, 2:28 PM
Unknown Object (File)
Sat, Mar 21, 7:42 PM
Unknown Object (File)
Thu, Mar 19, 7:34 AM
Unknown Object (File)
Sat, Mar 14, 11:40 PM
Unknown Object (File)
Feb 25 2026, 3:13 PM
Subscribers

Details

Summary

When entering into a guest with VHE we need to switch from the kernel
exception vectors to the vmm exception vectors. The latter understands
an exception will be from a guest and can switch back to a kernel
context.

Rather than encoding the location of the kernel vectors we can just
read the value from vbar_el2 and restore it later.

Sponsored by: Arm Ltd

Diff Detail

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