]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC 348779:
authorJohn Baldwin <jhb@FreeBSD.org>
Thu, 17 Oct 2019 23:29:52 +0000 (23:29 +0000)
committerJohn Baldwin <jhb@FreeBSD.org>
Thu, 17 Oct 2019 23:29:52 +0000 (23:29 +0000)
commitabb9921fcceff4c9eea2de8067bb723d98d8c936
tree3312980d3f55ba3875a19ab45461f4a1eaf588ab
parentd88b55de98e4288f369ae1377e099562a6c7e605
MFC 348779:
Keep the shadow PCIR_COMMAND synced with the real one for pass through.

This ensures that bhyve properly recognizes when decoding is disabled
for BARs on passthru devices.  To properly handle writes to the
register, export a pci_emul_cmd_changed function from pci_emul.c that
the pass through device model invokes for config writes that change
PCIR_COMMAND.
usr.sbin/bhyve/pci_emul.c
usr.sbin/bhyve/pci_emul.h
usr.sbin/bhyve/pci_passthru.c