HomeFreeBSD

vmm: Remove an unneeded lookup in devmem_create_cdev()

Description

vmm: Remove an unneeded lookup in devmem_create_cdev()

The sole caller of this function already holds a pointer to the VM's
softc, so rather than passing the VM name and looking it up again, just
pass the softc pointer directly. This function is only called from an
ioctl context, so the softc structure will remain live.

Reviewed by: corvink, jhb
Differential Revision: https://reviews.freebsd.org/D46446

Details

Provenance
markjAuthored on Aug 28 2024, 6:57 PM
Reviewer
corvink
Differential Revision
D46446: vmm: Remove an unneeded lookup in devmem_create_cdev()
Parents
rG063a8bd908dd: vmm: Factor most of sysctl_vmm_destroy() into a separate function
Branches
Unknown
Tags
Unknown