Skip to contentSkip to conversation

testing and plugin fixes with gitdm updates (pre PR)

PATCH In review Alex Bennée 7 participants 29 messages Oct 7, 2020 – Oct 8, 2020

lore
Share & tools
lore
#0 lore raw

cover testing and plugin fixes with gitdm updates (pre PR)

Hi,

This is a pre-PR which fixes up the failing check-acceptance as well as some plugin fixes and the first batch of gitdm updates from Phillipe. I've also included one of Paolo's in-flight fixes for speeding up TCG. I've managed to get a green run across our CI with it.

There are a couple of un-reviewed patches:

- tests/acceptance: disable machine_rx_gdbsim on GitLab
- hw/ide: restore replay support of IDE

Alex Bennée (2):
hw/ide: restore replay support of IDE tests/acceptance: disable machine_rx_gdbsim on GitLab

Paolo Bonzini (2):
configure: fix performance regression due to PIC objects
cirrus: use V=1 when running tests on FreeBSD and macOS

Philippe Mathieu-Daudé (13):
hw/misc/mips_cpc: Start vCPU when powered on
contrib/gitdm: Add more academic domains
contrib/gitdm: Add more individual contributors
contrib/gitdm: Add Baidu to the domain map
contrib/gitdm: Add ByteDance to the domain map
contrib/gitdm: Add Google to the domain map
contrib/gitdm: Add Nuvia to the domain map
contrib/gitdm: Add Qualcomm to the domain map
contrib/gitdm: Add Nir Soffer to Red Hat domain
contrib/gitdm: Add SUSE to the domain map
contrib/gitdm: Add Yadro to the domain map
contrib/gitdm: Add Yandex to the domain map
.mailmap: Fix more contributor entries

Thomas Huth (1):
tests/docker: Add genisoimage to the docker file

Yonggang Luo (4):
cirrus: Fixing and speedup the msys2/mingw CI
cirrus: msys2/mingw speed is up, add excluded target back
plugins: Fixes a issue when dlsym failed, the handle not closed
plugin: Fixes compiling errors on msys2/mingw

 configure                                    |   1 +
 contrib/plugins/hotblocks.c                  |   2 +-
 hw/ide/core.c                                |   4 +-
 hw/misc/mips_cpc.c                           |   1 +
 plugins/loader.c                             |   1 +
 tests/plugin/bb.c                            |   4 +-
 .cirrus.yml                                  | 121 +++++++++++--------
 .mailmap                                     |   2 +
 contrib/gitdm/domain-map                     |  10 +-
 contrib/gitdm/group-map-academics            |   4 +
 contrib/gitdm/group-map-individuals          |   7 ++
 contrib/gitdm/group-map-redhat               |   1 +
 tests/acceptance/machine_rx_gdbsim.py        |   1 +
 tests/docker/dockerfiles/centos8.docker      |   1 +
 tests/docker/dockerfiles/debian-amd64.docker |   1 +
 tests/docker/dockerfiles/fedora.docker       |   1 +
 tests/docker/dockerfiles/ubuntu2004.docker   |   1 +
 17 files changed, 107 insertions(+), 56 deletions(-)
Signature · 1 line
2.20.1
#1 lore raw

PATCH 1/22 configure: fix performance regression due to PIC objects

From: Paolo Bonzini <[email protected]>

Because most files in QEMU are grouped into static libraries, Meson conservatively compiles them with -fPIC. This is overkill and produces slowdowns up to 20% on some TCG tests.

As a stopgap measure, use the b_staticpic option to limit the slowdown to --enable-pie. https://github.com/mesonbuild/meson/pull/7760 will allow us to use b_staticpic=false and let Meson do the right thing.

Message-Id: <[email protected]>

Message-Id: <[email protected]>

---
 configure | 1 +
 1 file changed, 1 insertion(+)
configure +1 -0
index 28df227db5..b553288c5e 100755
@@ -7209,6 +7209,7 @@ NINJA=${ninja:-$PWD/ninjatool} $meson setup \
         -Dwerror=$(if test "$werror" = yes; then echo true; else echo false; fi) \
         -Dstrip=$(if test "$strip_opt" = yes; then echo true; else echo false; fi) \
         -Db_pie=$(if test "$pie" = yes; then echo true; else echo false; fi) \
+        -Db_staticpic=$(if test "$pie" = yes; then echo true; else echo false; fi) \
         -Db_coverage=$(if test "$gcov" = yes; then echo true; else echo false; fi) \
 	-Dmalloc=$malloc -Dmalloc_trim=$malloc_trim -Dsparse=$sparse \
 	-Dkvm=$kvm -Dhax=$hax -Dwhpx=$whpx -Dhvf=$hvf \
Signature · 1 line
2.20.1
#2 lore raw

PATCH 2/22 hw/misc/mips_cpc: Start vCPU when powered on

