Otherwise using PAC instructions in EL1 will trigger a trap into EL2
that we don't handle.
ok jsg@, deraadt@
-/* $OpenBSD: locore.S,v 1.45 2023/12/12 07:37:20 deraadt Exp $ */
+/* $OpenBSD: locore.S,v 1.46 2024/03/16 20:46:28 kettenis Exp $ */
/*-
* Copyright (c) 2012-2014 Andrew Turner
* All rights reserved.
/* Configure the Hypervisor */
mov x2, #(HCR_RW)
+ orr x2, x2, #(HCR_API | HCR_APK)
msr hcr_el2, x2
/* Load the Virtualization Process ID Register */
-/* $OpenBSD: hypervisor.h,v 1.3 2021/02/21 13:14:47 kettenis Exp $ */
+/* $OpenBSD: hypervisor.h,v 1.4 2024/03/16 20:46:28 kettenis Exp $ */
/*-
* Copyright (c) 2013, 2014 Andrew Turner
* All rights reserved.
#define HCR_CD 0x0000000100000000
#define HCR_ID 0x0000000200000000
#define HCR_E2H 0x0000000400000000
+#define HCR_APK 0x0000010000000000
+#define HCR_API 0x0000020000000000
#endif