HomeFreeBSD

arm64/vmm: Move the vgic_max_cpu_count() check

Description

arm64/vmm: Move the vgic_max_cpu_count() check

vm_alloc_vcpu() is called quite frequently, and we don't need to apply
the vgic limit unless we're actually allocating a vcpu structure for the
first time.

No functional change intended.

Reviewed by: andrew
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Sponsored by: Klara, Inc.
Differential Revision: https://reviews.freebsd.org/D53580

Details

Provenance
markjAuthored on Nov 4 2025, 4:58 PM
Reviewer
andrew
Differential Revision
D53580: arm64/vmm: Move the vgic_max_cpu_count() check
Parents
rGf999ffdce381: virtio: Fix polling in virtqueue_dequeue()
Branches
Unknown
Tags
Unknown