In reply to Alex Bennée

From: Philippe Mathieu-Daudé <[email protected]>

In commit 102ca9667d we set "start-powered-off" on all vCPUs included in the CPS (Coherent Processing System) but forgot to start the vCPUS on when they are powered on in the CPC (Cluster Power Controller).

This fixes the following tests:

  $ avocado run tests/acceptance/machine_mips_malta.py
   (1/3) test_mips_malta_i6400_framebuffer_logo_1core: PASS (3.67 s)
   (2/3) test_mips_malta_i6400_framebuffer_logo_7cores: INTERRUPTED: Test interrupted by SIGTERM (30.22 s)
   (3/3) test_mips_malta_i6400_framebuffer_logo_8cores: INTERRUPTED: Test interrupted by SIGTERM (30.25 s)
  RESULTS    : PASS 1 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 2 | CANCEL 0
Fixes 102ca9667d ("mips/cps: Use start-powered-off CPUState property")

Message-Id: <[email protected]>

---
 hw/misc/mips_cpc.c | 1 +
 1 file changed, 1 insertion(+)
hw/misc/mips_cpc.c +1 -0
index 2f7b2c9592..7c11fb3d44 100644
@@ -38,6 +38,7 @@ static void mips_cpu_reset_async_work(CPUState *cs, run_on_cpu_data data)
     MIPSCPCState *cpc = (MIPSCPCState *) data.host_ptr;
 
     cpu_reset(cs);
+    cs->halted = 0;
     cpc->vp_running |= 1ULL << cs->cpu_index;
 }
 
Signature · 1 line
2.20.1
#3 lore raw

PATCH 3/22 hw/ide: restore replay support of IDE

In reply to Alex Bennée

A recent change to weak reset handling broke replay due to the use of aio_bh_schedule_oneshot instead of the replay aware replay_bh_schedule_oneshot_event.

Fixes 55adb3c456 ("ide: cancel pending callbacks on SRST")
---
 hw/ide/core.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
hw/ide/core.c +2 -2
index 0e32abd779..693b352d5e 100644
@@ -2289,8 +2289,8 @@ void ide_ctrl_write(void *opaque, uint32_t addr, uint32_t val)
             s = &bus->ifs[i];
             s->status |= BUSY_STAT;
         }
-        aio_bh_schedule_oneshot(qemu_get_aio_context(),
-                                ide_bus_perform_srst, bus);
+        replay_bh_schedule_oneshot_event(qemu_get_aio_context(),
+                                         ide_bus_perform_srst, bus);
     }
 
     bus->cmd = val;
Signature · 1 line
2.20.1
Reviewed-by Acked-by on v1 3/22
#4 lore raw

Re: [PATCH v1 03/22] hw/ide: restore replay support of IDE

Quoted 17 lines · Alex Bennée

A recent change to weak reset handling broke replay due to the use of aio_bh_schedule_oneshot instead of the replay aware replay_bh_schedule_oneshot_event.

Fixes 55adb3c456 ("ide: cancel pending callbacks on SRST")
---
  hw/ide/core.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
hw/ide/core.c +0 -0
index 0e32abd779..693b352d5e 100644

hw/ide/core.c void ide_ctrl_write(void *opaque, uint32_t addr, uint32_t val) · line 2296

Quoted 10 lines
hw/ide/core.c +2 -2
@@ -2289,8 +2289,8 @@ void ide_ctrl_write(void *opaque, uint32_t addr, uint32_t val)
              s = &bus->ifs[i];
              s->status |= BUSY_STAT;
          }
-        aio_bh_schedule_oneshot(qemu_get_aio_context(),
-                                ide_bus_perform_srst, bus);
+        replay_bh_schedule_oneshot_event(qemu_get_aio_context(),
+                                         ide_bus_perform_srst, bus);
      }
 
      bus->cmd = val;
Reviewed-by on v1 3/22
#5 lore raw

Re: [PATCH v1 03/22] hw/ide: restore replay support of IDE

In reply to Alex Bennée
Quoted 16 lines · Alex Bennée

A recent change to weak reset handling broke replay due to the use of aio_bh_schedule_oneshot instead of the replay aware replay_bh_schedule_oneshot_event.

Fixes 55adb3c456 ("ide: cancel pending callbacks on SRST")
---
 hw/ide/core.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
hw/ide/core.c +0 -0
index 0e32abd779..693b352d5e 100644

hw/ide/core.c void ide_ctrl_write(void *opaque, uint32_t addr, uint32_t val) · line 2293

Quoted 7 lines
hw/ide/core.c +2 -2
@@ -2289,8 +2289,8 @@ void ide_ctrl_write(void *opaque, uint32_t addr, uint32_t val)
             s = &bus->ifs[i];
             s->status |= BUSY_STAT;
         }
