]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
arm64: Add a macro to find a VM fault address
authorAndrew Turner <andrew@FreeBSD.org>
Wed, 21 Feb 2024 18:17:47 +0000 (18:17 +0000)
committerAndrew Turner <andrew@FreeBSD.org>
Wed, 21 Feb 2024 18:55:32 +0000 (18:55 +0000)
commitb3bbec37ba039a46f7166f6fa3571f38da4253e9
treecf134685e8355edf7ed75dfd676cebb4f3cbd8b3
parent9c52f98c9f1abfe6577335522b6007659f759adc
arm64: Add a macro to find a VM fault address

Add a macro to find which bits from far_el2 are needed to be copied
to get the full intermediate physical address (IPA).

The hpfar_el2 register only contains a 4k aligned fault address. We
need to include the lower bits from far_el2 if we need the full
faulting IPA.
sys/arm64/include/hypervisor.h