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)
Wed, Nov 5, 5:19 PM
Unknown Object (File)
Wed, Oct 29, 5:45 PM
Unknown Object (File)
Wed, Oct 29, 1:06 PM
Unknown Object (File)
Tue, Oct 28, 2:42 AM
Unknown Object (File)
Mon, Oct 27, 9:32 AM
Unknown Object (File)
Mon, Oct 27, 7:13 AM
Unknown Object (File)
Mon, Oct 27, 6:33 AM
Unknown Object (File)
Sat, Oct 25, 1:55 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