-        aio_bh_schedule_oneshot(qemu_get_aio_context(),
-                                ide_bus_perform_srst, bus);
+        replay_bh_schedule_oneshot_event(qemu_get_aio_context(),
+                                         ide_bus_perform_srst, bus);
Quoted 4 lines
hw/ide/core.c +0 -0
     }
 
     bus->cmd = val;
Reviewed-by on v1 3/22
#6 lore raw

Re: [PATCH v1 03/22] hw/ide: restore replay support of IDE

In reply to Alex Bennée
Quoted 10 lines · Alex Bennée

A recent change to weak reset handling broke replay due to the use of aio_bh_schedule_oneshot instead of the replay aware replay_bh_schedule_oneshot_event.

Fixes 55adb3c456 ("ide: cancel pending callbacks on SRST")
---
 hw/ide/core.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

r~

#7 lore raw

PATCH 4/22 cirrus: Fixing and speedup the msys2/mingw CI

In reply to Alex Bennée

From: Yonggang Luo <[email protected]>

Use cache of cirrus caching msys2
The install of msys2 are refer to https://github.com/msys2/setup-msys2
The first time install msys2 would be time consuming, so increase timeout_in to 90m according to https://cirrus-ci.org/faq/#instance-timed-out

Apply patch of https://lists.gnu.org/archive/html/qemu-devel/2020-10/msg00072.html

Message-Id: <[email protected]>

[AJB: renamed printenv_script to setup_script]
---
 .cirrus.yml | 112 +++++++++++++++++++++++++++++++---------------------
 1 file changed, 67 insertions(+), 45 deletions(-)
.cirrus.yml +67 -45
index d58782ce67..eb768fa260 100644
@@ -46,64 +46,86 @@ macos_xcode_task:
     - gmake check
 
 windows_msys2_task:
+  timeout_in: 90m
   windows_container:
-    image: cirrusci/windowsservercore:cmake
+    image: cirrusci/windowsservercore:2019
     os_version: 2019
     cpu: 8
     memory: 8G
   env:
+    CIRRUS_SHELL: powershell
     MSYS: winsymlinks:nativestrict
     MSYSTEM: MINGW64
     CHERE_INVOKING: 1
-  printenv_script:
-    - C:\tools\msys64\usr\bin\bash.exe -lc 'printenv'
+  setup_script:
+    - choco install -y --no-progress 7zip
+    - Write-Output $env:PATH
+  msys2_cache:
+    folder: C:\tools\archive
+    reupload_on_changes: false
+    fingerprint_script: cat .cirrus.yml
+    populate_script:
+      - |
+        md C:\tools
+        md C:\tools\archive
+        $start_time = Get-Date
+        cd C:\tools
+        bitsadmin /transfer msys_download /dynamic /download /priority FOREGROUND https://github.com/msys2/msys2-installer/releases/download/2020-09-03/msys2-base-x86_64-20200903.sfx.exe C:\tools\base.exe
+        Write-Output "Download time taken: $((Get-Date).Subtract($start_time).Seconds) second(s)"
+        C:\tools\base.exe -y
+        ((Get-Content -path C:\tools\msys64\etc\\post-install\\07-pacman-key.post -Raw) -replace '--refresh-keys', '--version') | Set-Content -Path C:\tools\msys64\etc\\post-install\\07-pacman-key.post
+        C:\tools\msys64\usr\bin\bash.exe -lc "sed -i 's/^CheckSpace/#CheckSpace/g' /etc/pacman.conf"
+        C:\tools\msys64\usr\bin\bash.exe -lc "export"
+        C:\tools\msys64\usr\bin\bash.exe -lc "grep -rl 'repo.msys2.org/' /etc/pacman.d/mirrorlist.* | xargs sed -i 's/repo.msys2.org\//mirrors.tuna.tsinghua.edu.cn\/msys2\//g'"
+        C:\tools\msys64\usr\bin\pacman.exe --noconfirm -Sy
+        echo Y | C:\tools\msys64\usr\bin\pacman.exe --noconfirm -Suu --overwrite=*
+        taskkill /F /FI "MODULES eq msys-2.0.dll"
+        tasklist
+        C:\tools\msys64\usr\bin\bash.exe -lc "mv -f /etc/pacman.conf.pacnew /etc/pacman.conf || true"
+        C:\tools\msys64\usr\bin\bash.exe -lc "pacman --noconfirm -Suu --overwrite=*"
+        C:\tools\msys64\usr\bin\bash.exe -lc "pacman --noconfirm -S --needed \
+          diffutils git grep make pkg-config sed \
+          mingw-w64-x86_64-python \
+          mingw-w64-x86_64-python-setuptools \
+          mingw-w64-x86_64-toolchain \
+          mingw-w64-x86_64-SDL2 \
+          mingw-w64-x86_64-SDL2_image \
+          mingw-w64-x86_64-gtk3 \
+          mingw-w64-x86_64-glib2 \
+          mingw-w64-x86_64-ninja \
+          mingw-w64-x86_64-jemalloc \
+          mingw-w64-x86_64-lzo2 \
+          mingw-w64-x86_64-zstd \
+          mingw-w64-x86_64-libjpeg-turbo \
+          mingw-w64-x86_64-pixman \
+          mingw-w64-x86_64-libgcrypt \
+          mingw-w64-x86_64-libpng \
+          mingw-w64-x86_64-libssh \
+          mingw-w64-x86_64-libxml2 \
+          mingw-w64-x86_64-snappy \
+          mingw-w64-x86_64-libusb \
+          mingw-w64-x86_64-usbredir \
+          mingw-w64-x86_64-libtasn1 \
+          mingw-w64-x86_64-nettle \
+          mingw-w64-x86_64-cyrus-sasl \
+          mingw-w64-x86_64-curl \
+          mingw-w64-x86_64-gnutls \
+          "
+        C:\tools\msys64\usr\bin\bash.exe -lc "rm -rf /var/cache/pacman/pkg/*"
+        cd C:\tools\msys64
+        echo "Start archive"
+        cmd /C "7z a -ttar . -so | 7z a -txz -simsys2-x86_64.tar C:\tools\archive\msys2-x86_64.tar.xz"
   install_script:
