arm64/vmm: Avoid unnecessary indirection in vmmops_modinit()

Most of vmm.h is machine-independent.  Simplify merging amd64 and arm64
vmm code by removing this machine-dependent routine from arm64's vmm.h.
No functional change intended.

Reviewed by:	andrew
Differential Revision:	https://reviews.freebsd.org/D45557
This commit is contained in:
Mark Johnston 2024-06-13 20:16:57 -04:00
parent a03354b002
commit d730cdea2a
2 changed files with 1 additions and 8 deletions

View File

@ -201,13 +201,6 @@ cpuset_t vm_active_cpus(struct vm *vm);
cpuset_t vm_debug_cpus(struct vm *vm);
cpuset_t vm_suspended_cpus(struct vm *vm);
static __inline bool
virt_enabled(void)
{
return (has_hyp());
}
static __inline int
vcpu_rendezvous_pending(struct vm_eventinfo *info)
{

View File

@ -239,7 +239,7 @@ vmmops_modinit(int ipinum)
int cpu, i;
bool rv __diagused;
if (!virt_enabled()) {
if (!has_hyp()) {
printf(
"vmm: Processor doesn't have support for virtualization\n");
return (ENXIO);