Skip to contentSkip to conversation

Some small tests and s390x fixes

GIT PULL Applied Thomas Huth 4 participants 13 messages Aug 16, 2024 – Aug 20, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi Richard!

The following changes since commit b0d6c037ea0a825192285f149af72a73a1baaa04:

Update version for v9.1.0-rc2 release (2024-08-15 20:32:37 +1000)

are available in the Git repository at:

https://gitlab.com/thuth/qemu.git tags/pull-request-2024-08-16

for you to fetch changes up to b4be15a9f9e73fa2e7c46da559f10afc94018984:

ci: refresh package lists with lcitool (2024-08-16 09:16:03 +0200)

----------------------------------------------------------------
* Fix a potential build warning in the s390x target code
* Check for the availability of __attribute__((gcc_struct)) on MSYS2
* Fix skipUnless decorators in Avocado tests
* Add missing gtk-vnc package to the CI jobs

----------------------------------------------------------------
Cleber Rosa (1):
tests/avocado: apply proper skipUnless decorator

Daniel P. Berrangé (2):
ci: add gtk-vnc to the deps
ci: refresh package lists with lcitool

Pierrick Bouvier (1):

      target/s390x: fix build warning (gcc-12 -fsanitize=thread)

Thomas Huth (1):
meson.build: Check for the availability of __attribute__((gcc_struct)) on MSYS2

 meson.build                                           | 5 +++++
 target/s390x/tcg/translate.c                          | 1 -
 .gitlab-ci.d/cirrus/freebsd-13.vars                   | 2 +-
 .gitlab-ci.d/cirrus/macos-13.vars                     | 2 +-
 .gitlab-ci.d/cirrus/macos-14.vars                     | 2 +-
 scripts/ci/setup/ubuntu/ubuntu-2204-aarch64.yaml      | 1 +
 scripts/ci/setup/ubuntu/ubuntu-2204-s390x.yaml        | 1 +
 tests/avocado/boot_linux_console.py                   | 1 -
 tests/avocado/intel_iommu.py                          | 1 -
 tests/avocado/linux_initrd.py                         | 1 -
 tests/avocado/machine_aspeed.py                       | 2 --
 tests/avocado/machine_mips_malta.py                   | 2 --
 tests/avocado/machine_rx_gdbsim.py                    | 1 -
 tests/avocado/reverse_debugging.py                    | 4 ----
 tests/avocado/smmu.py                                 | 1 -
 tests/docker/dockerfiles/alpine.docker                | 1 +
 tests/docker/dockerfiles/debian-amd64-cross.docker    | 1 +
 tests/docker/dockerfiles/debian-arm64-cross.docker    | 1 +
 tests/docker/dockerfiles/debian-armel-cross.docker    | 1 +
 tests/docker/dockerfiles/debian-armhf-cross.docker    | 1 +
 tests/docker/dockerfiles/debian-i686-cross.docker     | 1 +
 tests/docker/dockerfiles/debian-mips64el-cross.docker | 1 +
 tests/docker/dockerfiles/debian-mipsel-cross.docker   | 1 +
 tests/docker/dockerfiles/debian-ppc64el-cross.docker  | 1 +
 tests/docker/dockerfiles/debian-s390x-cross.docker    | 1 +
 tests/docker/dockerfiles/debian.docker                | 1 +
 tests/docker/dockerfiles/fedora-win64-cross.docker    | 1 +
 tests/docker/dockerfiles/fedora.docker                | 1 +
 tests/docker/dockerfiles/opensuse-leap.docker         | 1 +
 tests/docker/dockerfiles/ubuntu2204.docker            | 1 +
 tests/lcitool/projects/qemu.yml                       | 1 +
 tests/vm/generated/freebsd.json                       | 1 +
 32 files changed, 27 insertions(+), 17 deletions(-)
#1 lore raw

[PULL 3/5] tests/avocado: apply proper skipUnless decorator

From: Cleber Rosa <[email protected]>

Commit 9b45cc993 added many cases of skipUnless for the sake of organizing flaky tests. But, Python decorators *must* follow what they decorate, so the newlines added should *not* exist there.

Message-ID: <[email protected]>

---
 tests/avocado/boot_linux_console.py | 1 -
 tests/avocado/intel_iommu.py        | 1 -
 tests/avocado/linux_initrd.py       | 1 -
 tests/avocado/machine_aspeed.py     | 2 --
 tests/avocado/machine_mips_malta.py | 2 --
 tests/avocado/machine_rx_gdbsim.py  | 1 -
 tests/avocado/reverse_debugging.py  | 4 ----
 tests/avocado/smmu.py               | 1 -
 8 files changed, 13 deletions(-)
tests/avocado/boot_linux_console.py +0 -1
index 2929aa042d..cffdd6b5a2 100644
@@ -1522,7 +1522,6 @@ def test_ppc_mac99(self):
     # like issues with a buggy kernel. As a result we don't want it
     # gating releases on Gitlab.
     @skipUnless(os.getenv('QEMU_TEST_FLAKY_TESTS'), 'Test is unstable on GitLab')
-
     def test_sh4_r2d(self):
         """
         :avocado: tags=arch:sh4
tests/avocado/intel_iommu.py +0 -1
index 008f214397..992583fa7d 100644
@@ -13,7 +13,6 @@
 from avocado_qemu.linuxtest import LinuxTest
 
 @skipUnless(os.getenv('QEMU_TEST_FLAKY_TESTS'), 'Test is unstable on GitLab')
-
 class IntelIOMMU(LinuxTest):
     """
     :avocado: tags=arch:x86_64