-    - C:\tools\msys64\usr\bin\bash.exe -lc "cd /c/tools &&
-        curl -O http://repo.msys2.org/msys/x86_64/msys2-keyring-r21.b39fb11-1-any.pkg.tar.xz"
-    - C:\tools\msys64\usr\bin\bash.exe -lc "cd /c/tools &&
-        curl -O http://repo.msys2.org/msys/x86_64/msys2-keyring-r21.b39fb11-1-any.pkg.tar.xz.sig"
-    - C:\tools\msys64\usr\bin\bash.exe -lc "cd /c/tools &&
-        pacman -U --noconfirm msys2-keyring-r21.b39fb11-1-any.pkg.tar.xz"
-    - C:\tools\msys64\usr\bin\bash.exe -lc "pacman --noconfirm -Sy"
-    - C:\tools\msys64\usr\bin\bash.exe -lc "pacman --noconfirm -S --needed
-        bash pacman pacman-mirrors msys2-runtime"
-    - taskkill /F /IM gpg-agent.exe
-    - C:\tools\msys64\usr\bin\bash.exe -lc "pacman --noconfirm -Su"
-    - C:\tools\msys64\usr\bin\bash.exe -lc "pacman --noconfirm -S --needed
-        base-devel
-        git
-        mingw-w64-x86_64-python
-        mingw-w64-x86_64-python-setuptools
-        mingw-w64-x86_64-toolchain
-        mingw-w64-x86_64-capstone
-        mingw-w64-x86_64-SDL2
-        mingw-w64-x86_64-SDL2_image
-        mingw-w64-x86_64-gtk3
-        mingw-w64-x86_64-glib2
-        mingw-w64-x86_64-ninja
-        mingw-w64-x86_64-make
-        mingw-w64-x86_64-lzo2
-        mingw-w64-x86_64-zstd
-        mingw-w64-x86_64-libjpeg-turbo
-        mingw-w64-x86_64-pixman
-        mingw-w64-x86_64-libgcrypt
-        mingw-w64-x86_64-libpng
-        mingw-w64-x86_64-libssh
-        mingw-w64-x86_64-libxml2
-        mingw-w64-x86_64-snappy
-        mingw-w64-x86_64-libusb
-        mingw-w64-x86_64-usbredir
-        mingw-w64-x86_64-libtasn1
-        mingw-w64-x86_64-nettle
-        mingw-w64-x86_64-cyrus-sasl
-        mingw-w64-x86_64-curl
-        mingw-w64-x86_64-gnutls
-        mingw-w64-x86_64-zstd"
+    - |
+      cd C:\tools
+      cmd /C "7z x C:\tools\archive\msys2-x86_64.tar.xz -so | 7z x -aoa -simsys2-x86_64.tar -ttar -omsys64"
+      C:\tools\msys64\usr\bin\bash.exe -lc "export"
+
   script:
     - C:\tools\msys64\usr\bin\bash.exe -lc "mkdir build"
     - C:\tools\msys64\usr\bin\bash.exe -lc "cd build && ../configure
       --python=python3 --ninja=ninja
       --target-list-exclude=i386-softmmu,arm-softmmu,ppc-softmmu,mips-softmmu"
-    - C:\tools\msys64\usr\bin\bash.exe -lc "cd build && make -j$NUMBER_OF_PROCESSORS"
+    - C:\tools\msys64\usr\bin\bash.exe -lc "cd build && make -j8"
   test_script:
     - C:\tools\msys64\usr\bin\bash.exe -lc "cd build && make V=1 check"
Signature · 1 line
2.20.1
#8 lore raw

