Skip to contentSkip to conversation

Misc patches for 2018-12-18

GIT PULL Paolo Bonzini 3 participants 7 messages Jan 9, 2019 – Jan 10, 2019

lore
Share & tools
lore
#0 lore raw

The following changes since commit c102d9471f8f02d9fbea72ec4505d7089173f470:

Merge remote-tracking branch 'remotes/pmaydell/tags/pull-target-arm-20190107' into staging (2019-01-07 16:56:33 +0000)

are available in the Git repository at:

git://github.com/bonzini/qemu.git tags/for-upstream

for you to fetch changes up to 5eddc84292736dc57db341f9724395a29d3614f7:

avoid TABs in files that only contain a few (2019-01-09 23:01:14 +0100)

----------------------------------------------------------------
* HAX support for Linux hosts (Alejandro)
* esp bugfixes (Guenter)
* Windows build cleanup (Marc-André)
* checkpatch logic improvements (Paolo)
* coalesced range bugfix (Paolo)
* switch testsuite to TAP (Paolo)
* QTAILQ rewrite (Paolo)
* block/iscsi.c cancellation fixes (Stefan)
* improve selection of the default accelerator (Thomas)

----------------------------------------------------------------
Alexandro Sanchez Bach (1):
hax: Support for Linux hosts

Guenter Roeck (2):
esp-pci: Fix status register write erase control
scsi: esp: Defer command completion until previous interrupts have been handled

Marc-André Lureau (4):
build-sys: don't include windows.h, osdep.h does it
build-sys: move windows defines in osdep.h header
build-sys: build with Vista API by default
qga: drop < Vista compatibility

Paolo Bonzini (21):
checkpatch: fix premature exit when no input or --mailback
checkpatch: check Signed-off-by in --mailback mode
checkpatch: improve handling of multiple patches or files
checkpatch: colorize output to terminal
pam: wrap MemoryRegion initialization in a transaction
memory: extract flat_range_coalesced_io_{del,add}
memory: avoid unnecessary coalesced_io_del operations
memory: update coalesced_range on transaction_commit
test: execute g_test_run when tests are skipped
test: replace gtester with a TAP driver
qemu/queue.h: do not access tqe_prev directly
vfio: make vfio_address_spaces static
qemu/queue.h: leave head structs anonymous unless necessary qemu/queue.h: typedef QTAILQ heads
qemu/queue.h: remove Q_TAILQ_{HEAD,ENTRY}
qemu/queue.h: reimplement QTAILQ without pointer-to-pointers qemu/queue.h: simplify reverse access to QTAILQ
checkpatch: warn about qemu/queue.h head structs that are not typedef-ed
scripts: add script to convert multiline comments into 4-line format remove space-tab sequences
avoid TABs in files that only contain a few

Peng Hao (1):
hw/watchdog/wdt_i6300esb: remove a unnecessary comment

Stefan Hajnoczi (4):
block/iscsi: drop unused IscsiAIOCB->buf field block/iscsi: take iscsilun->mutex in iscsi_timed_check_events() block/iscsi: fix ioctl cancel use-after-free block/iscsi: cancel libiscsi task when ABORT TASK TMF completes

