]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
bhyve: Ignore MSI/MSI-X interrupts sent to non-active vCPUs in
authorkib <kib@FreeBSD.org>
Sat, 3 Aug 2019 16:57:14 +0000 (16:57 +0000)
committerkib <kib@FreeBSD.org>
Sat, 3 Aug 2019 16:57:14 +0000 (16:57 +0000)
commitaaa4016aff60fba2c3c0bd2a876ca1006f2664c5
tree6d5e66d5d8da69dc70e942611c85f5aaabe2533d
parentc43ac389e259183da29b64dc46fb3b094563891e
bhyve: Ignore MSI/MSI-X interrupts sent to non-active vCPUs in
physical destination mode.

This is mostly a nop, because the vmm initializes all vCPUs up to
vm_maxcpus, so even if the target CPU is not active, lapic/vlapic code
still has the valid data to use.  As John notes, dropping such
interrupts more closely matches the real harware, which ignores all
interrupts for not started APs.

Reviewed by: jhb
admbugs: 837
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
sys/amd64/vmm/io/vlapic.c