git: f579cc44981b - stable/15 - arm64/vmm: Add missing debug traps
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 09 Oct 2025 16:32:27 UTC
The branch stable/15 has been updated by andrew: URL: https://cgit.FreeBSD.org/src/commit/?id=f579cc44981b70a7a6315dce953a3df8b63a3984 commit f579cc44981b70a7a6315dce953a3df8b63a3984 Author: Andrew Turner <andrew@FreeBSD.org> AuthorDate: 2025-10-02 15:35:11 +0000 Commit: Andrew Turner <andrew@FreeBSD.org> CommitDate: 2025-10-09 16:31:50 +0000 arm64/vmm: Add missing debug traps These are features we don't support or advertise to the guest so can safely be trapped. Sponsored by: Arm Ltd Differential Revision: https://reviews.freebsd.org/D52806 (cherry picked from commit c67ea2707d2b5e6deb5986710f520ff69e4f78a3) --- sys/arm64/vmm/vmm_reset.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/arm64/vmm/vmm_reset.c b/sys/arm64/vmm/vmm_reset.c index c4102277131d..1240c3ed16ec 100644 --- a/sys/arm64/vmm/vmm_reset.c +++ b/sys/arm64/vmm/vmm_reset.c @@ -145,7 +145,8 @@ reset_vm_el2_regs(void *vcpu) /* Set the Extended Hypervisor Configuration Register */ el2ctx->hcrx_el2 = 0; /* TODO: Trap all extensions we don't support */ - el2ctx->mdcr_el2 = 0; + el2ctx->mdcr_el2 = MDCR_EL2_TDOSA | MDCR_EL2_TDRA | MDCR_EL2_TPMS | + MDCR_EL2_TTRF; /* PMCR_EL0.N is read from MDCR_EL2.HPMN */ el2ctx->mdcr_el2 |= (el2ctx->pmcr_el0 & PMCR_N_MASK) >> PMCR_N_SHIFT;