tests/avocado/linux_initrd.py +0 -1
index aad5b19bd9..7f47b98ae7 100644
@@ -54,7 +54,6 @@ def test_with_2gib_file_should_exit_error_msg_with_linux_v3_6(self):
             self.assertRegex(self.vm.get_log(), expected_msg)
 
     @skipUnless(os.getenv('QEMU_TEST_FLAKY_TESTS'), 'Test is unstable on GitLab')
-
     def test_with_2gib_file_should_work_with_linux_v4_16(self):
         """
         :avocado: tags=flaky
tests/avocado/machine_aspeed.py +0 -2
index f8e263d37e..c0b01e8f1f 100644
@@ -323,7 +323,6 @@ def do_test_aarch64_aspeed_sdk_start(self, image):
         self.wait_for_console_pattern('Starting kernel ...')
 
     @skipUnless(os.getenv('QEMU_TEST_FLAKY_TESTS'), 'Test is unstable on GitLab')
-
     def test_arm_ast2500_evb_sdk(self):
         """
         :avocado: tags=arch:arm
@@ -343,7 +342,6 @@ def test_arm_ast2500_evb_sdk(self):
         self.wait_for_console_pattern('nodistro.0 ast2500-default ttyS4')
 
     @skipUnless(os.getenv('QEMU_TEST_FLAKY_TESTS'), 'Test is unstable on GitLab')
-
     def test_arm_ast2600_evb_sdk(self):
         """
         :avocado: tags=arch:arm
tests/avocado/machine_mips_malta.py +0 -2
index 8cf84bd805..07a80633b5 100644
@@ -102,7 +102,6 @@ def test_mips_malta_i6400_framebuffer_logo_1core(self):
         self.do_test_i6400_framebuffer_logo(1)
 
     @skipUnless(os.getenv('QEMU_TEST_FLAKY_TESTS'), 'Test is unstable on GitLab')
-
     def test_mips_malta_i6400_framebuffer_logo_7cores(self):
         """
         :avocado: tags=arch:mips64el
@@ -114,7 +113,6 @@ def test_mips_malta_i6400_framebuffer_logo_7cores(self):
         self.do_test_i6400_framebuffer_logo(7)
 
     @skipUnless(os.getenv('QEMU_TEST_FLAKY_TESTS'), 'Test is unstable on GitLab')
-
     def test_mips_malta_i6400_framebuffer_logo_8cores(self):
         """
         :avocado: tags=arch:mips64el
tests/avocado/machine_rx_gdbsim.py +0 -1
index 412a7a5089..9a0bec8a6e 100644
@@ -49,7 +49,6 @@ def test_uboot(self):
         #exec_command_and_wait_for_pattern(self, 'version', gcc_version)
 
     @skipUnless(os.getenv('QEMU_TEST_FLAKY_TESTS'), 'Test is unstable on GitLab')
-
     def test_linux_sash(self):
         """
         Boots a Linux kernel and checks that the console is operational.
tests/avocado/reverse_debugging.py +0 -4
index 92855a02a5..f24287cd0a 100644
@@ -207,7 +207,6 @@ def get_pc(self, g):
 
     # unidentified gitlab timeout problem
     @skipUnless(os.getenv('QEMU_TEST_FLAKY_TESTS'), 'Test is unstable on GitLab')
-
     def test_x86_64_pc(self):
         """
         :avocado: tags=arch:x86_64
@@ -225,7 +224,6 @@ class ReverseDebugging_AArch64(ReverseDebugging):
 
     # unidentified gitlab timeout problem
     @skipUnless(os.getenv('QEMU_TEST_FLAKY_TESTS'), 'Test is unstable on GitLab')
-
     def test_aarch64_virt(self):
         """
         :avocado: tags=arch:aarch64
@@ -250,7 +248,6 @@ class ReverseDebugging_ppc64(ReverseDebugging):
 
     # unidentified gitlab timeout problem
     @skipUnless(os.getenv('QEMU_TEST_FLAKY_TESTS'), 'Test is unstable on GitLab')
-
     def test_ppc64_pseries(self):
         """
         :avocado: tags=arch:ppc64
@@ -265,7 +262,6 @@ def test_ppc64_pseries(self):
 
     # See https://gitlab.com/qemu-project/qemu/-/issues/1992
     @skipUnless(os.getenv('QEMU_TEST_FLAKY_TESTS'), 'Test is unstable on GitLab')
-
     def test_ppc64_powernv(self):
         """
         :avocado: tags=arch:ppc64
tests/avocado/smmu.py +0 -1
index aadda71e4b..83fd79e922 100644
@@ -14,7 +14,6 @@
 from avocado_qemu.linuxtest import LinuxTest
 
 @skipUnless(os.getenv('QEMU_TEST_FLAKY_TESTS'), 'Test is unstable on GitLab')