Thomas Huth (1):
accel: Improve selection of the default accelerator

 accel/accel.c                                |  18 +-
 accel/kvm/kvm-all.c                          |   4 +-
 accel/tcg/translate-all.c                    |   4 -
 block/bochs.c                                |  22 +-
 block/file-posix.c                           |   2 +-
 block/file-win32.c                           |   8 +-
 block/gluster.c                              |   2 +-
 block/iscsi.c                                |  47 +++-
 block/linux-aio.c                            |   4 +-
 block/mirror.c                               |   2 +-
 block/qcow2-bitmap.c                         |   4 +-
 block/qcow2-cluster.c                        |   2 +-
 block/qcow2.h                                |   5 +-
 block/sheepdog.c                             |   6 +-
 block/vhdx.h                                 |   2 +-
 block/vpc.c                                  |   2 +-
 blockdev.c                                   |   4 +-
 bsd-user/elfload.c                           |   2 +-
 bsd-user/x86_64/target_syscall.h             |   2 +-
 configure                                    |   3 -
 contrib/elf2dmp/main.c                       |   2 +-
 contrib/ivshmem-client/ivshmem-client.h      |   4 +-
 contrib/ivshmem-server/ivshmem-server.h      |   5 +-
 cpus-common.c                                |   2 +-
 crypto/aes.c                                 |  28 +-
 disas/alpha.c                                |   8 +-
 disas/arm.c                                  |   2 +-
 disas/i386.c                                 |   4 +-
 disas/m68k.c                                 |   4 +-
 dump.c                                       |   2 +-
 exec.c                                       |   5 +-
 fsdev/qemu-fsdev.c                           |   2 +-
 hw/alpha/typhoon.c                           |  12 +-
 hw/arm/stellaris.c                           |   2 +-
 hw/block/nvme.h                              |   8 +-
 hw/block/xen_disk.c                          |   6 +-
 hw/char/sh_serial.c                          |  18 +-
 hw/char/virtio-serial-bus.c                  |   2 +-
 hw/char/xen_console.c                        |  58 ++--
 hw/core/loader.c                             |  28 +-
 hw/core/qdev.c                               |   4 +-
 hw/core/reset.c                              |   2 +-
 hw/display/tc6393xb.c                        |   6 +-
 hw/display/vga.c                             |   8 +-
 hw/display/virtio-gpu-3d.c                   |   6 +-
 hw/dma/pxa2xx_dma.c                          |   4 +-
 hw/dma/soc_dma.c                             |   2 +-
 hw/gpio/max7310.c                            |   2 +-
 hw/i386/xen/xen-hvm.c                        |   4 +-
 hw/i386/xen/xen-mapcache.c                   |   2 +-
 hw/ide/core.c                                |  94 +++----
 hw/input/lm832x.c                            |   2 +-
 hw/input/pckbd.c                             |   2 +-
 hw/input/tsc210x.c                           |   2 +-
 hw/intc/apic.c                               |   2 +-
 hw/mips/gt64xxx_pci.c                        |   6 +-
 hw/mips/mips_r4k.c                           |   4 +-
 hw/misc/max111x.c                            |   6 +-
 hw/misc/omap_l4.c                            |   4 +-
 hw/net/mipsnet.c                             |  16 +-
 hw/net/ne2000.c                              |  44 ++--
 hw/net/rocker/rocker.c                       |   2 +-
 hw/net/virtio-net.c                          |   4 +-
 hw/net/vmxnet3.c                             |   6 +-
 hw/pci-host/pam.c                            |   2 +
 hw/pci/msix.c                                |   2 +-
 hw/pci/pci.c                                 |  44 ++--
 hw/pci/pci_bridge.c                          |   2 +-
 hw/ppc/ppc405_uc.c                           |   2 +-
 hw/ppc/prep.c                                |   4 +-
 hw/ppc/spapr_iommu.c                         |   2 +-
 hw/scsi/esp-pci.c                            |  10 +-
 hw/scsi/esp.c                                |  33 ++-
 hw/scsi/lsi53c895a.c                         |   6 +-
 hw/scsi/scsi-bus.c                           |   2 +-
 hw/scsi/trace-events                         |   1 +
 hw/sh4/r2d.c                                 |  16 +-
 hw/usb/ccid-card-emulated.c                  |   4 +-
 hw/usb/combined-packet.c                     |   2 +-
 hw/usb/dev-bluetooth.c                       |   2 +-
 hw/usb/dev-hid.c                             |   6 +-
 hw/usb/dev-hub.c                             |  14 +-
 hw/usb/dev-mtp.c                             |   4 +-
 hw/usb/dev-network.c                         |   2 +-
 hw/usb/hcd-ehci.c                            |   2 +-
 hw/usb/hcd-ehci.h                            |   2 +-
 hw/usb/hcd-uhci.c                            |   8 +-
 hw/usb/xen-usb.c                             |   6 +-
 hw/vfio/common.c                             |   4 +-
 hw/watchdog/watchdog.c                       |   2 +-
 hw/watchdog/wdt_i6300esb.c                   |   1 -
 hw/xen/xen_devconfig.c                       |   2 +-
 hw/xen/xen_pvdev.c                           |   4 +-
 hw/xenpv/xen_domainbuild.c                   |   8 +-
 include/elf.h                                |  10 +-
 include/exec/memory.h                        |   6 +-
 include/hw/acpi/acpi.h                       |  14 +-
 include/hw/elf_ops.h                         |   2 +-
 include/hw/ide/internal.h                    |   2 +-
 include/hw/qdev-core.h                       |   2 +-
 include/hw/scsi/esp.h                        |   2 +
 include/hw/sh4/sh_intc.h                     |  20 +-
 include/hw/usb.h                             |   2 +-
 include/hw/vfio/vfio-common.h                |   4 +-
 include/hw/vfio/vfio-platform.h              |   2 +-
 include/hw/xen/io/ring.h                     |   4 +-
 include/net/net.h                            |   2 +-
 include/qemu/acl.h                           |  14 +-
 include/qemu/iov.h                           |   2 +-
 include/qemu/option_int.h                    |   2 +-
 include/qemu/osdep.h                         |  17 ++
 include/qemu/queue.h                         | 153 +++++------
 include/qemu/rcu_queue.h                     |  45 ++--
 include/qom/cpu.h                            |   9 +-
 include/scsi/constants.h                     |   2 +-
 include/sysemu/accel.h                       |   2 +-
 include/sysemu/balloon.h                     |   2 +-
 include/sysemu/kvm.h                         |   2 -
 include/sysemu/memory_mapping.h              |   2 +-
 include/sysemu/rng.h                         |   2 +-
 linux-user/elfload.c                         |   2 +-
 linux-user/linuxload.c                       |  14 +-
 linux-user/main.c                            |   4 +-
 linux-user/mmap.c                            |  10 +-
 linux-user/qemu.h                            |   4 +-
 linux-user/signal.c                          |  16 +-
 linux-user/strace.c                          |   4 +-
 linux-user/syscall.c                         |   2 +-
 linux-user/syscall_defs.h                    |   4 +-
 linux-user/uaccess.c                         |   2 +-
 linux-user/vm86.c                            |   2 +-
 linux-user/x86_64/target_syscall.h           |   2 +-
 memory.c                                     |  97 ++++---
 memory_mapping.c                             |   2 +-
 migration/block-dirty-bitmap.c               |   2 +-
 migration/block.c                            |   4 +-
 migration/ram.c                              |   2 +-
 monitor.c                                    |   4 +-
 net/checksum.c                               |   2 +-
 net/filter.c                                 |   2 +-
 net/net.c                                    |   2 +-
 net/queue.c                                  |   2 +-
 net/slirp.c                                  |   2 +-
 qga/commands-posix.c                         |   2 +-
 qga/commands-win32.c                         |  70 +----
 qtest.c                                      |   4 +-
 rules.mak                                    |   4 +-
 scripts/checkpatch.pl                        |  95 +++++--
 scripts/cocci-macro-file.h                   |  24 +-
 scripts/fix-multiline-comments.sh            |  62 +++++
 scripts/gtester-cat                          |  26 --
 scripts/tap-driver.pl                        | 378 +++++++++++++++++++++++++++
 scripts/tap-merge.pl                         | 110 ++++++++
 slirp/ip_input.c                             |   4 +-
 slirp/slirp.c                                |   2 +-
 slirp/tcp_input.c                            |  10 +-
 slirp/tcp_output.c                           |   4 +-
 slirp/tcp_timer.c                            |   2 +-
 slirp/udp.c                                  |   2 +-
 target/alpha/translate.c                     |   2 +-
 target/arm/kvm.c                             |   2 +-
 target/cris/helper.c                         |   2 +-
 target/cris/mmu.h                            |  10 +-
 target/cris/translate_v10.inc.c              |   2 +-
 target/i386/Makefile.objs                    |   6 +-
 target/i386/hax-i386.h                       |   6 +-
 target/i386/hax-mem.c                        |   2 +-
 target/i386/{hax-darwin.c => hax-posix.c}    |   0
 target/i386/{hax-darwin.h => hax-posix.h}    |   0
 target/i386/translate.c                      |  12 +-
 target/mips/translate.c                      |   2 +-
 target/tilegx/translate.c                    |   2 +-
 tcg/i386/tcg-target.inc.c                    |   4 +-
 tcg/tcg.c                                    |   4 +-
 tcg/tcg.h                                    |   6 +-
 tests/Makefile.include                       |  75 ++++--
 tests/cdrom-test.c                           |   2 +-
 tests/docker/dockerfiles/centos7.docker      |   1 +
 tests/docker/dockerfiles/debian-amd64.docker |   1 +
 tests/docker/dockerfiles/debian-ports.docker |   1 +
 tests/docker/dockerfiles/debian-sid.docker   |   1 +
 tests/docker/dockerfiles/debian8.docker      |   1 +
 tests/docker/dockerfiles/debian9.docker      |   1 +
 tests/docker/dockerfiles/fedora.docker       |   1 +
 tests/docker/dockerfiles/ubuntu.docker       |   1 +
 tests/ivshmem-test.c                         |   5 +-
 tests/libqos/malloc.c                        |   2 +-
 tests/migration-test.c                       |   8 +-
 tests/tcg/alpha/test-cond.c                  |   4 +-
 tests/tcg/arm/hello-arm.c                    |  20 +-
 tests/tcg/cris/check_glibc_kernelversion.c   |   8 +-
 tests/tcg/cris/check_mmap3.c                 |   2 +-
 tests/tcg/cris/check_openpf1.c               |   2 +-
 tests/tcg/cris/check_settls1.c               |   2 +-
 tests/tcg/i386/hello-i386.c                  |  14 +-
 tests/tcg/mips/hello-mips.c                  |  10 +-
 tests/tcg/multiarch/sha1.c                   |  12 +-
 tests/test-crypto-pbkdf.c                    |   3 +-
 tests/test-rcu-list.c                        |   2 +-
 tests/test-vmstate.c                         |   8 +-
 tests/vhost-user-test.c                      |   4 +-
 ui/console.c                                 |   4 +-
 ui/input.c                                   |  14 +-
 ui/keymaps.h                                 |   4 +-
 ui/qemu-pixman.c                             |   2 +-
 ui/vnc-enc-zywrle-template.c                 |   4 +-
 ui/vnc.c                                     |   4 +-
 util/bitops.c                                |   4 +-
 util/osdep.c                                 |   4 +-
 util/qemu-option.c                           |   4 +-
 util/qemu-sockets.c                          |   4 +-
 util/qemu-thread-win32.c                     |   4 -
 vl.c                                         |   4 +-
 213 files changed, 1504 insertions(+), 897 deletions(-)
 create mode 100755 scripts/fix-multiline-comments.sh
 delete mode 100755 scripts/gtester-cat
 create mode 100755 scripts/tap-driver.pl
 create mode 100755 scripts/tap-merge.pl
 rename target/i386/{hax-darwin.c => hax-posix.c} (100%)
 rename target/i386/{hax-darwin.h => hax-posix.h} (100%)
