1. 24 9月, 2015 4 次提交
    • A
      vfio/pci: Rename MSI/X functions for easier tracing · 0de70dc7
      Alex Williamson 提交于
      This allows vfio_msi* tracing.  The MSI/X interrupt tracing is also
      pulled out of #ifdef DEBUG_VFIO to avoid a recompile for tracing this
      path.  A few cycles to read the message is hardly anything if we're
      already in QEMU.
      Signed-off-by: NAlex Williamson <alex.williamson@redhat.com>
      0de70dc7
    • A
      vfio/pci: Rename INTx functions for easier tracing · 870cb6f1
      Alex Williamson 提交于
      Rename functions and tracing callbacks so that we can trace vfio_intx*
      to see all the INTx related activities.
      Signed-off-by: NAlex Williamson <alex.williamson@redhat.com>
      870cb6f1
    • A
      vfio/pci: Cleanup vfio_early_setup_msix() error path · b5bd049f
      Alex Williamson 提交于
      With the addition of the Chelsio quirk we have an error path out of
      vfio_early_setup_msix() that doesn't free the allocated VFIOMSIXInfo
      struct.  This doesn't introduce a leak as it still gets freed in the
      vfio_put_device() path, but it's complicated and sloppy to rely on
      that.  Restructure to free the allocated data on error and only link
      it into the vdev on success.
      Signed-off-by: NAlex Williamson <alex.williamson@redhat.com>
      Reported-by: NLaszlo Ersek <lersek@redhat.com>
      Reviewed-by: NLaszlo Ersek <lersek@redhat.com>
      b5bd049f
    • A
      vfio/pci: Cleanup RTL8168 quirk and tracing · d451008e
      Alex Williamson 提交于
      There's quite a bit of cleanup that can be done to the RTL8168 quirk,
      as well as the tracing to prevent a spew of uninteresting accesses
      for anything else the driver might choose to use the window registers
      for besides the MSI-X table.  There should be no functional change,
      but it's now possible to get compact and useful traces by enabling
      vfio_rtl8168_quirk*, ex:
      
      vfio_rtl8168_quirk_write 0000:04:00.0 [address]: 0x1f000
      vfio_rtl8168_quirk_read 0000:04:00.0 [address]: 0x8001f000
      vfio_rtl8168_quirk_read 0000:04:00.0 [data]: 0xfee0100c
      vfio_rtl8168_quirk_write 0000:04:00.0 [address]: 0x1f004
      vfio_rtl8168_quirk_read 0000:04:00.0 [address]: 0x8001f004
      vfio_rtl8168_quirk_read 0000:04:00.0 [data]: 0x0
      vfio_rtl8168_quirk_write 0000:04:00.0 [address]: 0x1f008
      vfio_rtl8168_quirk_read 0000:04:00.0 [address]: 0x8001f008
      vfio_rtl8168_quirk_read 0000:04:00.0 [data]: 0x49b1
      vfio_rtl8168_quirk_write 0000:04:00.0 [address]: 0x1f00c
      vfio_rtl8168_quirk_read 0000:04:00.0 [address]: 0x8001f00c
      vfio_rtl8168_quirk_read 0000:04:00.0 [data]: 0x0
      Signed-off-by: NAlex Williamson <alex.williamson@redhat.com>
      d451008e
  2. 23 9月, 2015 36 次提交