PATCH 5/22 cirrus: msys2/mingw speed is up, add excluded target back

In reply to Alex Bennée

From: Yonggang Luo <[email protected]>

The following target are add back:
i386-softmmu,arm-softmmu,ppc-softmmu,mips-softmmu

Message-Id: <[email protected]>

---
 .cirrus.yml | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
.cirrus.yml +1 -2
index eb768fa260..301a64f104 100644
@@ -124,8 +124,7 @@ windows_msys2_task:
   script:
     - C:\tools\msys64\usr\bin\bash.exe -lc "mkdir build"
     - C:\tools\msys64\usr\bin\bash.exe -lc "cd build && ../configure
-      --python=python3 --ninja=ninja
-      --target-list-exclude=i386-softmmu,arm-softmmu,ppc-softmmu,mips-softmmu"
+      --python=python3 --ninja=ninja"
     - C:\tools\msys64\usr\bin\bash.exe -lc "cd build && make -j8"
   test_script:
     - C:\tools\msys64\usr\bin\bash.exe -lc "cd build && make V=1 check"
Signature · 1 line
2.20.1
#9 lore raw

PATCH 6/22 tests/docker: Add genisoimage to the docker file

In reply to Alex Bennée

From: Thomas Huth <[email protected]>

genisoimage is needed for running the tests/qtest/cdrom-test qtest.

Message-Id: <[email protected]>

---
 tests/docker/dockerfiles/centos8.docker      | 1 +
 tests/docker/dockerfiles/debian-amd64.docker | 1 +
 tests/docker/dockerfiles/fedora.docker       | 1 +
 tests/docker/dockerfiles/ubuntu2004.docker   | 1 +
 4 files changed, 4 insertions(+)
tests/docker/dockerfiles/centos8.docker +1 -0
index f435616d6a..0fc2697491 100644
@@ -8,6 +8,7 @@ ENV PACKAGES \
     dbus-daemon \
     gcc \
     gcc-c++ \
+    genisoimage \
     gettext \
     git \
     glib2-devel \
tests/docker/dockerfiles/debian-amd64.docker +1 -0
index d2500dcff1..314c6bae83 100644
@@ -14,6 +14,7 @@ RUN apt update && \
 RUN apt update && \
     DEBIAN_FRONTEND=noninteractive eatmydata \
     apt install -y --no-install-recommends \
+        genisoimage \
         libbz2-dev \
         liblzo2-dev \
         libgcrypt20-dev \
tests/docker/dockerfiles/fedora.docker +1 -0
index ec783418c8..85c975543d 100644
@@ -15,6 +15,7 @@ ENV PACKAGES \
     findutils \
     gcc \
     gcc-c++ \
+    genisoimage \
     gettext \
     git \
     glib2-devel \
tests/docker/dockerfiles/ubuntu2004.docker +1 -0
index cafe8443fb..f4b9556b9e 100644
@@ -3,6 +3,7 @@ ENV PACKAGES flex bison \
     ccache \
     clang-10\
     gcc \
+    genisoimage \
     gettext \
     git \
     glusterfs-common \
Signature · 1 line
2.20.1
#10 lore raw

PATCH 7/22 contrib/gitdm: Add more academic domains

In reply to Alex Bennée

From: Philippe Mathieu-Daudé <[email protected]>

There is a number of contributions from these academic domains. Add the entries to the gitdm 'academic' domain map.

Message-Id: <[email protected]>

---
 contrib/gitdm/group-map-academics | 4 ++++
 1 file changed, 4 insertions(+)
contrib/gitdm/group-map-academics +4 -0
index 08f9d81d13..bf3c894821 100644
@@ -12,3 +12,7 @@ ispras.ru
 # Columbia University
 cs.columbia.edu
 [email protected]
+
+uni-paderborn.de
+edu
+edu.cn
Signature · 1 line
2.20.1
#11 lore raw

PATCH 8/22 contrib/gitdm: Add more individual contributors

In reply to Alex Bennée

From: Philippe Mathieu-Daudé <[email protected]>

These individual contributors have a number of contributions, add them to the 'individual' group map.

Message-Id: <[email protected]>

---
 contrib/gitdm/group-map-individuals | 7 +++++++
 1 file changed, 7 insertions(+)
Signature · 1 line
2.20.1
#12 lore raw

PATCH 9/22 contrib/gitdm: Add Baidu to the domain map

In reply to Alex Bennée

From: Philippe Mathieu-Daudé <[email protected]>

There is a number of contributors from this domain, add its own entry to the gitdm domain map.

Message-Id: <[email protected]>

---
 contrib/gitdm/domain-map | 1 +
 1 file changed, 1 insertion(+)
contrib/gitdm/domain-map +1 -0
index dd79147c76..a4102154b6 100644
@@ -5,6 +5,7 @@
 #
 
 amd.com         AMD