Signature · 3 lines
2.20.1

v5->v6: add </dev/null to avoid that stdin O_NONBLOCK affect the make process
#1 lore raw

[Qemu-devel] [PULL 23/35] test: replace gtester with a TAP driver

gtester is deprecated by upstream glib (see for example the announcement at https://blog.gtk.org/2018/07/11/news-from-glib-2-58/) and it does not support tests that call g_test_skip in some glib stable releases.

glib suggests instead using Automake's TAP support, which gtest itself supports since version 2.38 (QEMU's minimum requirement is 2.40). We do not support Automake, but we can use Automake's code to beautify the TAP output. I chose to use the Perl copy rather than the shell/awk one, with some changes so that it can accept TAP through stdin, in order to reuse Perl's TAP parsing package. This also avoids duplicating the parser between tap-driver.pl and tap-merge.pl.

Message-Id: <[email protected]>

---
 rules.mak                                    |   4 +-
 scripts/gtester-cat                          |  26 --
 scripts/tap-driver.pl                        | 378 +++++++++++++++++++
 scripts/tap-merge.pl                         | 110 ++++++
 tests/Makefile.include                       |  75 ++--
 tests/docker/dockerfiles/centos7.docker      |   1 +
 tests/docker/dockerfiles/debian-amd64.docker |   1 +
 tests/docker/dockerfiles/debian-ports.docker |   1 +
 tests/docker/dockerfiles/debian-sid.docker   |   1 +
 tests/docker/dockerfiles/debian8.docker      |   1 +
 tests/docker/dockerfiles/debian9.docker      |   1 +
 tests/docker/dockerfiles/fedora.docker       |   1 +
 tests/docker/dockerfiles/ubuntu.docker       |   1 +
 13 files changed, 549 insertions(+), 52 deletions(-)
 delete mode 100755 scripts/gtester-cat
 create mode 100755 scripts/tap-driver.pl
 create mode 100755 scripts/tap-merge.pl
