Skip to content
Snippets Groups Projects
  1. Sep 08, 2020
  2. Sep 07, 2020
    • Peter Maydell's avatar
      Merge remote-tracking branch 'remotes/huth-gitlab/tags/pull-request-2020-09-07' into staging · e11bd71f
      Peter Maydell authored
      
      * Fixes for cross-compiling with MinGW / compiling with MSYS2
      * Enable cross-compiler builds in the Gitlab CI
      * Improvements / fixes for the crypto tests in the Gitlab CI
      * Fix for the "make check-acceptance" microblaze failure
        (required to get the Gitlab CI green again)
      
      # gpg: Signature made Mon 07 Sep 2020 13:03:31 BST
      # gpg:                using RSA key 27B88847EEE0250118F3EAB92ED9D774FE702DB5
      # gpg:                issuer "thuth@redhat.com"
      # gpg: Good signature from "Thomas Huth <th.huth@gmx.de>" [full]
      # gpg:                 aka "Thomas Huth <thuth@redhat.com>" [full]
      # gpg:                 aka "Thomas Huth <huth@tuxfamily.org>" [full]
      # gpg:                 aka "Thomas Huth <th.huth@posteo.de>" [unknown]
      # Primary key fingerprint: 27B8 8847 EEE0 2501 18F3  EAB9 2ED9 D774 FE70 2DB5
      
      * remotes/huth-gitlab/tags/pull-request-2020-09-07:
        target/microblaze: Collected fixes for env->iflags
        tests/qtest: do not list ahci-test twice
        gitlab: expand test coverage for crypto builds
        crypto: fix build with gcrypt enabled
        gitlab-ci: Add cross-compiling build tests
        stubs: Move qemu_fd_register stub to util/main-loop.c
        stubs: Move qemu_timer_notify_cb() and remove qemu_notify_event() stub
        configure: Allow automatic WHPX detection
        dockerfiles/debian-win64-cross: Download WHPX MinGW headers
        tests/Makefile: test-image-locking needs CONFIG_POSIX
        tests: Fixes building test-util-filemonitor.c on msys2/mingw
        tests: fixes test-vmstate.c compile error on msys2
        tests: handling signal on win32 properly
        tests/docker: add python3-setuptools the docker images
      
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      e11bd71f
    • Peter Maydell's avatar
      Merge remote-tracking branch 'remotes/vivier2/tags/linux-user-for-5.2-pull-request' into staging · 9d5589bb
      Peter Maydell authored
      
      Add ppoll_time64() and pselect6_time64()
      Some fixes for for elfload, fcntl, termbits and btrfs
      
      # gpg: Signature made Mon 07 Sep 2020 10:17:24 BST
      # gpg:                using RSA key CD2F75DDC8E3A4DC2E4F5173F30C38BD3F2FBE3C
      # gpg:                issuer "laurent@vivier.eu"
      # gpg: Good signature from "Laurent Vivier <lvivier@redhat.com>" [full]
      # gpg:                 aka "Laurent Vivier <laurent@vivier.eu>" [full]
      # gpg:                 aka "Laurent Vivier (Red Hat) <lvivier@redhat.com>" [full]
      # Primary key fingerprint: CD2F 75DD C8E3 A4DC 2E4F  5173 F30C 38BD 3F2F BE3C
      
      * remotes/vivier2/tags/linux-user-for-5.2-pull-request:
        linux-user: Protect btrfs ioctl target definitions
        linux-user: fix ppc/termbits.h
        linux-user: Map signal numbers in fcntl
        linux-user: Correctly start brk after executable
        linux-user: Add support for ppoll_time64() and pselect6_time64()
      
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      9d5589bb
    • Peter Maydell's avatar
      Merge remote-tracking branch 'remotes/kraxel/tags/vga-20200904-pull-request' into staging · 62f92560
      Peter Maydell authored
      
      vga: fixes for cirrus and virtio-gpu.
      
      # gpg: Signature made Fri 04 Sep 2020 12:26:36 BST
      # gpg:                using RSA key 4CB6D8EED3E87138
      # gpg: Good signature from "Gerd Hoffmann (work) <kraxel@redhat.com>" [full]
      # gpg:                 aka "Gerd Hoffmann <gerd@kraxel.org>" [full]
      # gpg:                 aka "Gerd Hoffmann (private) <kraxel@gmail.com>" [full]
      # Primary key fingerprint: A032 8CFF B93A 17A7 9901  FE7D 4CB6 D8EE D3E8 7138
      
      * remotes/kraxel/tags/vga-20200904-pull-request:
        cirrus: handle wraparound in cirrus_invalidate_region
        virtio-gpu: fix unmap the already mapped items
      
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      62f92560
    • Richard Henderson's avatar
      target/microblaze: Collected fixes for env->iflags · 88e74b61
      Richard Henderson authored
      
      There are several problems here that can result in soft lockup,
      depending on exactly where an interrupt or exception is delivered:
      
      Include BIMM_FLAG in IFLAGS_TB_MASK, since it needs to follow D_FLAG.
      Ensure that iflags is 0 when entering an interrupt/exception handler.
      Add mb_cpu_synchronize_from_tb to restore iflags from tb->flags.
      The change to t_sync_flags is cosmetic, but makes the code clearer.
      
      This fixes the reported regression in acceptance/replay_kernel.py.
      
      Fixes: 683a247e ("target/microblaze: Store "current" iflags in insn_start")
      Tested-by: default avatarThomas Huth <thuth@redhat.com>
      Reported-by: default avatarThomas Huth <thuth@redhat.com>
      Signed-off-by: default avatarRichard Henderson <richard.henderson@linaro.org>
      Message-Id: <20200904190842.2282109-2-richard.henderson@linaro.org>
      Signed-off-by: default avatarThomas Huth <thuth@redhat.com>
      88e74b61
    • Paolo Bonzini's avatar
      tests/qtest: do not list ahci-test twice · cc9962d8
      Paolo Bonzini authored
      
      This is caught by "meson test", which complains about two tests with the
      same name.
      
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      Message-Id: <20200904120342.11370-1-pbonzini@redhat.com>
      Fixes: a2ce7dbd ("meson: convert tests/qtest to meson")
      Reviewed-by: default avatarPhilippe Mathieu-Daudé <philmd@redhat.com>
      Signed-off-by: default avatarThomas Huth <thuth@redhat.com>
      cc9962d8
    • Daniel P. Berrangé's avatar
      gitlab: expand test coverage for crypto builds · affcc09c
      Daniel P. Berrangé authored
      
      Most jobs test the latest nettle library. This adds explicit coverage
      for latest gcrypt using Fedora, and old gcrypt and nettle using
      CentOS-7. The latter does a minimal tools-only build, as we only need to
      validate that the crypto code builds and unit tests pass. Finally a job
      disabling both nettle and gcrypt is provided to validate that gnutls
      still works.
      
      Signed-off-by: default avatarDaniel P. Berrangé <berrange@redhat.com>
      Message-Id: <20200901133050.381844-3-berrange@redhat.com>
      Signed-off-by: default avatarThomas Huth <thuth@redhat.com>
      affcc09c
    • Daniel P. Berrangé's avatar
      crypto: fix build with gcrypt enabled · 46859d93
      Daniel P. Berrangé authored
      
      If nettle is disabled and gcrypt enabled, the compiler and linker flags
      needed for gcrypt are not passed.
      
      Gnutls was also not added as a dependancy when gcrypt is enabled.
      
      Attempting to add the library dependencies at the same time as the
      source dependencies is error prone, as there are alot of different
      rules for picking which sources to use, and some of the source files
      use code level conditionals intead. It is thus clearer to add the
      library dependencies separately.
      
      Signed-off-by: default avatarDaniel P. Berrangé <berrange@redhat.com>
      Message-Id: <20200901133050.381844-2-berrange@redhat.com>
      Reviewed-by: default avatarAlex Bennée <alex.bennee@linaro.org>
      Tested-by: default avatarAlex Bennée <alex.bennee@linaro.org>
      Tested-by: default avatarRichard Henderson <richard.henderson@linaro.org>
      Reviewed-by: default avatarRichard Henderson <richard.henderson@linaro.org>
      Signed-off-by: default avatarThomas Huth <thuth@redhat.com>
      46859d93
    • Thomas Huth's avatar
      gitlab-ci: Add cross-compiling build tests · 6bcb5fc0
      Thomas Huth authored
      
      Now that we can use all our QEMU test containers in the gitlab-CI, we can
      easily add some jobs that test cross-compilation for various architectures.
      There is just only small ugliness: Since the shared runners on gitlab.com
      are single-threaded, we have to split each compilation job into two parts
      (--disable-user and --disable-system), and exclude some additional targets,
      to avoid that the jobs are running too long and hitting the timeout of 1 h.
      
      Message-Id: <20200823111757.72002-8-thuth@redhat.com>
      Reviewed-by: default avatarDaniel P. Berrangé <berrange@redhat.com>
      Signed-off-by: default avatarThomas Huth <thuth@redhat.com>
      6bcb5fc0
    • Thomas Huth's avatar
      stubs: Move qemu_fd_register stub to util/main-loop.c · 8c278762
      Thomas Huth authored
      
      The linker of MinGW sometimes runs into the following problem:
      
      libqemuutil.a(util_main-loop.c.obj): In function `qemu_fd_register':
      /builds/huth/qemu/build/../util/main-loop.c:331: multiple definition of
       `qemu_fd_register'
      libqemuutil.a(stubs_fd-register.c.obj):/builds/huth/qemu/stubs/fd-register.c:5:
       first defined here
      collect2: error: ld returned 1 exit status
      /builds/huth/qemu/rules.mak:88: recipe for target 'tests/test-timed-average.exe'
       failed
      
      qemu_fd_register() is defined in util/main-loop.c for WIN32, so let's simply
      move the stub also there in the #else part of the corresponding #ifndef
      to fix this problem.
      
      Message-Id: <20200903054503.425435-1-thuth@redhat.com>
      Acked-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      Reviewed-by: default avatarDaniel P. Berrangé <berrange@redhat.com>
      Signed-off-by: default avatarThomas Huth <thuth@redhat.com>
      8c278762
    • Thomas Huth's avatar
      stubs: Move qemu_timer_notify_cb() and remove qemu_notify_event() stub · b0476d66
      Thomas Huth authored
      
      When cross-compiling with MinGW, there are sometimes some weird linker
      errors like:
      
      ibqemuutil.a(util_main-loop.c.obj): In function `qemu_notify_event':
      /builds/huth/qemu/build/../util/main-loop.c:139: multiple definition of
       `qemu_notify_event'
      libqemuutil.a(stubs_notify-event.c.obj):/builds/huth/qemu/stubs/notify-event.c:5:
       first defined here
      collect2: error: ld returned 1 exit status
      /builds/huth/qemu/rules.mak:88: recipe for target 'tests/test-timed-average.exe'
       failed
      
      It seems like it works better when the qemu_timer_notify_cb() stub (which
      calls qemu_notify_event()) is in a separate file - then we can also even
      remove the qemu_notify_event() stub now.
      
      This patch is based on ideas from the patch "stubs: Remove qemu_notify_event()"
      by Philippe Mathieu-Daudé and the patch "cpu-timers, icount: new modules" from
      Claudio Fontana.
      
      Message-Id: <20200902102433.304737-1-thuth@redhat.com>
      Acked-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      Signed-off-by: default avatarThomas Huth <thuth@redhat.com>
      b0476d66
    • Thomas Huth's avatar
      configure: Allow automatic WHPX detection · e7a222ae
      Thomas Huth authored
      
      The whpx variable is currently initialized to "no" which causes the WHPX
      check to skip the detection unless the user specified --enable-whpx.
      Since the detection code should be able to figure it out correctly, let's
      initialized the variable to "" on MinGW-builds for proper auto-detection
      instead.
      
      Message-Id: <20200804170055.2851-11-thuth@redhat.com>
      Reviewed-by: default avatarPhilippe Mathieu-Daudé <f4bug@amsat.org>
      Reviewed-by: default avatarStefan Weil <sw@weilnetz.de>
      Message-Id: <20200823111757.72002-7-thuth@redhat.com>
      Acked-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      Reviewed-by: default avatarDaniel P. Berrangé <berrange@redhat.com>
      Signed-off-by: default avatarThomas Huth <thuth@redhat.com>
      e7a222ae
    • Thomas Huth's avatar
      dockerfiles/debian-win64-cross: Download WHPX MinGW headers · d3dd34a1
      Thomas Huth authored
      
      To compile-test the WHPX accelerator, we need to download these system
      headers first (they are unfortunately not part of any released and
      packaged MinGW toolchain yet).
      
      Idea taken from another patch by Stefan Weil.
      
      Message-Id: <20200804170055.2851-12-thuth@redhat.com>
      Message-Id: <20200823111757.72002-6-thuth@redhat.com>
      Reviewed-by: default avatarDaniel P. Berrangé <berrange@redhat.com>
      Signed-off-by: default avatarThomas Huth <thuth@redhat.com>
      d3dd34a1
    • Thomas Huth's avatar
      tests/Makefile: test-image-locking needs CONFIG_POSIX · ce4e510a
      Thomas Huth authored
      
      test-image-locking.c uses the qemu_lock_fd_test() function which is
      only available on POSIX-like systems.
      
      Message-Id: <20200804170055.2851-4-thuth@redhat.com>
      Reviewed-by: default avatarJohn Snow <jsnow@redhat.com>
      Message-Id: <20200823111757.72002-4-thuth@redhat.com>
      Acked-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      Reviewed-by: default avatarDaniel P. Berrangé <berrange@redhat.com>
      Signed-off-by: default avatarThomas Huth <thuth@redhat.com>
      ce4e510a
    • Yonggang Luo's avatar
      tests: Fixes building test-util-filemonitor.c on msys2/mingw · 0fdc1f2f
      Yonggang Luo authored
      
      Fixes the following compiling error:
      ../tests/test-util-filemonitor.c: In function 'test_file_monitor_events':
      ../tests/test-util-filemonitor.c:620:17: error: too many arguments to function 'mkdir'
        620 |             if (mkdir(pathsrc, 0700) < 0) {
            |                 ^~~~~
      In file included from C:/CI-Tools/msys64/mingw64/x86_64-w64-mingw32/include/unistd.h:10,
                       from C:/work/xemu/qemu/include/qemu/osdep.h:93,
                       from ../tests/test-util-filemonitor.c:21:
      C:/CI-Tools/msys64/mingw64/x86_64-w64-mingw32/include/io.h:282:15: note: declared here
        282 |   int __cdecl mkdir (const char *) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
            |               ^~~~~
      
      Signed-off-by: default avatarYonggang Luo <luoyonggang@gmail.com>
      Message-Id: <20200905203425.1470-1-luoyonggang@gmail.com>
      Reviewed-by: default avatarRichard Henderson <richard.henderson@linaro.org>
      Signed-off-by: default avatarThomas Huth <thuth@redhat.com>
      0fdc1f2f
    • Yonggang Luo's avatar
      tests: fixes test-vmstate.c compile error on msys2 · 85c93c57
      Yonggang Luo authored
      
      ../tests/test-vmstate.c: In function 'int_cmp':
      ../tests/test-vmstate.c:884:5: error: unknown type name 'uint'; did you mean 'uInt'?
        884 |     uint ua = GPOINTER_TO_UINT(a);
            |     ^~~~
            |     uInt
      ../tests/test-vmstate.c:885:5: error: unknown type name 'uint'; did you mean 'uInt'?
        885 |     uint ub = GPOINTER_TO_UINT(b);
            |     ^~~~
            |     uInt
      make: *** [Makefile.ninja:5461:tests/test-vmstate.exe.p/test-vmstate.c.obj] 错误 1
      
      Signed-off-by: default avatarYonggang Luo <luoyonggang@gmail.com>
      Message-Id: <20200905063813.1875-1-luoyonggang@gmail.com>
      Reviewed-by: default avatarThomas Huth <thuth@redhat.com>
      Reviewed-by: default avatarPhilippe Mathieu-Daudé <f4bug@amsat.org>
      
      Signed-off-by: default avatarThomas Huth <thuth@redhat.com>
      85c93c57
  3. Sep 06, 2020
Loading