-
 class SMMU(LinuxTest):
     """
     :avocado: tags=accel:kvm
Signature · 1 line
2.46.0
#2 lore raw

Re: [PULL 3/5] tests/avocado: apply proper skipUnless decorator

Quoted 29 lines · Thomas Huth

From: Cleber Rosa <[email protected]>

Commit 9b45cc993 added many cases of skipUnless for the sake of organizing flaky tests. But, Python decorators *must* follow what they decorate, so the newlines added should *not* exist there.

Message-ID: <[email protected]>

---
  tests/avocado/boot_linux_console.py | 1 -
  tests/avocado/intel_iommu.py        | 1 -
  tests/avocado/linux_initrd.py       | 1 -
  tests/avocado/machine_aspeed.py     | 2 --
  tests/avocado/machine_mips_malta.py | 2 --
  tests/avocado/machine_rx_gdbsim.py  | 1 -
  tests/avocado/reverse_debugging.py  | 4 ----
  tests/avocado/smmu.py               | 1 -
  8 files changed, 13 deletions(-)
tests/avocado/machine_rx_gdbsim.py +0 -0
index 412a7a5089..9a0bec8a6e 100644

tests/avocado/machine_rx_gdbsim.py def test_uboot(self): · line 54

Quoted 7 lines
tests/avocado/machine_rx_gdbsim.py +0 -1
@@ -49,7 +49,6 @@ def test_uboot(self):
          #exec_command_and_wait_for_pattern(self, 'version', gcc_version)
 
      @skipUnless(os.getenv('QEMU_TEST_FLAKY_TESTS'), 'Test is unstable on GitLab')
-
      def test_linux_sash(self):
          """
          Boots a Linux kernel and checks that the console is operational.

For some weird reason a part of this patch is missing...

#3 lore raw

Re: [PULL 3/5] tests/avocado: apply proper skipUnless decorator

Quoted 25 lines · Philippe Mathieu-Daudé
Quoted 22 lines · Thomas Huth

From: Cleber Rosa <[email protected]>

Commit 9b45cc993 added many cases of skipUnless for the sake of organizing flaky tests.  But, Python decorators *must* follow what they decorate, so the newlines added should *not* exist there.

Message-ID: <[email protected]>

---
  tests/avocado/boot_linux_console.py | 1 -
  tests/avocado/intel_iommu.py        | 1 -
  tests/avocado/linux_initrd.py       | 1 -
  tests/avocado/machine_aspeed.py     | 2 --
  tests/avocado/machine_mips_malta.py | 2 --
  tests/avocado/machine_rx_gdbsim.py  | 1 -
  tests/avocado/reverse_debugging.py  | 4 ----
  tests/avocado/smmu.py               | 1 -

  8 files changed, 13 deletions(-)
Quoted 13 lines
Quoted 11 lines
tests/avocado/machine_rx_gdbsim.py +0 -1
index 412a7a5089..9a0bec8a6e 100644
@@ -49,7 +49,6 @@ def test_uboot(self):
           #exec_command_and_wait_for_pattern(self, 'version', gcc_version)
       @skipUnless(os.getenv('QEMU_TEST_FLAKY_TESTS'), 'Test is unstable on GitLab')
-

      def test_linux_sash(self):
          """
          Boots a Linux kernel and checks that the console is operational.

For some weird reason a part of this patch is missing...

I dropped it on purpose since there was another patch on the list that drops that decorator completely.

Thomas

#4 lore raw

Re: [PULL 3/5] tests/avocado: apply proper skipUnless decorator

Quoted 40 lines · Thomas Huth
Quoted 25 lines · Philippe Mathieu-Daudé
Quoted 22 lines · Thomas Huth

From: Cleber Rosa <[email protected]>

Commit 9b45cc993 added many cases of skipUnless for the sake of organizing flaky tests.  But, Python decorators *must* follow what they decorate, so the newlines added should *not* exist there.

Message-ID: <[email protected]>

---
  tests/avocado/boot_linux_console.py | 1 -
  tests/avocado/intel_iommu.py        | 1 -
  tests/avocado/linux_initrd.py       | 1 -
  tests/avocado/machine_aspeed.py     | 2 --
  tests/avocado/machine_mips_malta.py | 2 --
  tests/avocado/machine_rx_gdbsim.py  | 1 -
  tests/avocado/reverse_debugging.py  | 4 ----
  tests/avocado/smmu.py               | 1 -

  8 files changed, 13 deletions(-)
Quoted 13 lines
Quoted 11 lines
tests/avocado/machine_rx_gdbsim.py +0 -1
index 412a7a5089..9a0bec8a6e 100644
@@ -49,7 +49,6 @@ def test_uboot(self):
           #exec_command_and_wait_for_pattern(self, 'version', gcc_version)
       @skipUnless(os.getenv('QEMU_TEST_FLAKY_TESTS'), 'Test is unstable on GitLab')
-

      def test_linux_sash(self):
          """
          Boots a Linux kernel and checks that the console is operational.

For some weird reason a part of this patch is missing...

Quoted 1 line

I dropped it on purpose since there was another patch on the list that drops that decorator completely.

This one here, it's even yours ;-) :

https://gitlab.com/qemu-project/qemu/-/commit/8a69613e9ccac6c9eb97fb969348284469fd9395

Thomas

#5 lore raw

[PULL 1/5] target/s390x: fix build warning (gcc-12 -fsanitize=thread)

In reply to Thomas Huth

From: Pierrick Bouvier <[email protected]>

Found on debian stable.

../target/s390x/tcg/translate.c: In function ‘get_mem_index’:
../target/s390x/tcg/translate.c:398:1: error: control reaches end of non-void function [-Werror=return-type]
398 | }

Message-ID: <[email protected]>