rules.mak +3 -1
index bbb2667928..86e033d815 100644
@@ -132,7 +132,9 @@ modules:
 #  otherwise print the 'quiet' output in the format "  NAME     args to print"
 # NAME should be a short name of the command, 7 letters or fewer.
 # If called with only a single argument, will print nothing in quiet mode.
-quiet-command = $(if $(V),$1,$(if $(2),@printf "  %-7s %s\n" $2 $3 && $1, @$1))
+quiet-command-run = $(if $(V),,$(if $2,printf "  %-7s %s\n" $2 $3 && ))$1
+quiet-@ = $(if $(V),,@)
+quiet-command = $(quiet-@)$(call quiet-command-run,$1,$2,$3)
 
 # cc-option
 # Usage: CFLAGS+=$(call cc-option, -falign-functions=0, -malign-functions=0)
scripts/gtester-cat deleted +0 -26
deleted file mode 100755
index 061a952cad..0000000000
@@ -1,26 +0,0 @@
-#!/bin/sh
-#
-# Copyright IBM, Corp. 2012
-#
-# Authors:
-#  Anthony Liguori <[email protected]>
-#
-# This work is licensed under the terms of the GNU GPLv2 or later.
-# See the COPYING file in the top-level directory.
-
-cat <<EOF
-<?xml version="1.0"?>
-<gtester>
- <info>
-  <package>qemu</package>
-  <version>0.0</version>
-  <revision>rev</revision>
- </info>
-EOF
-
-sed \
-  -e '/<?xml/d' \
-  -e '/^<gtester>$/d' \
-  -e '/<info>/,/<\/info>/d' \
-  -e '$b' \
-  -e '/^<\/gtester>$/d' "$@"
scripts/tap-driver.pl new file +378 -0

378 lines not on this page · raw message

scripts/tap-merge.pl new file +110 -0

110 lines not on this page · raw message

tests/Makefile.include +50 -25

99 lines not on this page · raw message

tests/docker/dockerfiles/centos7.docker +1 -0
index 0a04bfbed8..e0f18f5a41 100644
@@ -22,6 +22,7 @@ ENV PACKAGES \
     mesa-libEGL-devel \
     mesa-libgbm-devel \
     nettle-devel \
+    perl-Test-Harness \
     pixman-devel \
     SDL-devel \
     spice-glib-devel \
tests/docker/dockerfiles/debian-amd64.docker +1 -0
index 24b113b76f..c66e341e5f 100644
@@ -16,6 +16,7 @@ RUN DEBIAN_FRONTEND=noninteractive eatmydata \
         liblzo2-dev \
         librdmacm-dev \
         libsnappy-dev \
+        libtest-harness-perl \
         libvte-dev
 
 # virgl
tests/docker/dockerfiles/debian-ports.docker +1 -0
index e05a9a9802..514ab53b80 100644
@@ -29,6 +29,7 @@ RUN DEBIAN_FRONTEND=noninteractive eatmydata \
         flex \
         gettext \
         git \
+        libtest-harness-perl \
         pkg-config \
         psmisc \
         python \
