opnsense-src/sys/dev/hyperv
Wei Hu d11e9de955 Hyper-V: vPCI: Prepopulate device bars
In recent Hyper-V releases on Windows Server 2022, vPCI code does not
initialize the last 4 bit of device bar registers. This behavior change
could result weird problems cuasing PCI code failure when configuring
bars.

Just write all 1's to those bars whose probed values are not the same
as current read ones. This seems to make Hyper-V vPCI and
pci_write_bar() to cooperate correctly on these releases.

Reported by:	khng@freebsd.org
Tested by:	khng@freebsd.org
MFC after:	2 weeks
Sponsored by:	Microsoft

(cherry picked from commit 75412a521f)
2021-11-30 07:43:32 +00:00
..
hvsock socket: Rename sb(un)lock() and interlock with listen(2) 2021-10-07 09:56:47 -04:00
include HyperV socket implementation for FreeBSD 2020-05-20 11:03:59 +00:00
input Revert r355806: kbd drivers: don't double register keyboard drivers 2019-12-26 17:09:36 +00:00
netvsc netvsc: Fix a typo in a comment 2021-10-06 08:19:58 +02:00
pcib Hyper-V: vPCI: Prepopulate device bars 2021-11-30 07:43:32 +00:00
storvsc storvsc: fix auto-sense reporting 2021-05-21 13:32:13 +03:00
utilities sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
vmbus hyperv: Register the MSR-based timecounter during SI_SUB_HYPERVISOR 2021-11-22 08:45:34 -05:00