• Alex Williamson's avatar
    vfio/pci: Enable virtual register in PCI config space · 345d7104
    Alex Williamson authored
    Typically config space for a device is mapped out into capability
    specific handlers and unassigned space.  The latter allows direct
    read/write access to config space.  Sometimes we know about registers
    living in this void space and would like an easy way to virtualize
    them, similar to how BAR registers are managed.  To do this, create
    one more pseudo (fake) PCI capability to be handled as purely virtual
    space.  Reads and writes are serviced entirely from virtual config
    space.
    Signed-off-by: default avatarAlex Williamson <alex.williamson@redhat.com>
    345d7104
vfio_pci_config.c 44.9 KB