Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: 5c08600547c059e3fd072995f9f367cdaf3c7d9d
      
https://github.com/qemu/qemu/commit/5c08600547c059e3fd072995f9f367cdaf3c7d9d
  Author: Eric Auger <eric.au...@redhat.com>
  Date:   2018-04-05 (Thu, 05 Apr 2018)

  Changed paths:
    M hw/vfio/common.c
    M hw/vfio/trace-events

  Log Message:
  -----------
  vfio: Use a trace point when a RAM section cannot be DMA mapped

Commit 567b5b309abe ("vfio/pci: Relax DMA map errors for MMIO regions")
added an error message if a passed memory section address or size
is not aligned to the page size and thus cannot be DMA mapped.

This patch fixes the trace by printing the region name and the
memory region section offset within the address space (instead of
offset_within_region).

We also turn the error_report into a trace event. Indeed, In some
cases, the traces can be confusing to non expert end-users and
let think the use case does not work (whereas it works as before).

This is the case where a BAR is successively mapped at different
GPAs and its sections are not compatible with dma map. The listener
is called several times and traces are issued for each intermediate
mapping.  The end-user cannot easily match those GPAs against the
final GPA output by lscpi. So let's keep those information to
informed users. In mid term, the plan is to advise the user about
BAR relocation relevance.

Fixes: 567b5b309abe ("vfio/pci: Relax DMA map errors for MMIO regions")
Signed-off-by: Eric Auger <eric.au...@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4...@amsat.org>
Reviewed-by: Alexey Kardashevskiy <a...@ozlabs.ru>
Signed-off-by: Alex Williamson <alex.william...@redhat.com>


  Commit: 8267cf8b4b074a2f3fcfc30c82dea9d94298f87a
      
https://github.com/qemu/qemu/commit/8267cf8b4b074a2f3fcfc30c82dea9d94298f87a
  Author: Peter Maydell <peter.mayd...@linaro.org>
  Date:   2018-04-06 (Fri, 06 Apr 2018)

  Changed paths:
    M hw/vfio/common.c
    M hw/vfio/trace-events

  Log Message:
  -----------
  Merge remote-tracking branch 'remotes/awilliam/tags/vfio-fixes-20180405.0' 
into staging

VFIO fixes 2018-04-05

 - Convert over zealous error_report to trace point and make more
   meaningful (Eric Auger)

# gpg: Signature made Thu 05 Apr 2018 19:18:06 BST
# gpg:                using RSA key 239B9B6E3BB08B22
# gpg: Good signature from "Alex Williamson <alex.william...@redhat.com>"
# gpg:                 aka "Alex Williamson <a...@shazbot.org>"
# gpg:                 aka "Alex Williamson <alwil...@redhat.com>"
# gpg:                 aka "Alex Williamson <alex.l.william...@gmail.com>"
# Primary key fingerprint: 42F6 C04E 540B D1A9 9E7B  8A90 239B 9B6E 3BB0 8B22

* remotes/awilliam/tags/vfio-fixes-20180405.0:
  vfio: Use a trace point when a RAM section cannot be DMA mapped

Signed-off-by: Peter Maydell <peter.mayd...@linaro.org>


Compare: https://github.com/qemu/qemu/compare/0e87fdc966d0...8267cf8b4b07

Reply via email to