+baidu.com       Baidu
 cmss.chinamobile.com China Mobile
 citrix.com      Citrix
 greensocs.com   GreenSocs
Signature · 1 line
2.20.1
#13 lore raw

PATCH 10/22 contrib/gitdm: Add ByteDance to the domain map

In reply to Alex Bennée

From: Philippe Mathieu-Daudé <[email protected]>

There is a number of contributors from this domain, add its own entry to the gitdm domain map.

Message-Id: <[email protected]>

---
 contrib/gitdm/domain-map | 1 +
 1 file changed, 1 insertion(+)
contrib/gitdm/domain-map +1 -0
index a4102154b6..ae5d149434 100644
@@ -6,6 +6,7 @@
 
 amd.com         AMD
 baidu.com       Baidu
+bytedance.com   ByteDance
 cmss.chinamobile.com China Mobile
 citrix.com      Citrix
 greensocs.com   GreenSocs
Signature · 1 line
2.20.1
#14 lore raw

PATCH 11/22 contrib/gitdm: Add Google to the domain map

In reply to Alex Bennée

From: Philippe Mathieu-Daudé <[email protected]>

There is a number of contributors from this domain, add its own entry to the gitdm domain map.

Message-Id: <[email protected]>

---
 contrib/gitdm/domain-map | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
contrib/gitdm/domain-map +2 -1
index ae5d149434..72dc65f2b5 100644
@@ -9,8 +9,9 @@ baidu.com       Baidu
 bytedance.com   ByteDance
 cmss.chinamobile.com China Mobile
 citrix.com      Citrix
-greensocs.com   GreenSocs
 fujitsu.com     Fujitsu
+google.com      Google
+greensocs.com   GreenSocs
 huawei.com      Huawei
 ibm.com         IBM
 igalia.com      Igalia
Signature · 1 line
2.20.1
#15 lore raw

PATCH 12/22 contrib/gitdm: Add Nuvia to the domain map

In reply to Alex Bennée

From: Philippe Mathieu-Daudé <[email protected]>

There is a number of contributions from this domain, add its own entry to the gitdm domain map.

Message-Id: <[email protected]>

---
 contrib/gitdm/domain-map | 1 +
 1 file changed, 1 insertion(+)
contrib/gitdm/domain-map +1 -0
index 72dc65f2b5..14c0582060 100644
@@ -19,6 +19,7 @@ intel.com       Intel
 linaro.org      Linaro
 microsoft.com   Microsoft
 nokia.com       Nokia
+nuviainc.com    NUVIA
 oracle.com      Oracle
 proxmox.com     Proxmox
 redhat.com      Red Hat
Signature · 1 line
2.20.1
#16 lore raw

PATCH 13/22 contrib/gitdm: Add Qualcomm to the domain map

In reply to Alex Bennée

From: Philippe Mathieu-Daudé <[email protected]>

There is a number of contributions from this domain, add its own entry to the gitdm domain map.

Message-Id: <[email protected]>

---
 contrib/gitdm/domain-map | 1 +
 1 file changed, 1 insertion(+)
contrib/gitdm/domain-map +1 -0
index 14c0582060..6c5c92260d 100644
@@ -22,6 +22,7 @@ nokia.com       Nokia
 nuviainc.com    NUVIA
 oracle.com      Oracle
 proxmox.com     Proxmox
+quicinc.com     Qualcomm Innovation Center
 redhat.com      Red Hat
 rt-rk.com       RT-RK
 siemens.com     Siemens
Signature · 1 line
2.20.1
#17 lore raw

PATCH 14/22 contrib/gitdm: Add Nir Soffer to Red Hat domain

In reply to Alex Bennée

From: Philippe Mathieu-Daudé <[email protected]>

Message-Id: <[email protected]>

---
 contrib/gitdm/group-map-redhat | 1 +
 1 file changed, 1 insertion(+)
contrib/gitdm/group-map-redhat +1 -0
index d15db2d35e..02507b7b53 100644
@@ -6,3 +6,4 @@ [email protected]
 [email protected]
 [email protected]
 [email protected]
[email protected]
Signature · 1 line
2.20.1
#18 lore raw

PATCH 15/22 contrib/gitdm: Add SUSE to the domain map

In reply to Alex Bennée

From: Philippe Mathieu-Daudé <[email protected]>

There is a number of contributors from this domain, add its own entry to the gitdm domain map.

Message-Id: <[email protected]>

---
 contrib/gitdm/domain-map | 1 +
 1 file changed, 1 insertion(+)
contrib/gitdm/domain-map +1 -0
index 6c5c92260d..d767620837 100644
@@ -27,6 +27,7 @@ redhat.com      Red Hat
 rt-rk.com       RT-RK
 siemens.com     Siemens
 sifive.com      SiFive