tests/docker/dockerfiles/debian-sid.docker +1 -0
index 9a3d168705..b30cbe7fc0 100644
@@ -26,6 +26,7 @@ RUN DEBIAN_FRONTEND=noninteractive eatmydata \
         ca-certificates \
         flex \
         git \
+        libtest-harness-perl \
         pkg-config \
         psmisc \
         python \
tests/docker/dockerfiles/debian8.docker +1 -0
index 52945631cd..cdc3f11e06 100644
@@ -29,6 +29,7 @@ RUN DEBIAN_FRONTEND=noninteractive eatmydata \
         gettext \
         git \
         gnupg \
+        libtest-harness-perl \
         pkg-config \
         python-minimal
 
tests/docker/dockerfiles/debian9.docker +1 -0
index 154ae2a455..9561d4f225 100644
@@ -24,6 +24,7 @@ RUN DEBIAN_FRONTEND=noninteractive eatmydata \
         flex \
         gettext \
         git \
+        libtest-harness-perl \
         pkg-config \
         psmisc \
         python \
tests/docker/dockerfiles/fedora.docker +1 -0
index 0c4eb9e49c..1d0e3dc4ec 100644
@@ -70,6 +70,7 @@ ENV PACKAGES \
     nss-devel \
     numactl-devel \
     perl \
+    perl-Test-Harness \
     pixman-devel \
     python3 \
     PyYAML \
tests/docker/dockerfiles/ubuntu.docker +1 -0
index 36e2b17de5..229add533c 100644
@@ -45,6 +45,7 @@ ENV PACKAGES flex bison \
     libspice-protocol-dev \
     libspice-server-dev \
     libssh2-1-dev \
+    libtest-harness-perl \
     libusb-1.0-0-dev \
     libusbredirhost-dev \
     libvdeplug-dev \
Signature · 1 line
2.20.1
#2 lore raw
In reply to Paolo Bonzini
Quoted 24 lines · Paolo Bonzini

The following changes since commit c102d9471f8f02d9fbea72ec4505d7089173f470:

Merge remote-tracking branch 'remotes/pmaydell/tags/pull-target-arm-20190107' into staging (2019-01-07 16:56:33 +0000)

are available in the Git repository at:

git://github.com/bonzini/qemu.git tags/for-upstream

for you to fetch changes up to 5eddc84292736dc57db341f9724395a29d3614f7:

avoid TABs in files that only contain a few (2019-01-09 23:01:14 +0100)

----------------------------------------------------------------
* HAX support for Linux hosts (Alejandro)
* esp bugfixes (Guenter)
* Windows build cleanup (Marc-André)
* checkpatch logic improvements (Paolo)
* coalesced range bugfix (Paolo)
* switch testsuite to TAP (Paolo)
* QTAILQ rewrite (Paolo)
* block/iscsi.c cancellation fixes (Stefan)
* improve selection of the default accelerator (Thomas)

Quoted 1 line

----------------------------------------------------------------

