Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: e3c659fee0bc2eee89115e4c8975a57d97998ef5
      
https://github.com/qemu/qemu/commit/e3c659fee0bc2eee89115e4c8975a57d97998ef5
  Author: Zhenzhong Duan <[email protected]>
  Date:   2026-01-26 (Mon, 26 Jan 2026)

  Changed paths:
    M hw/vfio/migration.c

  Log Message:
  -----------
  vfio/migration: Fix page size calculation

Coverity detected an issue of left shifting int by more than 31 bits leading
to undefined behavior.

In practice bcontainer->dirty_pgsizes always have some common page sizes
when dirty tracking is supported.

Resolves: Coverity CID 1644186
Resolves: Coverity CID 1644187
Resolves: Coverity CID 1644188
Fixes: 46c763311419 ("vfio/migration: Add migration blocker if VM memory is too 
large to cause unmap_bitmap failure").
Suggested-by: Cédric Le Goater <[email protected]>
Signed-off-by: Zhenzhong Duan <[email protected]>
Reviewed-by: Cédric Le Goater <[email protected]>
Link: 
https://lore.kernel.org/qemu-devel/[email protected]
Signed-off-by: Cédric Le Goater <[email protected]>


  Commit: 0e387bd1dff498b1387606386b5fd62c7b0c75dc
      
https://github.com/qemu/qemu/commit/0e387bd1dff498b1387606386b5fd62c7b0c75dc
  Author: Jim Shu <[email protected]>
  Date:   2026-01-26 (Mon, 26 Jan 2026)

  Changed paths:
    M hw/vfio/cpr-iommufd.c

  Log Message:
  -----------
  hw/vfio: cpr-iommufd: Fix wrong usage of migrate_add_blocker_modes

The return value of API is 0 for success and negative error code for
failure. We'll check if the return value equals to 0.
Also, the MIG_MODE should be CPR_TRANSFER and CPR_EXEC instead
of 2 same bits.

The API usage is aligned with 'hw/vfio/cpr-legacy.c' after these 2
changes.

Fixes: 3ca0a0ab05c ("migration: Use bitset of MigMode instead of variable 
arguments")
Signed-off-by: Jim Shu <[email protected]>
Reviewed-by: Cédric Le Goater <[email protected]>
Link: 
https://lore.kernel.org/qemu-devel/[email protected]
Signed-off-by: Cédric Le Goater <[email protected]>


  Commit: 49f6b93d0752b91c233ae8097d00a986cb8482c3
      
https://github.com/qemu/qemu/commit/49f6b93d0752b91c233ae8097d00a986cb8482c3
  Author: Shameer Kolothum <[email protected]>
  Date:   2026-01-26 (Mon, 26 Jan 2026)

  Changed paths:
    M hw/net/virtio-net.c
    M include/standard-headers/drm/drm_fourcc.h
    M include/standard-headers/linux/ethtool.h
    M include/standard-headers/linux/input-event-codes.h
    M include/standard-headers/linux/pci_regs.h
    M include/standard-headers/linux/virtio_net.h
    M include/standard-headers/linux/virtio_pci.h
    M linux-headers/asm-arm64/kvm.h
    M linux-headers/asm-arm64/unistd_64.h
    M linux-headers/asm-generic/unistd.h
    M linux-headers/asm-loongarch/kvm.h
    M linux-headers/asm-loongarch/unistd.h
    M linux-headers/asm-loongarch/unistd_64.h
    M linux-headers/asm-mips/unistd_n32.h
    M linux-headers/asm-mips/unistd_n64.h
    M linux-headers/asm-mips/unistd_o32.h
    M linux-headers/asm-powerpc/unistd_32.h
    M linux-headers/asm-powerpc/unistd_64.h
    M linux-headers/asm-riscv/kvm.h
    M linux-headers/asm-riscv/unistd_32.h
    M linux-headers/asm-riscv/unistd_64.h
    M linux-headers/asm-s390/bitsperlong.h
    M linux-headers/asm-s390/unistd.h
    M linux-headers/asm-s390/unistd_64.h
    M linux-headers/asm-x86/kvm.h
    M linux-headers/asm-x86/unistd_32.h
    M linux-headers/asm-x86/unistd_64.h
    M linux-headers/asm-x86/unistd_x32.h
    M linux-headers/linux/iommufd.h
    M linux-headers/linux/kvm.h
    M linux-headers/linux/mshv.h
    M linux-headers/linux/psp-sev.h
    M linux-headers/linux/vfio.h

  Log Message:
  -----------
  linux-headers: Update to Linux v6.19-rc1

Mainly for adding support for VFIO DMABUF. While at it, update all
headers.

The header update breaks virtio-net due to virtio_net_hdr_v1_hash
changes. Include the virtio-net changes to avoid build and bisect
failures.

Cc: Michael S. Tsirkin <[email protected]>
Cc: Jason Wang <[email protected]>
Tested-by: Nicolin Chen <[email protected]>
Reviewed-by: Cédric Le Goater <[email protected]>
Signed-off-by: Shameer Kolothum <[email protected]>
Reviewed-by: Eric Auger <[email protected]>
Tested-by: Eric Auger <[email protected]>
Reviewed-by: Michael S. Tsirkin <[email protected]>
Link: 
https://lore.kernel.org/qemu-devel/[email protected]
Signed-off-by: Cédric Le Goater <[email protected]>


  Commit: de36da106dcfd42ee79779a25713e86500276382
      
https://github.com/qemu/qemu/commit/de36da106dcfd42ee79779a25713e86500276382
  Author: Shameer Kolothum <[email protected]>
  Date:   2026-01-26 (Mon, 26 Jan 2026)

  Changed paths:
    M hw/vfio/container.c
    M hw/vfio/device.c
    M hw/vfio/listener.c
    M include/hw/vfio/vfio-device.h

  Log Message:
  -----------
  hw/vfio: Add helper to retrieve device feature

Add vfio_device_get_feature() as a common helper to retrieve
VFIO device features.

No functional change intended.

Reviewed-by: Cédric Le Goater <[email protected]>
Signed-off-by: Shameer Kolothum <[email protected]>
Reviewed-by: Eric Auger <[email protected]>
Tested-by: Eric Auger <[email protected]>
Reviewed-by: Michael S. Tsirkin <[email protected]>
Link: 
https://lore.kernel.org/qemu-devel/[email protected]
Signed-off-by: Cédric Le Goater <[email protected]>


  Commit: 8cfaf22668c7a9ed79f8b8f0910a2f69b4cfaae6
      
https://github.com/qemu/qemu/commit/8cfaf22668c7a9ed79f8b8f0910a2f69b4cfaae6
  Author: Nicolin Chen <[email protected]>
  Date:   2026-01-26 (Mon, 26 Jan 2026)

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

  Log Message:
  -----------
  hw/vfio/region: Create dmabuf for PCI BAR per region

Linux now provides a VFIO dmabuf exporter to expose PCI BAR memory for P2P
use cases. Create a dmabuf for each mapped BAR region after the mmap is set
up, and store the returned fd in the region’s RAMBlock. This allows QEMU to
pass the fd to dma_map_file(), enabling iommufd to import the dmabuf and map
the BAR correctly in the host IOMMU page table.

If the kernel lacks support or dmabuf setup fails, QEMU skips the setup
and continues with normal mmap handling.

Tested-by: Nicolin Chen <[email protected]>
Reviewed-by: Zhenzhong Duan <[email protected]>
Reviewed-by: Cédric Le Goater <[email protected]>
Signed-off-by: Nicolin Chen <[email protected]>
Signed-off-by: Shameer Kolothum <[email protected]>
Reviewed-by: Eric Auger <[email protected]>
Tested-by: Eric Auger <[email protected]>
Reviewed-by: Michael S. Tsirkin <[email protected]>
Link: 
https://lore.kernel.org/qemu-devel/[email protected]
Signed-off-by: Cédric Le Goater <[email protected]>


  Commit: 6a66c9f752920606d0712c992673bd18fbbf485b
      
https://github.com/qemu/qemu/commit/6a66c9f752920606d0712c992673bd18fbbf485b
  Author: Mark Cave-Ayland <[email protected]>
  Date:   2026-01-26 (Mon, 26 Jan 2026)

  Changed paths:
    M hw/vfio-user/proxy.h

  Log Message:
  -----------
  vfio-user: fix VFIO_PROXY_USE_MULTI constant value

The constant value should represent the next bit in the VFIOProxy flags which
is 0x10 and not 0x16.

Signed-off-by: Mark Cave-Ayland <[email protected]>
Fixes: 1a0c32a9da ("vfio-user: add coalesced posted writes")
Reviewed-by: John Levon <[email protected]>
Link: 
https://lore.kernel.org/qemu-devel/[email protected]
Signed-off-by: Cédric Le Goater <[email protected]>


  Commit: 4c5e5d66f991599bd34a65fc243d3c513e6b1e81
      
https://github.com/qemu/qemu/commit/4c5e5d66f991599bd34a65fc243d3c513e6b1e81
  Author: Mark Cave-Ayland <[email protected]>
  Date:   2026-01-26 (Mon, 26 Jan 2026)

  Changed paths:
    M hw/vfio-user/proxy.h

  Log Message:
  -----------
  vfio-user: update VFIOProxy flag constants to use the BIT() macro

This should help avoid incorrect constant values being used in future. At
the same time we can remove the gap left for BIT(1) which was originally
intended for the VFIO_PROXY_NO_MMAP feature which was removed from later
versions of the vfio-user series.

Suggested-by: John Levon <[email protected]>
Signed-off-by: Mark Cave-Ayland <[email protected]>
Reviewed-by: John Levon <[email protected]>
Link: 
https://lore.kernel.org/qemu-devel/[email protected]
Signed-off-by: Cédric Le Goater <[email protected]>


  Commit: f26976b9d30496d28bd4fd045f4300706e567a29
      
https://github.com/qemu/qemu/commit/f26976b9d30496d28bd4fd045f4300706e567a29
  Author: Richard Henderson <[email protected]>
  Date:   2026-01-27 (Tue, 27 Jan 2026)

  Changed paths:
    M hw/net/virtio-net.c
    M hw/vfio-user/proxy.h
    M hw/vfio/container.c
    M hw/vfio/cpr-iommufd.c
    M hw/vfio/device.c
    M hw/vfio/listener.c
    M hw/vfio/migration.c
    M hw/vfio/region.c
    M hw/vfio/trace-events
    M include/hw/vfio/vfio-device.h
    M include/standard-headers/drm/drm_fourcc.h
    M include/standard-headers/linux/ethtool.h
    M include/standard-headers/linux/input-event-codes.h
    M include/standard-headers/linux/pci_regs.h
    M include/standard-headers/linux/virtio_net.h
    M include/standard-headers/linux/virtio_pci.h
    M linux-headers/asm-arm64/kvm.h
    M linux-headers/asm-arm64/unistd_64.h
    M linux-headers/asm-generic/unistd.h
    M linux-headers/asm-loongarch/kvm.h
    M linux-headers/asm-loongarch/unistd.h
    M linux-headers/asm-loongarch/unistd_64.h
    M linux-headers/asm-mips/unistd_n32.h
    M linux-headers/asm-mips/unistd_n64.h
    M linux-headers/asm-mips/unistd_o32.h
    M linux-headers/asm-powerpc/unistd_32.h
    M linux-headers/asm-powerpc/unistd_64.h
    M linux-headers/asm-riscv/kvm.h
    M linux-headers/asm-riscv/unistd_32.h
    M linux-headers/asm-riscv/unistd_64.h
    M linux-headers/asm-s390/bitsperlong.h
    M linux-headers/asm-s390/unistd.h
    M linux-headers/asm-s390/unistd_64.h
    M linux-headers/asm-x86/kvm.h
    M linux-headers/asm-x86/unistd_32.h
    M linux-headers/asm-x86/unistd_64.h
    M linux-headers/asm-x86/unistd_x32.h
    M linux-headers/linux/iommufd.h
    M linux-headers/linux/kvm.h
    M linux-headers/linux/mshv.h
    M linux-headers/linux/psp-sev.h
    M linux-headers/linux/vfio.h

  Log Message:
  -----------
  Merge tag 'pull-vfio-20260126' of https://github.com/legoater/qemu into 
staging

vfio queue:

* Fixes for vfio-user and CPR
* Fixes issues detected by Coverity
* Updates linux-headers to Linux v6.19-rc1
* Adds support for the creation of dma-buf objects for PCI BARs. This
  allows safe P2P DMA operations when using iommufd host backend.

# -----BEGIN PGP SIGNATURE-----
#
# iQIzBAABCAAdFiEEoPZlSPBIlev+awtgUaNDx8/77KEFAml3MhsACgkQUaNDx8/7
# 7KH5dg/+PKQIuokpJOgbxBjQNvrw4qAehsuv799+tmCJ621utRWplSqnLls2x8+R
# jIu1v8T830Cxl7C+KcaSthxH+dcCvvVtV1YgQUbpjJJU/M/D5yq/Nc6N4KRGHE7t
# zTs1nUx4kTZ70HTbpoDgnDbZpTpbhfk3a6yNk+e/JSgJV3rf58z7ZsqaGMtRxp10
# eK9xSXzFS2MOwHPWsE33BL6aju8N1BeHmqW+j3Thsoh/aGxoTOT5wUSuJ0n1UmWx
# X53Cc62XS0ToGFCYqwbe06kZtn+n+xP3DakLoaj6xqdjuGtNn2CFE3XWSTRJKFqJ
# B3ODyBhOuZkyJhluQ3dBqd+CzE5DCiNPxvPAEAHZjNoAD2FRiGT/ZEHY5+49yIMq
# sMRm1qluNYFU17PvN3BjkQHcxDEpGu+f9NHp6/USMtdY4N9LgH8WkMjP/WAr/dXp
# hh/f8xJlzSAt8YfFgCWNEsWao1aaeOf6Lmn6A4MxV0TfBpas4s9eD+35Qrlt3GsI
# FhD1h8M8+vK/mn51JyQDWKCl9vjKvN8RIrHLS32T0PE0OVmT+d1w1/ZWlxmJeLld
# KVM1ex68zIX1xMdIK6Ygwv2KEMJpIe5JzOZSDeha1X+IgfjdM6ou2m5dVQ6sJp2d
# hJnEqtVOl7Pwn+DyEEmLVSIU2djqUHd2KESjt29u0T39WY95KGI=
# =R7jr
# -----END PGP SIGNATURE-----
# gpg: Signature made Mon 26 Jan 2026 08:21:31 PM AEDT
# gpg:                using RSA key A0F66548F04895EBFE6B0B6051A343C7CFFBECA1
# gpg: Good signature from "Cédric Le Goater <[email protected]>" [full]
# gpg:                 aka "Cédric Le Goater <[email protected]>" [full]

* tag 'pull-vfio-20260126' of https://github.com/legoater/qemu:
  vfio-user: update VFIOProxy flag constants to use the BIT() macro
  vfio-user: fix VFIO_PROXY_USE_MULTI constant value
  hw/vfio/region: Create dmabuf for PCI BAR per region
  hw/vfio: Add helper to retrieve device feature
  linux-headers: Update to Linux v6.19-rc1
  hw/vfio: cpr-iommufd: Fix wrong usage of migrate_add_blocker_modes
  vfio/migration: Fix page size calculation

Signed-off-by: Richard Henderson <[email protected]>


Compare: https://github.com/qemu/qemu/compare/fea2d7a784fc...f26976b9d304

To unsubscribe from these emails, change your notification settings at 
https://github.com/qemu/qemu/settings/notifications

Reply via email to