Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 180b1381 authored by Alex Williamson's avatar Alex Williamson
Browse files

vfio-pci: Use byte granularity in config map



The config map previously used a byte per dword to map regions of
config space to capabilities.  Modulo a bug where we round the length
of capabilities down instead of up, this theoretically works well and
saves space so long as devices don't try to hide registers in the gaps
between capabilities.  Unfortunately they do exactly that so we need
byte granularity on our config space map.  Increase the allocation of
the config map and split accesses at capability region boundaries.

Signed-off-by: default avatarAlex Williamson <alex.williamson@redhat.com>
Tested-by: default avatarGavin Shan <shangw@linux.vnet.ibm.com>
parent 0bced2f7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment