mbox

[PULL,00/17] vfio queue

Message ID 20241224151547.386529-1-clg@redhat.com (mailing list archive)
State New
Headers show

Pull-request

https://github.com/legoater/qemu/ tags/pull-vfio-20241224

Message

Cédric Le Goater Dec. 24, 2024, 3:15 p.m. UTC
The following changes since commit aa3a285b5bc56a4208b3b57d4a55291e9c260107:

  Merge tag 'mem-2024-12-21' of https://github.com/davidhildenbrand/qemu into staging (2024-12-22 14:33:27 -0500)

are available in the Git repository at:

  https://github.com/legoater/qemu/ tags/pull-vfio-20241224

for you to fetch changes up to 242c3cb9a0b0375515630f11c4ecf277f00d1f37:

  migration: Unexport migration_is_active() (2024-12-23 20:15:55 +0100)

----------------------------------------------------------------
vfio queue:

* Add support for IGD passthrough on all Intel Gen 11 and 12 devices
* Refactor dirty tracking engine to include VFIO state in calc-dirty-rate
* Drop usage migration_is_device() and migration_is_active()

----------------------------------------------------------------
Avihai Horon (7):
      vfio/container: Add dirty tracking started flag
      vfio/migration: Refactor vfio_devices_all_dirty_tracking() logic
      vfio/migration: Refactor vfio_devices_all_running_and_mig_active() logic
      vfio/migration: Rename vfio_devices_all_dirty_tracking()
      system/dirtylimit: Don't use migration_is_active()
      migration: Drop migration_is_device()
      migration: Unexport migration_is_active()

Tomita Moeko (10):
      vfio/igd: fix GTT stolen memory size calculation for gen 8+
      vfio/igd: remove unsupported device ids
      vfio/igd: align generation with i915 kernel driver
      vfio/igd: canonicalize memory size calculations
      vfio/igd: add Gemini Lake and Comet Lake device ids
      vfio/igd: add Alder/Raptor/Rocket/Ice/Jasper Lake device ids
      vfio/igd: add macro for declaring mirrored registers
      vfio/igd: emulate GGC register in mmio bar0
      vfio/igd: emulate BDSM in mmio bar0 for gen 6-10 devices
      vfio/igd: add x-igd-gms option back to set DSM region size for guest

 include/hw/vfio/vfio-common.h         |   6 +-
 include/hw/vfio/vfio-container-base.h |   1 +
 include/migration/misc.h              |   2 -
 hw/vfio/common.c                      |  57 ++++----
 hw/vfio/container-base.c              |  12 +-
 hw/vfio/container.c                   |   2 +-
 hw/vfio/igd.c                         | 262 +++++++++++++++++++++-------------
 migration/migration.c                 |  23 ++-
 system/dirtylimit.c                   |   3 +-
 9 files changed, 214 insertions(+), 154 deletions(-)

Comments

Stefan Hajnoczi Dec. 25, 2024, 1:31 p.m. UTC | #1
Hi Cédric,
Please take a look at the following 32-bit CI failure:

i686-linux-gnu-gcc -m32 -Ilibqemu-x86_64-softmmu.a.p -I. -I.. -Itarget/i386 -I../target/i386 -Isubprojects/libvduse -I../subprojects/libvduse -Iqapi -Itrace -Iui -Iui/shader -I/usr/include/capstone -I/usr/include/p11-kit-1 -I/usr/include/pixman-1 -I/usr/include/libpng16 -I/usr/include/spice-server -I/usr/include/spice-1 -I/usr/include/SDL2 -I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/gio-unix-2.0 -I/usr/include/slirp -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/i386-linux-gnu -I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/i386-linux-gnu/dbus-1.0/include -I/usr/include/vte-2.91 -I/usr/include/virgl -I/usr/include/cacard -I/usr/include/nss -I/usr/include/nspr -I/usr/include/PCSC -I/usr/include/libusb-1.0 -I/usr/include/pipewire-0.3 -I/usr/include/spa-0.2 -I/usr/include/fuse3 -I/usr/include/uuid -fdiagnostics-color=auto -Wall -Winvalid-pch -Werror -std=gnu11 -O2 -g -fstack-protector-strong -Wempty-body -Wendif-labels -Wexpansion-to-defined -Wformat-security -Wformat-y2k -Wignored-qualifiers -Wimplicit-fallthrough=2 -Winit-self -Wmissing-format-attribute -Wmissing-prototypes -Wnested-externs -Wold-style-declaration -Wold-style-definition -Wredundant-decls -Wshadow=local -Wstrict-prototypes -Wtype-limits -Wundef -Wvla -Wwrite-strings -Wno-missing-include-dirs -Wno-psabi -Wno-shift-negative-value -isystem /builds/qemu-project/qemu/linux-headers -isystem linux-headers -iquote . -iquote /builds/qemu-project/qemu -iquote /builds/qemu-project/qemu/include -iquote /builds/qemu-project/qemu/host/include/i386 -iquote /builds/qemu-project/qemu/host/include/generic -iquote /builds/qemu-project/qemu/tcg/i386 -msse2 -mfpmath=sse -D_GNU_SOURCE -D_LARGEFILE_SOURCE -fno-strict-aliasing -fno-common -fwrapv -ftrivial-auto-var-init=zero -fzero-call-used-regs=used-gpr -fPIE -D_FILE_OFFSET_BITS=64 -D__USE_FILE_OFFSET64 -D__USE_LARGEFILE64 -DUSE_POSIX_ACLS=1 -pthread -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -DNCURSES_WIDECHAR=1 -D_REENTRANT -DSTRUCT_IOVEC_DEFINED -isystem../linux-headers -isystemlinux-headers -DCOMPILING_PER_TARGET '-DCONFIG_TARGET="x86_64-softmmu-config-target.h"' '-DCONFIG_DEVICES="x86_64-softmmu-config-devices.h"' -MD -MQ libqemu-x86_64-softmmu.a.p/hw_vfio_igd.c.o -MF libqemu-x86_64-softmmu.a.p/hw_vfio_igd.c.o.d -o libqemu-x86_64-softmmu.a.p/hw_vfio_igd.c.o -c ../hw/vfio/igd.c
../hw/vfio/igd.c: In function ‘vfio_igd_pci_config_read’:
../hw/vfio/igd.c:438:18: error: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘uint64_t’ {aka ‘long long unsigned int’} [-Werror=format=]
  438 |         hw_error("igd: unsupported pci config read at %lx, size %u",
      |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  439 |                  offset, size);
      |                  ~~~~~~
      |                  |
      |                  uint64_t {aka long long unsigned int}
../hw/vfio/igd.c: In function ‘vfio_igd_pci_config_write’:
../hw/vfio/igd.c:463:18: error: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘uint64_t’ {aka ‘long long unsigned int’} [-Werror=format=]
  463 |         hw_error("igd: unsupported pci config write at %lx, size %u",
      |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  464 |                  offset, size);
      |                  ~~~~~~
      |                  |
      |                  uint64_t {aka long long unsigned int}
cc1: all warnings being treated as errors

https://gitlab.com/qemu-project/qemu/-/jobs/8722428394#L6317

Once the issue has been resolved, please send a new revision of this
pull request. Thanks!

Stefan
Cédric Le Goater Dec. 25, 2024, 5:48 p.m. UTC | #2
Hello Stefan,

On 12/25/24 14:31, Stefan Hajnoczi wrote:
> Hi Cédric,
> Please take a look at the following 32-bit CI failure:

Drat. I didn't check 32-bit ... Sorry about that.

I will resend.

Thanks,

C.