This almost all works fine (there are some annoying intermittents which mean that most of my full test runs fail somewhere for some reason, but they aren't issues with this pullreq as far as I can see[*]), but...

...'make check-tcg' fails:

e104462:xenial:all-linux-static$ make check-tcg
BUILD debian9
The command '/bin/sh -c DEBIAN_FRONTEND=noninteractive eatmydata
apt install -y --no-install-recommends bison
build-essential ca-certificates clang flex
gettext git libtest-harness-perl
pkg-config psmisc python texinfo
$(apt-get -s build-dep qemu | egrep ^Inst | fgrep '[all]' | cut -d\
-f2)' returned a non-zero code: 100
Traceback (most recent call last):
File "/home/petmay01/linaro/qemu-for-merges/tests/docker/docker.py",
line 563, in <module>

    sys.exit(main())

File "/home/petmay01/linaro/qemu-for-merges/tests/docker/docker.py",
line 560, in main
return args.cmdobj.run(args, argv)
File "/home/petmay01/linaro/qemu-for-merges/tests/docker/docker.py",
line 376, in run
extra_files_cksum=cksum)
File "/home/petmay01/linaro/qemu-for-merges/tests/docker/docker.py",
line 254, in build_image
quiet=quiet)
File "/home/petmay01/linaro/qemu-for-merges/tests/docker/docker.py",
line 181, in _do_check
return subprocess.check_call(self._command + cmd, **kwargs)
File "/usr/lib/python2.7/subprocess.py", line 541, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['docker', 'build', '-t', 'qemu:debian9', '-f', '/tmp/docker_build_cViZ6/tmpsvY3Oz.docker', '/tmp/docker_build_cViZ6']' returned non-zero exit status 100 /home/petmay01/linaro/qemu-for-merges/tests/docker/Makefile.include:53:
recipe for target 'docker-image-debian9' failed
make: *** [docker-image-debian9] Error 1

This seems to happen reliably with this pullreq merged in, but master is OK.

[*] intermittents I've seen recently (ie over the last month or two):
+ failures in the rcu torture-test
+ the netbsd VM sometimes fails to start and the "wait 300 seconds while trying to ssh into it" timeout expires; this might be load-related but it is always netbsd that fails like this, never the openbsd or freebsd VMs
+ test-filter-mirror sometimes seems to hang
+ the migration test hangs sometimes with TCG

thanks
-- PMM

#3 lore raw

Le jeu. 10 janv. 2019 15:21, Peter Maydell <[email protected]> a écrit :

Quoted 62 lines · Paolo Bonzini
Quoted 2 lines

The following changes since commit

c102d9471f8f02d9fbea72ec4505d7089173f470:

Quoted 2 lines

Merge remote-tracking branch

'remotes/pmaydell/tags/pull-target-arm-20190107' into staging (2019-01-07 16:56:33 +0000)

Quoted 20 lines

are available in the Git repository at:

git://github.com/bonzini/qemu.git tags/for-upstream

for you to fetch changes up to 5eddc84292736dc57db341f9724395a29d3614f7:

avoid TABs in files that only contain a few (2019-01-09 23:01:14 +0100)

----------------------------------------------------------------
* HAX support for Linux hosts (Alejandro)
* esp bugfixes (Guenter)
* Windows build cleanup (Marc-André)
* checkpatch logic improvements (Paolo)
* coalesced range bugfix (Paolo)
* switch testsuite to TAP (Paolo)
* QTAILQ rewrite (Paolo)
* block/iscsi.c cancellation fixes (Stefan)
* improve selection of the default accelerator (Thomas)

Quoted 1 line

----------------------------------------------------------------

This almost all works fine (there are some annoying intermittents which mean that most of my full test runs fail somewhere for some reason, but they aren't issues with this pullreq as far as I can see[*]), but...

...'make check-tcg' fails:

e104462:xenial:all-linux-static$ make check-tcg
BUILD debian9
The command '/bin/sh -c DEBIAN_FRONTEND=noninteractive eatmydata
apt install -y --no-install-recommends bison
build-essential ca-certificates clang flex
gettext git libtest-harness-perl
pkg-config psmisc python texinfo
$(apt-get -s build-dep qemu | egrep ^Inst | fgrep '[all]' | cut -d\
-f2)' returned a non-zero code: 100
Traceback (most recent call last):
File "/home/petmay01/linaro/qemu-for-merges/tests/docker/docker.py",
line 563, in <module>

    sys.exit(main())

File "/home/petmay01/linaro/qemu-for-merges/tests/docker/docker.py",
line 560, in main
return args.cmdobj.run(args, argv)
File "/home/petmay01/linaro/qemu-for-merges/tests/docker/docker.py",
line 376, in run
extra_files_cksum=cksum)
File "/home/petmay01/linaro/qemu-for-merges/tests/docker/docker.py",
line 254, in build_image
quiet=quiet)
File "/home/petmay01/linaro/qemu-for-merges/tests/docker/docker.py",
line 181, in _do_check
return subprocess.check_call(self._command + cmd, **kwargs)