+suse.com        SUSE
 suse.de         SUSE
 virtuozzo.com   Virtuozzo
 wdc.com         Western Digital
Signature · 1 line
2.20.1
#19 lore raw

PATCH 16/22 contrib/gitdm: Add Yadro to the domain map

In reply to Alex Bennée

From: Philippe Mathieu-Daudé <[email protected]>

There is a number of contributions from this domain, add its own entry to the gitdm domain map.

Message-Id: <[email protected]>

---
 contrib/gitdm/domain-map | 1 +
 1 file changed, 1 insertion(+)
contrib/gitdm/domain-map +1 -0
index d767620837..1572070cf4 100644
@@ -32,3 +32,4 @@ suse.de         SUSE
 virtuozzo.com   Virtuozzo
 wdc.com         Western Digital
 xilinx.com      Xilinx
+yadro.com       YADRO
Signature · 1 line
2.20.1
#20 lore raw

PATCH 17/22 contrib/gitdm: Add Yandex to the domain map

In reply to Alex Bennée

From: Philippe Mathieu-Daudé <[email protected]>

There is a number of contributors from this domain, add its own entry to the gitdm domain map.

Message-Id: <[email protected]>

---
 contrib/gitdm/domain-map | 1 +
 1 file changed, 1 insertion(+)
contrib/gitdm/domain-map +1 -0
index 1572070cf4..0074da618f 100644
@@ -33,3 +33,4 @@ virtuozzo.com   Virtuozzo
 wdc.com         Western Digital
 xilinx.com      Xilinx
 yadro.com       YADRO
+yandex-team.ru  Yandex
Signature · 1 line
2.20.1
#21 lore raw

PATCH 18/22 .mailmap: Fix more contributor entries

In reply to Alex Bennée

From: Philippe Mathieu-Daudé <[email protected]>

These authors have some incorrect author email field. For each of them, there is one commit with the replaced entry.

Message-Id: <[email protected]>

---
 .mailmap | 2 ++
 1 file changed, 2 insertions(+)
.mailmap +2 -0
index b914c9e290..663819fb01 100644
@@ -85,6 +85,7 @@ Christophe Lyon <[email protected]>
 Collin L. Walling <[email protected]>
 Daniel P. Berrangé <[email protected]>
 Eduardo Otubo <[email protected]>
+Erik Smit <[email protected]>
 Fabrice Desclaux <[email protected]>
 Fernando Luis Vázquez Cao <[email protected]>
 Fernando Luis Vázquez Cao <[email protected]>
@@ -142,6 +143,7 @@ Roger Pau Monné <[email protected]>
 Shin'ichiro Kawasaki <[email protected]>
 Shin'ichiro Kawasaki <[email protected]>
 Sochin Jiang <[email protected]>
+Stefan Berger <[email protected]> <[email protected]>
 Takashi Yoshii <[email protected]>
 Thomas Huth <[email protected]>
 Thomas Knych <[email protected]>
Signature · 1 line
2.20.1
#22 lore raw

PATCH 19/22 plugins: Fixes a issue when dlsym failed, the handle not closed

In reply to Alex Bennée

From: Yonggang Luo <[email protected]>

Message-Id: <[email protected]>

---
 plugins/loader.c | 1 +
 1 file changed, 1 insertion(+)
plugins/loader.c +1 -0
index 685d334e1a..8ac5dbc20f 100644
@@ -235,6 +235,7 @@ static int plugin_load(struct qemu_plugin_desc *desc, const qemu_info_t *info)
     return rc;
 
  err_symbol:
+    g_module_close(ctx->handle);
  err_dlopen:
     qemu_vfree(ctx);
     return 1;
Signature · 1 line
2.20.1
#23 lore raw

PATCH 20/22 plugin: Fixes compiling errors on msys2/mingw

In reply to Alex Bennée

From: Yonggang Luo <[email protected]>

Message-Id: <[email protected]>

---
 contrib/plugins/hotblocks.c | 2 +-
 tests/plugin/bb.c           | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