---
 target/s390x/tcg/translate.c | 1 -
 1 file changed, 1 deletion(-)
target/s390x/tcg/translate.c +0 -1
index c81e035dea..bcfff40b25 100644
@@ -392,7 +392,6 @@ static int get_mem_index(DisasContext *s)
         return MMU_HOME_IDX;
     default:
         g_assert_not_reached();
-        break;
     }
 #endif
 }
Signature · 1 line
2.46.0
#6 lore raw

Re: [PULL 1/5] target/s390x: fix build warning (gcc-12 -fsanitize=thread)

Quoted 21 lines · Thomas Huth

From: Pierrick Bouvier <[email protected]>

Found on debian stable.

../target/s390x/tcg/translate.c: In function ‘get_mem_index’:
../target/s390x/tcg/translate.c:398:1: error: control reaches end of non-void function [-Werror=return-type]
398 | }

Message-ID: <[email protected]>

---
  target/s390x/tcg/translate.c | 1 -
  1 file changed, 1 deletion(-)
target/s390x/tcg/translate.c +0 -0
index c81e035dea..bcfff40b25 100644

target/s390x/tcg/translate.c static int get_mem_index(DisasContext *s) · line 395

Quoted 4 lines
target/s390x/tcg/translate.c +0 -1
@@ -392,7 +392,6 @@ static int get_mem_index(DisasContext *s)
          return MMU_HOME_IDX;
      default:
          g_assert_not_reached();
-        break;

Why aren't the other cases problematic?

$ git grep -A1 g_assert_not_reached | fgrep -B1 break
accel/tcg/plugin-gen.c:253:        g_assert_not_reached();
accel/tcg/plugin-gen.c-254-        break;
--
block/ssh.c:476:        g_assert_not_reached();
block/ssh.c-477-        break;
--
fpu/softfloat-parts.c.inc:1375:            g_assert_not_reached();
fpu/softfloat-parts.c.inc-1376-            break;
--
fpu/softfloat-parts.c.inc:1388:            g_assert_not_reached();
fpu/softfloat-parts.c.inc-1389-            break;
--
hw/gpio/nrf51_gpio.c:42:        g_assert_not_reached();
hw/gpio/nrf51_gpio.c-43-        break;
--
hw/misc/imx6_ccm.c:303:        g_assert_not_reached();
hw/misc/imx6_ccm.c-304-        break;
--
hw/misc/mac_via.c:497:                g_assert_not_reached();
hw/misc/mac_via.c-498-                break;
--
hw/misc/mac_via.c:558:            g_assert_not_reached();
hw/misc/mac_via.c-559-            break;
--
hw/pci-host/gt64120.c:691:        g_assert_not_reached();
hw/pci-host/gt64120.c-692-        break;
--
hw/pci-host/gt64120.c:935:        g_assert_not_reached();
hw/pci-host/gt64120.c-936-        break;
--
hw/scsi/virtio-scsi.c:359:        g_assert_not_reached();
hw/scsi/virtio-scsi.c-360-        break;
--
hw/tpm/tpm_spapr.c:208:                g_assert_not_reached();
hw/tpm/tpm_spapr.c-209-                break;
--
target/arm/hyp_gdbstub.c:160:        g_assert_not_reached();
target/arm/hyp_gdbstub.c-161-        break;
--
target/riscv/insn_trans/trans_rvv.c.inc:3174:        g_assert_not_reached();
target/riscv/insn_trans/trans_rvv.c.inc-3175-        break;
--
target/riscv/insn_trans/trans_rvv.c.inc:3259:        g_assert_not_reached();
target/riscv/insn_trans/trans_rvv.c.inc-3260-        break;
--
target/riscv/monitor.c:186:        g_assert_not_reached();
target/riscv/monitor.c-187-        break;
--
target/s390x/tcg/translate.c:394:        g_assert_not_reached();
target/s390x/tcg/translate.c-395-        break;
--
tcg/loongarch64/tcg-target.c.inc:652:        g_assert_not_reached();
tcg/loongarch64/tcg-target.c.inc-653-        break;
--
tests/qtest/migration-helpers.c:78:        g_assert_not_reached();
tests/qtest/migration-helpers.c-79-        break;
--
ui/qemu-pixman.c:51:        g_assert_not_reached();
ui/qemu-pixman.c-52-        break;
#7 lore raw

Re: [PULL 1/5] target/s390x: fix build warning (gcc-12 -fsanitize=thread)

Quoted 17 lines · Philippe Mathieu-Daudé
Quoted 16 lines · Thomas Huth

From: Pierrick Bouvier <[email protected]>

Found on debian stable.

../target/s390x/tcg/translate.c: In function ‘get_mem_index’:
../target/s390x/tcg/translate.c:398:1: error: control reaches end of non-void function [-Werror=return-type] 398 | }

Message-ID: <[email protected]>

---
  target/s390x/tcg/translate.c | 1 -

  1 file changed, 1 deletion(-)
Quoted 11 lines
Quoted 9 lines
target/s390x/tcg/translate.c +0 -0
index c81e035dea..bcfff40b25 100644
@@ -392,7 +392,6 @@ static int get_mem_index(DisasContext *s)
           return MMU_HOME_IDX;

      default:
          g_assert_not_reached();
-        break;

Why aren't the other cases problematic?

No clue, but I guess we can tackle them once anybody runs into a problem in one of these spots.