Quoted 9 lines

File "/usr/lib/python2.7/subprocess.py", line 541, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['docker', 'build', '-t', 'qemu:debian9', '-f', '/tmp/docker_build_cViZ6/tmpsvY3Oz.docker', '/tmp/docker_build_cViZ6']' returned non-zero exit status 100 /home/petmay01/linaro/qemu-for-merges/tests/docker/Makefile.include:53:
recipe for target 'docker-image-debian9' failed
make: *** [docker-image-debian9] Error 1

This should work fine if you retry this PR after having merged Fam's PR which contains the fix.

Quoted 3 lines

This seems to happen reliably with this pullreq merged in, but master is OK.

I guess Travis is using a cached image.

Quoted 14 lines

[*] intermittents I've seen recently (ie over the last month or two):
+ failures in the rcu torture-test
+ the netbsd VM sometimes fails to start and the "wait 300 seconds while trying to ssh into it" timeout expires; this might be load-related but it is always netbsd that fails like this, never the openbsd or freebsd VMs
+ test-filter-mirror sometimes seems to hang
+ the migration test hangs sometimes with TCG

thanks
-- PMM

#4 lore raw
Quoted 6 lines · Philippe Mathieu-Daudé
Quoted 1 line · Peter Maydell

...'make check-tcg' fails:

This should work fine if you retry this PR after having merged Fam's PR which contains the fix.

Cool. I will do that and retry.

Quoted 5 lines
Quoted 2 lines

This seems to happen reliably with this pullreq merged in, but master is OK.

I guess Travis is using a cached image.

I'm not using travis, this is a local run of the test. But perhaps my system has a cached image. It seems a bit odd that it uses that cached image when testing master but not when testing Paolo's merge, though.

thanks
-- PMM

#5 lore raw
Quoted 13 lines · Peter Maydell
Quoted 5 lines · Philippe Mathieu-Daudé
Quoted 1 line · Peter Maydell

...'make check-tcg' fails:

This should work fine if you retry this PR after having merged Fam's PR which contains the fix.

Cool. I will do that and retry.

Quoted 4 lines
Quoted 2 lines

This seems to happen reliably with this pullreq merged in, but master is OK.

Quoted 6 lines
Quoted 1 line

I guess Travis is using a cached image.

I'm not using travis, this is a local run of the test. But perhaps my system has a cached image. It seems a bit odd that it uses that cached image when testing master but not when testing Paolo's merge, though.

The patch "test: replace gtester with a TAP driver" contains docker changes (adding libtest-harness-perl) which trigger a rebuild, your builds using /master should use the cache.

This might be a problem with this new package (if so, Fam's PR isn't going to help here).

I'll check and if possible improve the docker.py output to get a more useful error message.

Regards,

Phil.

#6 lore raw
Quoted 10 lines · Philippe Mathieu-Daudé
Quoted 4 lines

I'm not using travis, this is a local run of the test. But perhaps my system has a cached image. It seems a bit odd that it uses that cached image when testing master but not when testing Paolo's merge, though.

The patch "test: replace gtester with a TAP driver" contains docker changes (adding libtest-harness-perl) which trigger a rebuild, your builds using /master should use the cache.

This might be a problem with this new package (if so, Fam's PR isn't going to help here).

Yes, in some versions of Debian it's a virtual package. I should just install perl instead.

Paolo