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
Unknown Object (File)
Sat, Dec 27, 3:21 PM
Unknown Object (File)
Sun, Dec 14, 11:23 PM
Unknown Object (File)
Wed, Dec 10, 10:28 PM
Unknown Object (File)
Nov 18 2025, 1:43 PM
Unknown Object (File)
Nov 5 2025, 5:19 PM
Unknown Object (File)
Oct 29 2025, 5:45 PM
Unknown Object (File)
Oct 29 2025, 1:06 PM
Unknown Object (File)
Oct 28 2025, 2:42 AM
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