Thomas

#8 lore raw

Re: [PULL 1/5] target/s390x: fix build warning (gcc-12 -fsanitize=thread)

In reply to Philippe Mathieu-Daudé
Quoted 81 lines · Philippe Mathieu-Daudé
Quoted 21 lines · Thomas Huth

From: Pierrick Bouvier <[email protected]>

Found on debian stable.

../target/s390x/tcg/translate.c: In function ‘get_mem_index’:
../target/s390x/tcg/translate.c:398:1: error: control reaches end of non-void function [-Werror=return-type]

    398 | }

Message-ID: <[email protected]>

---
   target/s390x/tcg/translate.c | 1 -
   1 file changed, 1 deletion(-)
target/s390x/tcg/translate.c +0 -0
index c81e035dea..bcfff40b25 100644

target/s390x/tcg/translate.c static int get_mem_index(DisasContext *s) · line 395

Quoted 4 lines
target/s390x/tcg/translate.c +0 -1
@@ -392,7 +392,6 @@ static int get_mem_index(DisasContext *s)
           return MMU_HOME_IDX;
       default:
           g_assert_not_reached();
-        break;

Why aren't the other cases problematic?

$ git grep -A1 g_assert_not_reached | fgrep -B1 break
accel/tcg/plugin-gen.c:253:        g_assert_not_reached();
accel/tcg/plugin-gen.c-254-        break;
--
block/ssh.c:476:        g_assert_not_reached();
block/ssh.c-477-        break;
--
fpu/softfloat-parts.c.inc:1375:            g_assert_not_reached();
fpu/softfloat-parts.c.inc-1376-            break;
--
fpu/softfloat-parts.c.inc:1388:            g_assert_not_reached();
fpu/softfloat-parts.c.inc-1389-            break;
--
hw/gpio/nrf51_gpio.c:42:        g_assert_not_reached();
hw/gpio/nrf51_gpio.c-43-        break;
--
hw/misc/imx6_ccm.c:303:        g_assert_not_reached();
hw/misc/imx6_ccm.c-304-        break;
--
hw/misc/mac_via.c:497:                g_assert_not_reached();
hw/misc/mac_via.c-498-                break;
--
hw/misc/mac_via.c:558:            g_assert_not_reached();
hw/misc/mac_via.c-559-            break;
--
hw/pci-host/gt64120.c:691:        g_assert_not_reached();
hw/pci-host/gt64120.c-692-        break;
--
hw/pci-host/gt64120.c:935:        g_assert_not_reached();
hw/pci-host/gt64120.c-936-        break;
--
hw/scsi/virtio-scsi.c:359:        g_assert_not_reached();
hw/scsi/virtio-scsi.c-360-        break;
--
hw/tpm/tpm_spapr.c:208:                g_assert_not_reached();
hw/tpm/tpm_spapr.c-209-                break;
--
target/arm/hyp_gdbstub.c:160:        g_assert_not_reached();
target/arm/hyp_gdbstub.c-161-        break;
--
target/riscv/insn_trans/trans_rvv.c.inc:3174:        g_assert_not_reached();
target/riscv/insn_trans/trans_rvv.c.inc-3175-        break;
--
target/riscv/insn_trans/trans_rvv.c.inc:3259:        g_assert_not_reached();
target/riscv/insn_trans/trans_rvv.c.inc-3260-        break;
--
target/riscv/monitor.c:186:        g_assert_not_reached();
target/riscv/monitor.c-187-        break;
--
target/s390x/tcg/translate.c:394:        g_assert_not_reached();
target/s390x/tcg/translate.c-395-        break;
--
Quoted 9 lines
tcg/loongarch64/tcg-target.c.inc:652:        g_assert_not_reached();
tcg/loongarch64/tcg-target.c.inc-653-        break;
--
tests/qtest/migration-helpers.c:78:        g_assert_not_reached();
tests/qtest/migration-helpers.c-79-        break;
--
ui/qemu-pixman.c:51:        g_assert_not_reached();
ui/qemu-pixman.c-52-        break;

I'll take a look at constructions where code is present after g_assert_not_reached() and make a series out of it to clean this.

#9 lore raw

[PULL 4/5] ci: add gtk-vnc to the deps

In reply to Thomas Huth

From: Daniel P. Berrangé <[email protected]>

The gtk-vnc package is used by the vnc-display-test qtest program. Technically only gvnc is needed, but since we already pull in the gtk3 dep, it is harmless to depend on gtk-vnc.

Message-ID: <[email protected]>

---
 tests/lcitool/projects/qemu.yml | 1 +
 1 file changed, 1 insertion(+)
tests/lcitool/projects/qemu.yml +1 -0
index 0c85784259..252e871f80 100644
@@ -32,6 +32,7 @@ packages:
  - glusterfs
  - gnutls
  - gtk3
+ - gtk-vnc
  - hostname
  - json-c
  - libaio
Signature · 1 line
2.46.0
#10 lore raw

[PULL 5/5] ci: refresh package lists with lcitool

In reply to Thomas Huth

From: Daniel P. Berrangé <[email protected]>

Refresh with the newly added gtk-vnc package

Message-ID: <[email protected]>

