diff options
author | Alex Williamson <alex.williamson@redhat.com> | 2020-04-08 11:45:28 -0600 |
---|---|---|
committer | Sasha Levin <sashal@kernel.org> | 2020-06-29 20:07:52 -0400 |
commit | 2fbc2166f7ed243e9b0e511df2b93380999d71fe (patch) | |
tree | ac1c57de4ae97eb8ba44ff164e2485a706514794 /drivers/base | |
parent | 4d99f432ca2b888503a41133304b610372e0ce91 (diff) |
vfio-pci: Mask cap zero
[ Upstream commit bc138db1b96264b9c1779cf18d5a3b186aa90066 ]
The PCI Code and ID Assignment Specification changed capability ID 0
from reserved to a NULL capability in the v1.1 revision. The NULL
capability is defined to include only the 16-bit capability header,
ie. only the ID and next pointer. Unfortunately vfio-pci creates a
map of config space, where ID 0 is used to reserve the standard type
0 header. Finding an actual capability with this ID therefore results
in a bogus range marked in that map and conflicts with subsequent
capabilities. As this seems to be a dummy capability anyway and we
already support dropping capabilities, let's hide this one rather than
delving into the potentially subtle dependencies within our map.
Seen on an NVIDIA Tesla T4.
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/base')
0 files changed, 0 insertions, 0 deletions