[Qemu-devel] [PATCH qemu v7 0/4] vfio-pci: Allow mmap of MSIX BAR
Here is my latest patchset to allow mapping of MSIX BAR to the guest in order to accelerate MMIO on certains devices. This is based on sha1 008a51b Peter Maydell "Merge remote-tracking branch 'remotes/famz/tags/staging-pull-request' into staging". Please comment. Thanks. Changes: v7: * split into many patches * test iova/llsize against pgmask in vfio_listener_region_add/del * s/vfio_is_cap_present/vfio_has_region_cap/ * added comments here and there * s/vdev->msix->table_bar/region->nr/ Alexey Kardashevskiy (4): linux-headers: update to f1517df8701c vfio/pci: Relax DMA map errors for MMIO regions vfio-pci: Allow mmap of MSIX BAR ppc/spapr, vfio: Turn off MSIX emulation for VFIO devices include/hw/vfio/vfio-common.h | 1 + include/standard-headers/linux/input-event-codes.h | 1 + include/standard-headers/linux/input.h | 11 + include/standard-headers/linux/pci_regs.h | 30 +- include/standard-headers/linux/virtio_balloon.h| 3 +- include/standard-headers/linux/virtio_net.h| 13 + linux-headers/asm-powerpc/unistd.h | 3 + linux-headers/asm-s390/unistd.h| 401 + linux-headers/linux/psci.h | 3 + linux-headers/linux/vfio.h | 72 hw/ppc/spapr.c | 7 + hw/vfio/common.c | 70 +++- hw/vfio/pci.c | 22 ++ 13 files changed, 220 insertions(+), 417 deletions(-) -- 2.11.0
Re: [Qemu-devel] [PATCH qemu v7 0/4] vfio-pci: Allow mmap of MSIX BAR
Hi, This series failed build test on s390x host. Please find the details below. Type: series Message-id: 20180209075503.16996-1-...@ozlabs.ru Subject: [Qemu-devel] [PATCH qemu v7 0/4] vfio-pci: Allow mmap of MSIX BAR === TEST SCRIPT BEGIN === #!/bin/bash # Testing script will be invoked under the git checkout with # HEAD pointing to a commit that has the patches applied on top of "base" # branch set -e echo "=== ENV ===" env echo "=== PACKAGES ===" rpm -qa echo "=== TEST BEGIN ===" CC=$HOME/bin/cc INSTALL=$PWD/install BUILD=$PWD/build echo -n "Using CC: " realpath $CC mkdir -p $BUILD $INSTALL SRC=$PWD cd $BUILD $SRC/configure --cc=$CC --prefix=$INSTALL make -j4 # XXX: we need reliable clean up # make check -j4 V=1 make install === TEST SCRIPT END === Updating 3c8cf5a9c21ff8782164d1def7f44bd888713384 From https://github.com/patchew-project/qemu * [new tag] patchew/20180209075503.16996-1-...@ozlabs.ru -> patchew/20180209075503.16996-1-...@ozlabs.ru Switched to a new branch 'test' 364588cdea ppc/spapr, vfio: Turn off MSIX emulation for VFIO devices b35d106f4a vfio-pci: Allow mmap of MSIX BAR 7144306422 vfio/pci: Relax DMA map errors for MMIO regions 8b136cea18 linux-headers: update to f1517df8701c === OUTPUT BEGIN === === ENV === LANG=en_US.UTF-8 XDG_SESSION_ID=48386 USER=fam PWD=/var/tmp/patchew-tester-tmp-oqq3slb3/src HOME=/home/fam SHELL=/bin/sh SHLVL=2 PATCHEW=/home/fam/patchew/patchew-cli -s http://patchew.org --nodebug LOGNAME=fam DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1012/bus XDG_RUNTIME_DIR=/run/user/1012 PATH=/usr/bin:/bin _=/usr/bin/env === PACKAGES === gpg-pubkey-873529b8-54e386ff glibc-debuginfo-common-2.24-10.fc25.s390x fedora-release-26-1.noarch dejavu-sans-mono-fonts-2.35-4.fc26.noarch xemacs-filesystem-21.5.34-22.20170124hgf412e9f093d4.fc26.noarch bash-4.4.12-7.fc26.s390x freetype-2.7.1-9.fc26.s390x libSM-1.2.2-5.fc26.s390x libmpc-1.0.2-6.fc26.s390x libaio-0.3.110-7.fc26.s390x libverto-0.2.6-7.fc26.s390x perl-Scalar-List-Utils-1.48-1.fc26.s390x iptables-libs-1.6.1-2.fc26.s390x perl-threads-shared-1.57-1.fc26.s390x p11-kit-trust-0.23.9-2.fc26.s390x tcl-8.6.6-2.fc26.s390x libxshmfence-1.2-4.fc26.s390x expect-5.45-23.fc26.s390x perl-Thread-Queue-3.12-1.fc26.noarch perl-encoding-2.19-6.fc26.s390x keyutils-1.5.10-1.fc26.s390x gmp-devel-6.1.2-4.fc26.s390x enchant-1.6.0-16.fc26.s390x net-snmp-libs-5.7.3-17.fc26.s390x python-gobject-base-3.24.1-1.fc26.s390x python3-distro-1.0.3-1.fc26.noarch python3-enchant-1.6.10-1.fc26.noarch python-lockfile-0.11.0-6.fc26.noarch python2-pyparsing-2.1.10-3.fc26.noarch python2-lxml-4.1.1-1.fc26.s390x librados2-10.2.7-2.fc26.s390x trousers-lib-0.3.13-7.fc26.s390x libpaper-1.1.24-14.fc26.s390x libdatrie-0.2.9-4.fc26.s390x libsoup-2.58.2-1.fc26.s390x passwd-0.79-9.fc26.s390x bind99-libs-9.9.10-3.P3.fc26.s390x python3-rpm-4.13.0.2-1.fc26.s390x mock-core-configs-27.4-1.fc26.noarch systemd-233-7.fc26.s390x virglrenderer-0.6.0-1.20170210git76b3da97b.fc26.s390x s390utils-ziomon-1.36.1-3.fc26.s390x s390utils-osasnmpd-1.36.1-3.fc26.s390x libXrandr-1.5.1-2.fc26.s390x libglvnd-glx-1.0.0-1.fc26.s390x texlive-ifxetex-svn19685.0.5-33.fc26.2.noarch texlive-psnfss-svn33946.9.2a-33.fc26.2.noarch texlive-dvipdfmx-def-svn40328-33.fc26.2.noarch texlive-natbib-svn20668.8.31b-33.fc26.2.noarch texlive-xdvi-bin-svn40750-33.20160520.fc26.2.s390x texlive-cm-svn32865.0-33.fc26.2.noarch texlive-beton-svn15878.0-33.fc26.2.noarch texlive-fpl-svn15878.1.002-33.fc26.2.noarch texlive-mflogo-svn38628-33.fc26.2.noarch texlive-texlive-docindex-svn41430-33.fc26.2.noarch texlive-luaotfload-bin-svn34647.0-33.20160520.fc26.2.noarch texlive-koma-script-svn41508-33.fc26.2.noarch texlive-pst-tree-svn24142.1.12-33.fc26.2.noarch texlive-breqn-svn38099.0.98d-33.fc26.2.noarch texlive-xetex-svn41438-33.fc26.2.noarch gstreamer1-plugins-bad-free-1.12.3-1.fc26.s390x xorg-x11-font-utils-7.5-33.fc26.s390x ghostscript-fonts-5.50-36.fc26.noarch libXext-devel-1.3.3-5.fc26.s390x libusbx-devel-1.0.21-2.fc26.s390x libglvnd-devel-1.0.0-1.fc26.s390x emacs-25.3-3.fc26.s390x alsa-lib-devel-1.1.4.1-1.fc26.s390x kbd-2.0.4-2.fc26.s390x dconf-0.26.0-2.fc26.s390x ccache-3.3.4-1.fc26.s390x glibc-static-2.25-12.fc26.s390x mc-4.8.19-5.fc26.s390x doxygen-1.8.13-9.fc26.s390x dpkg-1.18.24-1.fc26.s390x libtdb-1.3.13-1.fc26.s390x python2-pynacl-1.1.1-1.fc26.s390x nss-sysinit-3.34.0-1.0.fc26.s390x kernel-4.13.16-202.fc26.s390x perl-Filter-1.58-1.fc26.s390x python2-pip-9.0.1-11.fc26.noarch dnf-2.7.5-2.fc26.noarch pcre2-utf16-10.23-11.fc26.s390x glusterfs-devel-3.10.8-1.fc26.s390x sssd-common-1.16.0-4.fc26.s390x python2-sssdconfig-1.16.0-4.fc26.noarch acpica-tools-20171110-1.fc26.s390x glibc-debuginfo-2.24-10.fc25.s390x fedora-repos-26-1.noarch dejavu-fonts-common-2.35-4.fc26.noarch bind99-license-9.9.10-3.P3.fc26.noarch ncurses-libs-6.0-8.20170212.fc26.s390x libpng-1.6.28-2.fc26.s390x libICE-1.0.9-9.fc26.s390x kmod-24-1.fc26.s390x libseccomp-2.3.2-1.fc
Re: [Qemu-devel] [PATCH qemu v7 0/4] vfio-pci: Allow mmap of MSIX BAR
Hi, This series failed docker-mingw@fedora build test. Please find the testing commands and their output below. If you have Docker installed, you can probably reproduce it locally. Type: series Message-id: 20180209075503.16996-1-...@ozlabs.ru Subject: [Qemu-devel] [PATCH qemu v7 0/4] vfio-pci: Allow mmap of MSIX BAR === TEST SCRIPT BEGIN === #!/bin/bash set -e git submodule update --init dtc # Let docker tests dump environment info export SHOW_ENV=1 export J=8 time make docker-test-mingw@fedora === TEST SCRIPT END === Updating 3c8cf5a9c21ff8782164d1def7f44bd888713384 Switched to a new branch 'test' 364588cdea ppc/spapr, vfio: Turn off MSIX emulation for VFIO devices b35d106f4a vfio-pci: Allow mmap of MSIX BAR 7144306422 vfio/pci: Relax DMA map errors for MMIO regions 8b136cea18 linux-headers: update to f1517df8701c === OUTPUT BEGIN === Submodule 'dtc' (git://git.qemu-project.org/dtc.git) registered for path 'dtc' Cloning into '/var/tmp/patchew-tester-tmp-xq_0lpqh/src/dtc'... Submodule path 'dtc': checked out 'e54388015af1fb4bf04d0bca99caba1074d9cc42' BUILD fedora GEN /var/tmp/patchew-tester-tmp-xq_0lpqh/src/docker-src.2018-02-09-03.04.00.26226/qemu.tar Cloning into '/var/tmp/patchew-tester-tmp-xq_0lpqh/src/docker-src.2018-02-09-03.04.00.26226/qemu.tar.vroot'... done. Checking out files: 46% (2709/5788) Checking out files: 47% (2721/5788) Checking out files: 48% (2779/5788) Checking out files: 49% (2837/5788) Checking out files: 50% (2894/5788) Checking out files: 51% (2952/5788) Checking out files: 52% (3010/5788) Checking out files: 53% (3068/5788) Checking out files: 54% (3126/5788) Checking out files: 55% (3184/5788) Checking out files: 56% (3242/5788) Checking out files: 57% (3300/5788) Checking out files: 58% (3358/5788) Checking out files: 59% (3415/5788) Checking out files: 60% (3473/5788) Checking out files: 61% (3531/5788) Checking out files: 62% (3589/5788) Checking out files: 63% (3647/5788) Checking out files: 64% (3705/5788) Checking out files: 65% (3763/5788) Checking out files: 66% (3821/5788) Checking out files: 67% (3878/5788) Checking out files: 68% (3936/5788) Checking out files: 69% (3994/5788) Checking out files: 70% (4052/5788) Checking out files: 71% (4110/5788) Checking out files: 72% (4168/5788) Checking out files: 73% (4226/5788) Checking out files: 74% (4284/5788) Checking out files: 75% (4341/5788) Checking out files: 76% (4399/5788) Checking out files: 77% (4457/5788) Checking out files: 78% (4515/5788) Checking out files: 79% (4573/5788) Checking out files: 80% (4631/5788) Checking out files: 81% (4689/5788) Checking out files: 82% (4747/5788) Checking out files: 83% (4805/5788) Checking out files: 84% (4862/5788) Checking out files: 85% (4920/5788) Checking out files: 86% (4978/5788) Checking out files: 87% (5036/5788) Checking out files: 88% (5094/5788) Checking out files: 89% (5152/5788) Checking out files: 90% (5210/5788) Checking out files: 91% (5268/5788) Checking out files: 92% (5325/5788) Checking out files: 92% (5365/5788) Checking out files: 93% (5383/5788) Checking out files: 94% (5441/5788) Checking out files: 95% (5499/5788) Checking out files: 96% (5557/5788) Checking out files: 97% (5615/5788) Checking out files: 98% (5673/5788) Checking out files: 99% (5731/5788) Checking out files: 100% (5788/5788) Checking out files: 100% (5788/5788), done. Your branch is up-to-date with 'origin/test'. Submodule 'dtc' (git://git.qemu-project.org/dtc.git) registered for path 'dtc' Cloning into '/var/tmp/patchew-tester-tmp-xq_0lpqh/src/docker-src.2018-02-09-03.04.00.26226/qemu.tar.vroot/dtc'... Submodule path 'dtc': checked out 'e54388015af1fb4bf04d0bca99caba1074d9cc42' Submodule 'ui/keycodemapdb' (git://git.qemu.org/keycodemapdb.git) registered for path 'ui/keycodemapdb' Cloning into '/var/tmp/patchew-tester-tmp-xq_0lpqh/src/docker-src.2018-02-09-03.04.00.26226/qemu.tar.vroot/ui/keycodemapdb'... Submodule path 'ui/keycodemapdb': checked out '6b3d716e2b6472eb7189d3220552280ef3d832ce' COPYRUNNER RUN test-mingw in qemu:fedora Packages installed: PyYAML-3.12-5.fc27.x86_64 SDL-devel-1.2.15-29.fc27.x86_64 bc-1.07.1-3.fc27.x86_64 bison-3.0.4-8.fc27.x86_64 bzip2-1.0.6-24.fc27.x86_64 ccache-3.3.5-1.fc27.x86_64 clang-5.0.1-1.fc27.x86_64 findutils-4.6.0-14.fc27.x86_64 flex-2.6.1-5.fc27.x86_64 gcc-7.3.1-2.fc27.x86_64 gcc-c++-7.3.1-2.fc27.x86_64 gettext-0.19.8.1-12.fc27.x86_64 git-2.14.3-2.fc27.x86_64 glib2-devel-2.54.3-2.fc27.x86_64 hostname-3.18-4.fc27.x86_64 libaio-devel-0.3.110-9.fc27.x86_64 libasan-7.3.1-2.fc27.x86_64 libfdt-devel-1.4.6-1.fc27.x86_64 li