]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Hyper-V: pcib: Check revoke status during device attach
authorWei Hu <whu@FreeBSD.org>
Thu, 15 Oct 2020 05:57:20 +0000 (05:57 +0000)
committerWei Hu <whu@FreeBSD.org>
Thu, 15 Oct 2020 05:57:20 +0000 (05:57 +0000)
commit75c2786c25fef9a6f8239c9fc1631cd17756579b
tree3da9ea0624c9f12779b6e23e2a06d5898e2d39cc
parentad429c47ce165070d8fc9a2eae3810215ca39c84
Hyper-V: pcib: Check revoke status during device attach

It is possible that the vmbus pcib channel is revoked during attach path.
The attach path could be waiting for response from host and this response will never
arrive since the channel has already been revoked from host point of view. Check
this situation during wait complete and return failed if this happens.

Reported by: Netapp
MFC after: 2 weeks
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D26486
sys/dev/hyperv/pcib/vmbus_pcib.c