[thuth: fixed conflicts in .gitlab-ci.d/cirrus/*.vars]
---
 .gitlab-ci.d/cirrus/freebsd-13.vars                   | 2 +-
 .gitlab-ci.d/cirrus/macos-13.vars                     | 2 +-
 .gitlab-ci.d/cirrus/macos-14.vars                     | 2 +-
 scripts/ci/setup/ubuntu/ubuntu-2204-aarch64.yaml      | 1 +
 scripts/ci/setup/ubuntu/ubuntu-2204-s390x.yaml        | 1 +
 tests/docker/dockerfiles/alpine.docker                | 1 +
 tests/docker/dockerfiles/debian-amd64-cross.docker    | 1 +
 tests/docker/dockerfiles/debian-arm64-cross.docker    | 1 +
 tests/docker/dockerfiles/debian-armel-cross.docker    | 1 +
 tests/docker/dockerfiles/debian-armhf-cross.docker    | 1 +
 tests/docker/dockerfiles/debian-i686-cross.docker     | 1 +
 tests/docker/dockerfiles/debian-mips64el-cross.docker | 1 +
 tests/docker/dockerfiles/debian-mipsel-cross.docker   | 1 +
 tests/docker/dockerfiles/debian-ppc64el-cross.docker  | 1 +
 tests/docker/dockerfiles/debian-s390x-cross.docker    | 1 +
 tests/docker/dockerfiles/debian.docker                | 1 +
 tests/docker/dockerfiles/fedora-win64-cross.docker    | 1 +
 tests/docker/dockerfiles/fedora.docker                | 1 +
 tests/docker/dockerfiles/opensuse-leap.docker         | 1 +
 tests/docker/dockerfiles/ubuntu2204.docker            | 1 +
 tests/vm/generated/freebsd.json                       | 1 +
 21 files changed, 21 insertions(+), 3 deletions(-)
.gitlab-ci.d/cirrus/freebsd-13.vars +1 -1
index 29ab9645f9..69c948b503 100644
@@ -11,6 +11,6 @@ MAKE='/usr/local/bin/gmake'
 NINJA='/usr/local/bin/ninja'
 PACKAGING_COMMAND='pkg'
 PIP3='/usr/local/bin/pip-3.8'
-PKGS='alsa-lib bash bison bzip2 ca_root_nss capstone4 ccache cmocka ctags curl cyrus-sasl dbus diffutils dtc flex fusefs-libs3 gettext git glib gmake gnutls gsed gtk3 json-c libepoxy libffi libgcrypt libjpeg-turbo libnfs libslirp libspice-server libssh libtasn1 llvm lzo2 meson mtools ncurses nettle ninja opencv pixman pkgconf png py311-numpy py311-pillow py311-pip py311-sphinx py311-sphinx_rtd_theme py311-tomli py311-yaml python3 rpm2cpio sdl2 sdl2_image snappy sndio socat spice-protocol tesseract usbredir virglrenderer vte3 xorriso zstd'
+PKGS='alsa-lib bash bison bzip2 ca_root_nss capstone4 ccache cmocka ctags curl cyrus-sasl dbus diffutils dtc flex fusefs-libs3 gettext git glib gmake gnutls gsed gtk-vnc gtk3 json-c libepoxy libffi libgcrypt libjpeg-turbo libnfs libslirp libspice-server libssh libtasn1 llvm lzo2 meson mtools ncurses nettle ninja opencv pixman pkgconf png py311-numpy py311-pillow py311-pip py311-sphinx py311-sphinx_rtd_theme py311-tomli py311-yaml python3 rpm2cpio sdl2 sdl2_image snappy sndio socat spice-protocol tesseract usbredir virglrenderer vte3 xorriso zstd'
 PYPI_PKGS=''
 PYTHON='/usr/local/bin/python3'
.gitlab-ci.d/cirrus/macos-13.vars +1 -1
index 534f029956..ac3fa3a847 100644
@@ -11,6 +11,6 @@ MAKE='/opt/homebrew/bin/gmake'
 NINJA='/opt/homebrew/bin/ninja'
 PACKAGING_COMMAND='brew'
 PIP3='/opt/homebrew/bin/pip3'
-PKGS='bash bc bison bzip2 capstone ccache cmocka ctags curl dbus diffutils dtc flex gcovr gettext git glib gnu-sed gnutls gtk+3 jemalloc jpeg-turbo json-c libepoxy libffi libgcrypt libiscsi libnfs libpng libslirp libssh libtasn1 libusb llvm lzo make meson mtools ncurses nettle ninja pixman pkg-config python3 rpm2cpio sdl2 sdl2_image snappy socat sparse spice-protocol swtpm tesseract usbredir vde vte3 xorriso zlib zstd'
+PKGS='bash bc bison bzip2 capstone ccache cmocka ctags curl dbus diffutils dtc flex gcovr gettext git glib gnu-sed gnutls gtk+3 gtk-vnc jemalloc jpeg-turbo json-c libepoxy libffi libgcrypt libiscsi libnfs libpng libslirp libssh libtasn1 libusb llvm lzo make meson mtools ncurses nettle ninja pixman pkg-config python3 rpm2cpio sdl2 sdl2_image snappy socat sparse spice-protocol swtpm tesseract usbredir vde vte3 xorriso zlib zstd'
 PYPI_PKGS='PyYAML numpy pillow sphinx sphinx-rtd-theme tomli'
 PYTHON='/opt/homebrew/bin/python3'
.gitlab-ci.d/cirrus/macos-14.vars +1 -1
index 43070f4a26..24cfec3b89 100644
@@ -11,6 +11,6 @@ MAKE='/opt/homebrew/bin/gmake'
 NINJA='/opt/homebrew/bin/ninja'
 PACKAGING_COMMAND='brew'
 PIP3='/opt/homebrew/bin/pip3'
-PKGS='bash bc bison bzip2 capstone ccache cmocka ctags curl dbus diffutils dtc flex gcovr gettext git glib gnu-sed gnutls gtk+3 jemalloc jpeg-turbo json-c libepoxy libffi libgcrypt libiscsi libnfs libpng libslirp libssh libtasn1 libusb llvm lzo make meson mtools ncurses nettle ninja pixman pkg-config python3 rpm2cpio sdl2 sdl2_image snappy socat sparse spice-protocol swtpm tesseract usbredir vde vte3 xorriso zlib zstd'
+PKGS='bash bc bison bzip2 capstone ccache cmocka ctags curl dbus diffutils dtc flex gcovr gettext git glib gnu-sed gnutls gtk+3 gtk-vnc jemalloc jpeg-turbo json-c libepoxy libffi libgcrypt libiscsi libnfs libpng libslirp libssh libtasn1 libusb llvm lzo make meson mtools ncurses nettle ninja pixman pkg-config python3 rpm2cpio sdl2 sdl2_image snappy socat sparse spice-protocol swtpm tesseract usbredir vde vte3 xorriso zlib zstd'
 PYPI_PKGS='PyYAML numpy pillow sphinx sphinx-rtd-theme tomli'
 PYTHON='/opt/homebrew/bin/python3'
scripts/ci/setup/ubuntu/ubuntu-2204-aarch64.yaml +1 -0
index fd5489cd82..71a0f0c433 100644
@@ -49,6 +49,7 @@ packages:
   - libglusterfs-dev
   - libgnutls28-dev
   - libgtk-3-dev
+  - libgtk-vnc-2.0-dev
   - libibverbs-dev
   - libiscsi-dev
   - libjemalloc-dev
scripts/ci/setup/ubuntu/ubuntu-2204-s390x.yaml +1 -0
index afa04502cf..d8de967b18 100644
@@ -49,6 +49,7 @@ packages:
   - libglusterfs-dev
   - libgnutls28-dev
   - libgtk-3-dev
+  - libgtk-vnc-2.0-dev
   - libibverbs-dev
   - libiscsi-dev
   - libjemalloc-dev
tests/docker/dockerfiles/alpine.docker +1 -0
index b079a83fe2..54b9721997 100644
@@ -40,6 +40,7 @@ RUN apk update && \
         glib-static \
         gnutls-dev \
         gtk+3.0-dev \
+        gtk-vnc-dev \
         json-c-dev \
         libaio-dev \
         libbpf-dev \
tests/docker/dockerfiles/debian-amd64-cross.docker +1 -0
index 8058695979..136c3a79a1 100644
@@ -30,6 +30,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       git \
                       hostname \
                       libglib2.0-dev \
+                      libgtk-vnc-2.0-dev \
                       libpcre2-dev \
                       libsndio-dev \
                       libspice-protocol-dev \
tests/docker/dockerfiles/debian-arm64-cross.docker +1 -0
index 15457d7657..233f6ee1de 100644
@@ -30,6 +30,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       git \
                       hostname \
                       libglib2.0-dev \
+                      libgtk-vnc-2.0-dev \
                       libpcre2-dev \
                       libsndio-dev \
                       libspice-protocol-dev \
tests/docker/dockerfiles/debian-armel-cross.docker +1 -0
index c26ffc2e9e..8476fc8cce 100644
@@ -30,6 +30,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       git \
                       hostname \
                       libglib2.0-dev \
+                      libgtk-vnc-2.0-dev \
                       libpcre2-dev \
                       libsndio-dev \
                       libspice-protocol-dev \
tests/docker/dockerfiles/debian-armhf-cross.docker +1 -0
index 8f87656d89..f26385e0b9 100644
@@ -30,6 +30,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       git \
                       hostname \
                       libglib2.0-dev \
+                      libgtk-vnc-2.0-dev \
                       libpcre2-dev \
                       libsndio-dev \
                       libspice-protocol-dev \
tests/docker/dockerfiles/debian-i686-cross.docker +1 -0
index f4ef054a2e..3fe8ee623d 100644
@@ -30,6 +30,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       git \
                       hostname \
                       libglib2.0-dev \
+                      libgtk-vnc-2.0-dev \
                       libpcre2-dev \
                       libsndio-dev \
                       libspice-protocol-dev \
tests/docker/dockerfiles/debian-mips64el-cross.docker +1 -0
index 59c4c68dce..2862785692 100644
@@ -30,6 +30,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       git \
                       hostname \
                       libglib2.0-dev \
+                      libgtk-vnc-2.0-dev \
                       libpcre2-dev \
                       libsndio-dev \
                       libspice-protocol-dev \
tests/docker/dockerfiles/debian-mipsel-cross.docker +1 -0
index 880c774f1c..0d559ae4ba 100644
@@ -30,6 +30,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       git \
                       hostname \
                       libglib2.0-dev \
+                      libgtk-vnc-2.0-dev \
                       libpcre2-dev \
                       libsndio-dev \
                       libspice-protocol-dev \
tests/docker/dockerfiles/debian-ppc64el-cross.docker +1 -0
index 1d55b9514c..8c1dcec9cf 100644
@@ -30,6 +30,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       git \
                       hostname \
                       libglib2.0-dev \
+                      libgtk-vnc-2.0-dev \
                       libpcre2-dev \
                       libsndio-dev \
                       libspice-protocol-dev \
tests/docker/dockerfiles/debian-s390x-cross.docker +1 -0
index 62ccda6ab1..72668e0315 100644
@@ -30,6 +30,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       git \
                       hostname \
                       libglib2.0-dev \
+                      libgtk-vnc-2.0-dev \
                       libpcre2-dev \
                       libsndio-dev \
                       libspice-protocol-dev \
tests/docker/dockerfiles/debian.docker +1 -0
index 0d1d401eb8..42bd0067d1 100644
@@ -55,6 +55,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       libglusterfs-dev \
                       libgnutls28-dev \
                       libgtk-3-dev \
+                      libgtk-vnc-2.0-dev \
                       libibverbs-dev \
                       libiscsi-dev \
                       libjemalloc-dev \
tests/docker/dockerfiles/fedora-win64-cross.docker +1 -0
index 007e1574bd..6b264d901f 100644
@@ -34,6 +34,7 @@ exec "$@"\n' > /usr/bin/nosync && \
                git \
                glib2-devel \
                glibc-langpack-en \
+               gtk-vnc2-devel \
                hostname \
                llvm \
                make \
tests/docker/dockerfiles/fedora.docker +1 -0
index 44f239c088..ecdefaff1a 100644
@@ -50,6 +50,7 @@ exec "$@"\n' > /usr/bin/nosync && \
                glibc-static \
                glusterfs-api-devel \
                gnutls-devel \
+               gtk-vnc2-devel \
                gtk3-devel \
                hostname \
                jemalloc-devel \
tests/docker/dockerfiles/opensuse-leap.docker +1 -0
index 836f531ac1..66143621fe 100644
@@ -33,6 +33,7 @@ RUN zypper update -y && \
            glibc-locale \
            glibc-static \
            glusterfs-devel \
+           gtk-vnc-devel \
            gtk3-devel \
            hostname \
            jemalloc-devel \
tests/docker/dockerfiles/ubuntu2204.docker +1 -0
index beeb44fc28..3a7de6a318 100644
@@ -55,6 +55,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       libglusterfs-dev \
                       libgnutls28-dev \
                       libgtk-3-dev \
+                      libgtk-vnc-2.0-dev \
                       libibverbs-dev \
                       libiscsi-dev \
                       libjemalloc-dev \
tests/vm/generated/freebsd.json +1 -0
index 2a361cecd0..d5f0b62ec1 100644
@@ -29,6 +29,7 @@
     "gmake",
     "gnutls",
     "gsed",
+    "gtk-vnc",
     "gtk3",
     "json-c",
     "libepoxy",
Signature · 1 line
2.46.0
#11 lore raw

[PULL 2/5] meson.build: Check for the availability of __attribute__((gcc_struct)) on MSYS2

In reply to Thomas Huth

Since quite a while MSYS2 now supports Clang as a compiler, too. Unfortunately, this compiler is lacking the __attribute__((gcc_struct)) that we need for compiling on Windows. But since the compiler is available now, some people started to use it to compile QEMU on MSYS2, apparently ignoring the compiler warnings (see for example the ticket at
https://gitlab.com/qemu-project/qemu/-/issues/2476 ). These builds are likely broken in a couple of spots, so let's make sure that we rather bail out early in the configuration phase instead of allowing the build to succeed with warnings.

Message-ID: <[email protected]>

---
 meson.build | 5 +++++
 1 file changed, 5 insertions(+)
meson.build +5 -0
index 81ecd4bae7..fbda17c987 100644
@@ -315,6 +315,11 @@ elif host_os == 'sunos'
   qemu_common_flags += '-D__EXTENSIONS__'
 elif host_os == 'haiku'
   qemu_common_flags += ['-DB_USE_POSITIVE_POSIX_ERRORS', '-D_BSD_SOURCE', '-fPIC']
+elif host_os == 'windows'
+  if not compiler.compiles('struct x { int y; } __attribute__((gcc_struct));',
+                           args: '-Werror')
+    error('Your compiler does not support __attribute__((gcc_struct)) - please use GCC instead of Clang')
+  endif
 endif
 
 # __sync_fetch_and_and requires at least -march=i486. Many toolchains
Signature · 1 line
2.46.0
#12 lore raw
In reply to Thomas Huth
Quoted 12 lines · Thomas Huth

Hi Richard!

The following changes since commit b0d6c037ea0a825192285f149af72a73a1baaa04:

   Update version for v9.1.0-rc2 release (2024-08-15 20:32:37 +1000)

are available in the Git repository at:

   https://gitlab.com/thuth/qemu.git tags/pull-request-2024-08-16

for you to fetch changes up to b4be15a9f9e73fa2e7c46da559f10afc94018984:

Quoted 7 lines

ci: refresh package lists with lcitool (2024-08-16 09:16:03 +0200)

----------------------------------------------------------------
* Fix a potential build warning in the s390x target code
* Check for the availability of __attribute__((gcc_struct)) on MSYS2
* Fix skipUnless decorators in Avocado tests
* Add missing gtk-vnc package to the CI jobs

Applied, thanks. Please update https://wiki.qemu.org/ChangeLog/9.1 as appropriate.

r~