]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
libvmmapi: Make vm_raise_msi() a common function
authorMark Johnston <markj@FreeBSD.org>
Wed, 3 Apr 2024 17:09:32 +0000 (13:09 -0400)
committerMark Johnston <markj@FreeBSD.org>
Wed, 10 Apr 2024 15:17:56 +0000 (11:17 -0400)
commit1855002ddf0b226d92ce5d698bae06305d9a3a4e
tree4e9fbd8727be5a378407c9f7b6f07b6fc2752dd2
parent5ec6c3007e36736a979434d9bf5c9e22293970b3
libvmmapi: Make vm_raise_msi() a common function

Currently, bhyve PCI emulation uses vm_lapic_msi() to raise an MSI in
the guest.  The arm64 port has a similar function, vm_raise_msi().
Add vm_raise_msi() on amd64 as well and have it simply call
vm_lapic_msi() so that bhyve can use a common, generically named
function.

Reviewed by: corvink, andrew, jhb
MFC after: 2 weeks
Sponsored by: Innovate UK
Differential Revision: https://reviews.freebsd.org/D41752
lib/libvmmapi/aarch64/vmmapi_machdep.c
lib/libvmmapi/amd64/vmmapi_machdep.c
lib/libvmmapi/vmmapi.h