VFIO updates 2022-06-08
The following changes since commit 9b1f58854959c5a9bdb347e3e04c252ab7fc9ef5:
Merge tag 'pull-la-20220606' of https://gitlab.com/rth7680/qemu into staging (2022-06-06 16:16:01 -0700)
are available in the Git repository at:
https://gitlab.com/alex.williamson/qemu.git tags/vfio-updates-20220608.0
for you to fetch changes up to ec6600be0dc16982181c7ad80d94c143c0807dd2:
vfio/common: remove spurious warning on vfio_listener_region_del (2022-06-08 08:44:19 -0600)
----------------------------------------------------------------
VFIO updates 2022-06-08
* Fix spurious alignment warnings for TPM on unmap too (Eric Auger)
----------------------------------------------------------------
Eric Auger (1):
vfio/common: remove spurious warning on vfio_listener_region_del
hw/vfio/common.c | 10 +++++++++- hw/vfio/trace-events | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-)
[PULL 1/1] vfio/common: remove spurious warning on vfio_listener_region_del
From: Eric Auger <[email protected]>
851d6d1a0f ("vfio/common: remove spurious tpm-crb-cmd misalignment warning") removed the warning on vfio_listener_region_add() path.
However the same warning also hits on region_del path. Let's remove it and reword the dynamic trace as this can be called on both map and unmap path.
--- hw/vfio/common.c | 10 +++++++++- hw/vfio/trace-events | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-)
hw/vfio/common.c +9 -1
@@ -1145,7 +1145,15 @@ static void vfio_listener_region_del(MemoryListener *listener,if (unlikely ((section->offset_within_address_space & ~qemu_real_host_page_mask ()) != (section->offset_within_region & ~qemu_real_host_page_mask ()))) { -error_report ("%s received unaligned region" , __func__); +if (!vfio_known_safe_misalignment (section)) { +error_report ("%s received unaligned region %s iova=0x%" PRIx64 +" offset_within_region=0x%" PRIx64 +" qemu_real_host_page_size=0x%" PRIxPTR, + __func__,memory_region_name (section->mr), + section->offset_within_address_space, + section->offset_within_region, +qemu_real_host_page_size ()); + }return ; }
hw/vfio/trace-events +1 -1
@@ -100,7 +100,7 @@ vfio_listener_region_add_skip(uint64_t start, uint64_t end) "SKIPPING region_add vfio_spapr_group_attach(int groupfd, int tablefd) "Attached groupfd %d to liobn fd %d" vfio_listener_region_add_iommu(uint64_t start, uint64_t end) "region_add [iommu] 0x%"PRIx64" - 0x%"PRIx64 vfio_listener_region_add_ram(uint64_t iova_start, uint64_t iova_end, void *vaddr) "region_add [ram] 0x%"PRIx64" - 0x%"PRIx64" [%p]" -vfio_known_safe_misalignment(const char *name, uint64_t iova, uint64_t offset_within_region, uintptr_t page_size) "Region \"%s\" iova=0x%"PRIx64" offset_within_region=0x%"PRIx64" qemu_real_host_page_size=0x%"PRIxPTR ": cannot be mapped for DMA" +vfio_known_safe_misalignment(const char *name, uint64_t iova, uint64_t offset_within_region, uintptr_t page_size) "Region \"%s\" iova=0x%"PRIx64" offset_within_region=0x%"PRIx64" qemu_real_host_page_size=0x%"PRIxPTR vfio_listener_region_add_no_dma_map(const char *name, uint64_t iova, uint64_t size, uint64_t page_size) "Region \"%s\" 0x%"PRIx64" size=0x%"PRIx64" is not aligned to 0x%"PRIx64" and cannot be mapped for DMA" vfio_listener_region_del_skip(uint64_t start, uint64_t end) "SKIPPING region_del 0x%"PRIx64" - 0x%"PRIx64 vfio_listener_region_del(uint64_t start, uint64_t end) "region_del 0x%"PRIx64" - 0x%"PRIx64
Richard Henderson
AppliedQuoted 8 lines · Alex Williamson
The following changes since commit
9b1f58854959c5a9bdb347e3e04c252ab7fc9ef5:Merge tag 'pull-la-20220606' of https://gitlab.com/rth7680/qemu into staging (2022-06-06 16:16:01 -0700)are available in the Git repository at:
https://gitlab.com/alex.williamson/qemu.git tags/vfio-updates-20220608.0
Quoted 8 lines
for you to fetch changes up to
ec6600be0dc16982181c7ad80d94c143c0807dd2:vfio/common: remove spurious warning on vfio_listener_region_del (2022-06-08 08:44:19 -0600)----------------------------------------------------------------
VFIO updates 2022-06-08* Fix spurious alignment warnings for TPM on unmap too (Eric Auger)
Applied, thanks. Please update https://wiki.qemu.org/ChangeLog/7.1 as appropriate.
r~
Quoted 10 lines
----------------------------------------------------------------
Eric Auger (1):
vfio/common: remove spurious warning onvfio_listener_region_delhw/vfio/common.c | 10 +++++++++- hw/vfio/trace-events | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-)