]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Keep the shadow PCIR_COMMAND synced with the real one for pass through.
authorjhb <jhb@FreeBSD.org>
Fri, 7 Jun 2019 15:53:27 +0000 (15:53 +0000)
committerjhb <jhb@FreeBSD.org>
Fri, 7 Jun 2019 15:53:27 +0000 (15:53 +0000)
commit8e4b03df46ab81e3e6357f1d3b89a98548e561a2
tree220fa32f142ca761c1976aafc49546792fb73a44
parent44305ec379872d8a7577e17fed00b1b9ac0463bd
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.

Reviewed by: rgrimes
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D20531
usr.sbin/bhyve/pci_emul.c
usr.sbin/bhyve/pci_emul.h
usr.sbin/bhyve/pci_passthru.c