Skip to content
Snippets Groups Projects
  1. Mar 28, 2017
  2. Mar 24, 2017
    • Peter Maydell's avatar
      Merge remote-tracking branch 'remotes/stefanha/tags/tracing-pull-request' into staging · ea2afcf5
      Peter Maydell authored
      
      # gpg: Signature made Fri 24 Mar 2017 14:08:41 GMT
      # gpg:                using RSA key 0x9CA4ABB381AB73C8
      # gpg: Good signature from "Stefan Hajnoczi <stefanha@redhat.com>"
      # gpg:                 aka "Stefan Hajnoczi <stefanha@gmail.com>"
      # Primary key fingerprint: 8695 A8BF D3F9 7CDA AC35  775A 9CA4 ABB3 81AB 73C8
      
      * remotes/stefanha/tags/tracing-pull-request:
        trace: Avoid abuse of amdvi_mmio_read
        trace: Fix incorrect megasas trace parameters
        trace: Fix backwards mirror_yield parameters
      
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      ea2afcf5
    • Christian Borntraeger's avatar
      boot-serial-test: use -no-shutdown · 7150d34a
      Christian Borntraeger authored
      
      a qemu with an empty s390 guest will exit very quickly. This races
      against the testsuite reading from the console pipe leading to
      intermittent test suite failures. Using -no-shutdown will keep
      the guest running.
      
      Fixes: 864111f4 (vl: exit qemu on guest panic if -no-shutdown is not set)
      Reported-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      Signed-off-by: default avatarChristian Borntraeger <borntraeger@de.ibm.com>
      Message-id: 1490361570-288658-1-git-send-email-borntraeger@de.ibm.com
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      7150d34a
    • Peter Maydell's avatar
      disas/microblaze: Remove unused REG_PC define · bd517b43
      Peter Maydell authored
      
      The REG_PC define in disas/microblaze.c clashes with a define in
      the Linux SPARC system headers:
      
      /home/pm215/qemu/disas/microblaze.c:162:0: error: "REG_PC" redefined [-Werror]
       #define REG_PC  32 /* PC */
      
      In file included from /usr/include/signal.h:326:0,
                       from /home/pm215/qemu/include/qemu/osdep.h:86,
                       from /home/pm215/qemu/disas/microblaze.c:36:
      /usr/include/sparc64-linux-gnu/sys/ucontext.h:96:0: note: this is the location of the previous definition
       #define REG_PC  (1)
      
      Since the code doesn't actually use the REG_PC define
      anywhere, the simplest fix is just to remove it.
      
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      Reviewed-by: default avatarEdgar E. Iglesias <edgar.iglesias@xilinx.com>
      Message-id: 1490272961-1128-1-git-send-email-peter.maydell@linaro.org
      bd517b43
    • Eric Blake's avatar
      trace: Avoid abuse of amdvi_mmio_read · 0d3ef788
      Eric Blake authored
      
      hw/i386/trace-events has an amdvi_mmio_read trace that is used for
      both normal reads (listing the register name, address, size, and
      offset) and for an error case (abusing the register name to show
      an error message, the address to show the maximum value supported,
      then shoehorning address and size into the size and offset
      parameters).  The change from a wide address to a narrower size
      parameter could truncate a (rather-large) bogus read attempt, so
      it's better to create a separate dedicated trace with correct types,
      rather than abusing the trace mechanism.  Broken since its
      introduction in commit d29a09ca.
      
      [Change trace event argument type from hwaddr to uint64_t since
      user-defined types should not be used for trace events.  This fixes a
      build failure with LTTng UST.
      --Stefan]
      
      Signed-off-by: default avatarEric Blake <eblake@redhat.com>
      Signed-off-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
      0d3ef788
    • Eric Blake's avatar
      trace: Fix incorrect megasas trace parameters · d17e7448
      Eric Blake authored
      
      hw/scsi/trace-events lists cmd as the first parameter for both
      megasas_iovec_overflow and megasas_iovec_underflow, but the caller
      was mistakenly passing cmd->iov_size twice instead of the command
      index.  Also, trace_megasas_abort_invalid is called with parameters
      in the wrong order.  Broken since its introduction in commit
      e8f943c3.
      
      Signed-off-by: default avatarEric Blake <eblake@redhat.com>
      Reviewed-by: default avatarHannes Reinecke <hare@suse.com>
      Signed-off-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
      d17e7448
    • Eric Blake's avatar
      trace: Fix backwards mirror_yield parameters · 67adf4b3
      Eric Blake authored
      
      block/trace-events lists the parameters for mirror_yield
      consistently with other mirror events (cnt just after s, like in
      mirror_before_sleep; in_flight last, like in mirror_yield_in_flight).
      But the callers were passing parameters in the wrong order, leading
      to poor trace messages, including type truncation when there are
      more than 4G dirty sectors involved.  Broken since its introduction
      in commit bd48bde8.
      
      While touching this, ensure that all callers use the same type
      (uint64_t) for cnt, as a later patch will enable the compiler to do
      stricter type-checking.
      
      Signed-off-by: default avatarEric Blake <eblake@redhat.com>
      Signed-off-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
      67adf4b3
  3. Mar 23, 2017
  4. Mar 22, 2017
  5. Mar 21, 2017
    • Markus Armbruster's avatar
      test-qobject-input-visitor: Cover visit_type_uint64() · 4bc0c94d
      Markus Armbruster authored
      
      The new test demonstrates known bugs: integers between INT64_MAX+1 and
      UINT64_MAX rejected, and integers between INT64_MIN and -1 are
      accepted modulo 2^64.
      
      Signed-off-by: default avatarMarkus Armbruster <armbru@redhat.com>
      Message-Id: <1490118290-6133-1-git-send-email-armbru@redhat.com>
      Reviewed-by: default avatarEric Blake <eblake@redhat.com>
      4bc0c94d
    • Peter Maydell's avatar
      55a19ad8
    • Peter Maydell's avatar
      configure: Warn about deprecated hosts · 898be3e0
      Peter Maydell authored
      
      We plan to drop support in a future QEMU release for host OSes
      and host architectures for which we have no test machine where
      we can build and run tests. For the 2.9 release, make configure
      print a warning if it is run on such a host, so that the user
      has some warning of the plans and can volunteer to help us
      maintain the port if they need it to continue to function.
      
      This commit flags up as deprecated the CPU architectures:
       * ia64
       * sparc
       * anything which we don't have a TCG port for
         (and which was presumably using TCI)
      and the OSes:
       * GNU/kFreeBSD
       * DragonFly BSD
       * NetBSD
       * OpenBSD
       * Solaris
       * AIX
       * Haiku
      
      It also makes entirely unrecognized host OS strings be
      rejected rather than treated as if they were Linux (which
      likely never worked).
      
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      Message-id: 1490106717-9542-1-git-send-email-peter.maydell@linaro.org
      898be3e0
    • Peter Maydell's avatar
      Merge remote-tracking branch 'remotes/gkurz/tags/for-upstream' into staging · 41a56822
      Peter Maydell authored
      
      This pull request fixes a potential QEMU hang in 9pfs and two issues
      reported by Coverity.
      
      # gpg: Signature made Tue 21 Mar 2017 09:57:58 GMT
      # gpg:                using DSA key 0x02FC3AEB0101DBC2
      # gpg: Good signature from "Greg Kurz <groug@kaod.org>"
      # gpg:                 aka "Greg Kurz <groug@free.fr>"
      # gpg:                 aka "Greg Kurz <gkurz@linux.vnet.ibm.com>"
      # gpg:                 aka "Gregory Kurz (Groug) <groug@free.fr>"
      # gpg:                 aka "[jpeg image of size 3330]"
      # gpg: WARNING: This key is not certified with a trusted signature!
      # gpg:          There is no indication that the signature belongs to the owner.
      # Primary key fingerprint: 2BD4 3B44 535E C0A7 9894  DBA2 02FC 3AEB 0101 DBC2
      
      * remotes/gkurz/tags/for-upstream:
        9pfs: proxy: assert if unmarshal fails
        9pfs: don't try to flush self and avoid QEMU hang on reset
      
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      41a56822
    • Gerd Hoffmann's avatar
      add opengl_cflags to QEMU_CFLAGS · cc720a5d
      Gerd Hoffmann authored
      
      ... and drop OPENGL_CFLAGS from Makefiles.
      
      Signed-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>
      Message-id: 1490079888-29029-1-git-send-email-kraxel@redhat.com
      Reviewed-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      cc720a5d
    • Edgar Kaziahmedov's avatar
      parallels: fix default options parsing · ff5bbe56
      Edgar Kaziahmedov authored
      
      parallels block driver is completely broken since commit
          commit 75cdcd15
          Author: Markus Armbruster <armbru@redhat.com>
          Date:   Tue Feb 21 21:14:08 2017 +0100
          option: Fix checking of sizes for overflow and trailing crap
      Right now even simple
          qemu-io -c "read 512 64k" 1.hds
      ends up with
          Unexpected error in parse_option_size() at util/qemu-option.c:188:
          Parameter 'prealloc-size' expects a non-negative number below 2^64
          Aborted (core dumped)
      The cure is simple - we should use 'M' as a suffix in default option value
      instead of 'MiB'.
      
      Signed-off-by: default avatarEdgar Kaziahmedov <edos@virtuozzo.mipt.ru>
      Signed-off-by: default avatarDenis V. Lunev <den@openvz.org>
      Message-id: 1490002022-22653-1-git-send-email-den@openvz.org
      CC: Markus Armbruster <armbru@redhat.com>
      CC: Stefan Hajnoczi <stefanha@redhat.com>
      Signed-off-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
      ff5bbe56
Loading