contrib/plugins/hotblocks.c +1 -1
index 3942a2ca54..37435a3fc7 100644
@@ -102,7 +102,7 @@ static void vcpu_tb_trans(qemu_plugin_id_t id, struct qemu_plugin_tb *tb)
 {
     ExecCount *cnt;
     uint64_t pc = qemu_plugin_tb_vaddr(tb);
-    unsigned long insns = qemu_plugin_tb_n_insns(tb);
+    size_t insns = qemu_plugin_tb_n_insns(tb);
     uint64_t hash = pc ^ insns;
 
     g_mutex_lock(&lock);
tests/plugin/bb.c +2 -2
index e4cc7fdd6e..de09bdde4e 100644
@@ -72,7 +72,7 @@ static void vcpu_tb_exec(unsigned int cpu_index, void *udata)
     CPUCount *count = max_cpus ?
         g_ptr_array_index(counts, cpu_index) : &inline_count;
 
-    unsigned long n_insns = (unsigned long)udata;
+    uintptr_t n_insns = (uintptr_t)udata;
     g_mutex_lock(&count->lock);
     count->insn_count += n_insns;
     count->bb_count++;
@@ -81,7 +81,7 @@ static void vcpu_tb_exec(unsigned int cpu_index, void *udata)
 
 static void vcpu_tb_trans(qemu_plugin_id_t id, struct qemu_plugin_tb *tb)
 {
-    unsigned long n_insns = qemu_plugin_tb_n_insns(tb);
+    size_t n_insns = qemu_plugin_tb_n_insns(tb);
 
     if (do_inline) {
         qemu_plugin_register_vcpu_tb_exec_inline(tb, QEMU_PLUGIN_INLINE_ADD_U64,
Signature · 1 line
2.20.1
#24 lore raw

PATCH 21/22 cirrus: use V=1 when running tests on FreeBSD and macOS

In reply to Alex Bennée

From: Paolo Bonzini <[email protected]>

Using "V=1" makes it easier to identify hanging tests, especially since they are run with -j1. It is already used on Windows builds, do the same for FreeBSD and macOS.

Message-Id: <[email protected]>

---
 .cirrus.yml | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
.cirrus.yml +3 -3
index 301a64f104..99d118239c 100644
@@ -15,7 +15,7 @@ freebsd_12_task:
     - cd build
     - ../configure --enable-werror || { cat config.log; exit 1; }
     - gmake -j$(sysctl -n hw.ncpu)
-    - gmake -j$(sysctl -n hw.ncpu) check
+    - gmake -j$(sysctl -n hw.ncpu) check V=1
 
 macos_task:
   osx_instance:
@@ -29,7 +29,7 @@ macos_task:
                    --extra-cflags='-Wno-error=deprecated-declarations'
                    || { cat config.log; exit 1; }
     - gmake -j$(sysctl -n hw.ncpu)
-    - gmake check
+    - gmake check V=1
 
 macos_xcode_task:
   osx_instance:
@@ -43,7 +43,7 @@ macos_xcode_task:
     - ../configure --extra-cflags='-Wno-error=deprecated-declarations'
                    --enable-werror --cc=clang || { cat config.log; exit 1; }
     - gmake -j$(sysctl -n hw.ncpu)
-    - gmake check
+    - gmake check V=1
 
 windows_msys2_task:
   timeout_in: 90m
Signature · 1 line
2.20.1
Reviewed-by on v1 21/22
#25 lore raw

Re: [PATCH v1 21/22] cirrus: use V=1 when running tests on FreeBSD and macOS

Quoted 11 lines · Alex Bennée

From: Paolo Bonzini <[email protected]>

Using "V=1" makes it easier to identify hanging tests, especially since they are run with -j1. It is already used on Windows builds, do the same for FreeBSD and macOS.

Message-Id: <[email protected]>

#26 lore raw

PATCH 22/22 tests/acceptance: disable machine_rx_gdbsim on GitLab

In reply to Alex Bennée

While I can get the ssh test to fail on my test setup this seems a lot more stable except when on GitLab. Hopefully we can re-enable both once the serial timing patches have been added.

---
 tests/acceptance/machine_rx_gdbsim.py | 1 +
 1 file changed, 1 insertion(+)
tests/acceptance/machine_rx_gdbsim.py +1 -0
index 0c72506028..32b737b6d8 100644
@@ -22,6 +22,7 @@ class RxGdbSimMachine(Test):
     timeout = 30
     KERNEL_COMMON_COMMAND_LINE = 'printk.time=0 '
 
+    @skipIf(os.getenv('GITLAB_CI'), 'Running on GitLab')
     def test_uboot(self):
         """
         U-Boot and checks that the console is operational.
Signature · 1 line
2.20.1
Reviewed-by on v1 22/22
#27 lore raw

Re: [PATCH v1 22/22] tests/acceptance: disable machine_rx_gdbsim on GitLab

Quoted 4 lines · Alex Bennée

While I can get the ssh test to fail on my test setup this seems a lot more stable except when on GitLab. Hopefully we can re-enable both once the serial timing patches have been added.

Fair enough!

Quoted 19 lines
---
 tests/acceptance/machine_rx_gdbsim.py | 1 +
 1 file changed, 1 insertion(+)
tests/acceptance/machine_rx_gdbsim.py +1 -1
index 0c72506028..32b737b6d8 100644
@@ -22,6 +22,7 @@ class RxGdbSimMachine(Test):
     timeout = 30
     KERNEL_COMMON_COMMAND_LINE = 'printk.time=0 '
 
+    @skipIf(os.getenv('GITLAB_CI'), 'Running on GitLab')
     def test_uboot(self):
         """
         U-Boot and checks that the console is operational.
--
Quoted 3 lines

2.20.1