]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Put the arm64 vttbr_el2 register into a state
authorAndrew Turner <andrew@FreeBSD.org>
Tue, 15 Nov 2022 12:53:28 +0000 (12:53 +0000)
committerAndrew Turner <andrew@FreeBSD.org>
Tue, 15 Nov 2022 17:26:52 +0000 (17:26 +0000)
commitae43a817d33db3aa51f6dfce8dd940f06716e2a9
treedb198aadafddca016709cbfcf030226906930361
parent80ba994bfacd8a843af4eb9cb7558b62e8de26ee
Put the arm64 vttbr_el2 register into a state

Zero the vttbr_el2 register on each CPU so we can tell if we are
running the host or guest kernel from a hypervisor.

Obtained from: https://github.com/FreeBSD-UPB/freebsd-src (earlier version)
Sponsored by: Innovate UK
Sponsored by: The FreeBSD Foundation
sys/arm64/arm64/locore.S
sys/arm64/include/hypervisor.h