git: 53b8812c9a99 - main - arm64/vmm: Allow vmm when in VHE

From: Andrew Turner <andrew_at_FreeBSD.org>
Date: Tue, 20 Aug 2024 09:02:30 UTC
The branch main has been updated by andrew:

URL: https://cgit.FreeBSD.org/src/commit/?id=53b8812c9a997ef7e8879484890ef688bca4acdf

commit 53b8812c9a997ef7e8879484890ef688bca4acdf
Author:     Andrew Turner <andrew@FreeBSD.org>
AuthorDate: 2024-08-19 12:46:00 +0000
Commit:     Andrew Turner <andrew@FreeBSD.org>
CommitDate: 2024-08-20 08:49:16 +0000

    arm64/vmm: Allow vmm when in VHE
    
    We now support VHE in byve so there is no reason to block it.
    
    Sponsored by:   Arm Ltd
    Differential Revision:  https://reviews.freebsd.org/D46085
---
 sys/arm64/vmm/vmm_arm64.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/sys/arm64/vmm/vmm_arm64.c b/sys/arm64/vmm/vmm_arm64.c
index 3079353668e3..164ff65cfe2c 100644
--- a/sys/arm64/vmm/vmm_arm64.c
+++ b/sys/arm64/vmm/vmm_arm64.c
@@ -246,12 +246,6 @@ vmmops_modinit(int ipinum)
 		return (ENXIO);
 	}
 
-	/* TODO: Support VHE */
-	if (in_vhe()) {
-		printf("vmm: VHE is unsupported\n");
-		return (ENXIO);
-	}
-
 	if (!vgic_present()) {
 		printf("vmm: No vgic found\n");
 		return (ENODEV);