1. 24 Jan, 2018 10 commits
  2. 23 Jan, 2018 2 commits
    • Peter Maydell's avatar
      Merge remote-tracking branch 'remotes/huth/tags/pull-request-2018-01-22' into staging · 52483b06
      Peter Maydell authored
      Pull request for various patches that have been reviewed and
      laying on the mailing list for a while, but apparently no
      maintainer feels really responsible for picking up.
      
      # gpg: Signature made Mon 22 Jan 2018 11:10:16 GMT
      # gpg:                using RSA key 0x2ED9D774FE702DB5
      # gpg: Good signature from "Thomas Huth <th.huth@gmx.de>"
      # gpg:                 aka "Thomas Huth <thuth@redhat.com>"
      # gpg:                 aka "Thomas Huth <huth@tuxfamily.org>"
      # gpg:                 aka "Thomas Huth <th.huth@posteo.de>"
      # Primary key fingerprint: 27B8 8847 EEE0 2501 18F3  EAB9 2ED9 D774 FE70 2DB5
      
      * remotes/huth/tags/pull-request-2018-01-22:
        hw/isa: Replace fprintf(stderr, "*\n" with error_report()
        hw/ipmi: Replace fprintf(stderr, "*\n" with error_report()
        hw/bt: Replace fprintf(stderr, "*\n" with error_report()
        Fixes after renaming __FUNCTION__ to __func__
        Replace all occurances of __FUNCTION__ with __func__
        tests/cpu-plug-test: Test CPU hot-plugging on s390x
        tests/cpu-plug-test: Check CPU hot-plugging on ppc64, too
        tests/cpu-plug-test: Check the CPU hot-plugging with device_add, too
        tests: Rename pc-cpu-test.c to cpu-plug-test.c
      Signed-off-by: 's avatarPeter Maydell <peter.maydell@linaro.org>
      52483b06
    • Peter Maydell's avatar
      migration: Revert postcopy-blocktime commit set · ee86981b
      Peter Maydell authored
      This reverts commits
      ca6011c2 migration: add postcopy total blocktime into query-migrate
      5f32dc8e migration: add blocktime calculation into migration-test
      2f7dae9d migration: postcopy_blocktime documentation
      3be98be4 migration: calculate vCPU blocktime on dst side
      01a87f0b migration: add postcopy blocktime ctx into MigrationIncomingState
      31bf06a9 migration: introduce postcopy-blocktime capability
      
      as they don't build on ppc32 due to trying to do atomic accesses
      on types that are larger than the host pointer type.
      Signed-off-by: 's avatarPeter Maydell <peter.maydell@linaro.org>
      ee86981b
  3. 22 Jan, 2018 12 commits
    • Peter Maydell's avatar
      Merge remote-tracking branch 'remotes/dgibson/tags/ppc-for-2.12-20180121' into staging · ee264eb3
      Peter Maydell authored
      ppc patch queue 2018-01-21
      
      This request supersedes the one from 2018-01-19.  The only difference
      is that the patch deprecating ppcemb-softmmu, and thereby creating
      many annying warnings from make check has been removed.
      
      Highlights are:
        * Significant TCG speedup by optimizing cmp generation
        * Fix a regression caused by recent change to set compat mode on
          hotplugged cpus
        * Cleanup of default configs
        * Some implementation of msgsnd/msgrcv instructions for server chips
      
      # gpg: Signature made Sun 21 Jan 2018 05:30:54 GMT
      # gpg:                using RSA key 0x6C38CACA20D9B392
      # gpg: Good signature from "David Gibson <david@gibson.dropbear.id.au>"
      # gpg:                 aka "David Gibson (Red Hat) <dgibson@redhat.com>"
      # gpg:                 aka "David Gibson (ozlabs.org) <dgibson@ozlabs.org>"
      # gpg:                 aka "David Gibson (kernel.org) <dwg@kernel.org>"
      # Primary key fingerprint: 75F4 6586 AE61 A66C C44E  87DC 6C38 CACA 20D9 B392
      
      * remotes/dgibson/tags/ppc-for-2.12-20180121:
        target/ppc/spapr_caps: Add macro to generate spapr_caps migration vmstate
        target/ppc: add support for hypervisor doorbells on book3s CPUs
        sii3112: Add explicit type casts to avoid unintended sign extension
        sm501: Add missing break to case
        target-ppc: optimize cmp translation
        spapr: fix device tree properties when using compatibility mode
        spapr: drop duplicate variable in spapr_core_plug()
        target/ppc: msgsnd and msgclr instructions need hypervisor privilege
        target/ppc: fix doorbell and hypervisor doorbell definitions
        hw/ppc/Makefile: Add a way to disable the PPC4xx boards
        default-configs/ppc-softmmu: Restructure the switches according to the machines
        default-configs/ppc64-softmmu: Include 32-bit configs instead of copying them
      Signed-off-by: 's avatarPeter Maydell <peter.maydell@linaro.org>
      ee264eb3
    • Peter Maydell's avatar
      Merge remote-tracking branch 'remotes/elmarco/tags/dump-pull-request' into staging · 6df55517
      Peter Maydell authored
      # gpg: Signature made Sat 20 Jan 2018 20:03:47 GMT
      # gpg:                using RSA key 0xDAE8E10975969CE5
      # gpg: Good signature from "Marc-André Lureau <marcandre.lureau@redhat.com>"
      # gpg:                 aka "Marc-André Lureau <marcandre.lureau@gmail.com>"
      # Primary key fingerprint: 87A9 BD93 3F87 C606 D276  F62D DAE8 E109 7596 9CE5
      
      * remotes/elmarco/tags/dump-pull-request:
        dump-guest-memory.py: fix python 2 support
      Signed-off-by: 's avatarPeter Maydell <peter.maydell@linaro.org>
      6df55517
    • Peter Maydell's avatar
      Merge remote-tracking branch 'remotes/jnsnow/tags/ide-pull-request' into staging · f7c6b96c
      Peter Maydell authored
      # gpg: Signature made Fri 19 Jan 2018 22:31:27 GMT
      # gpg:                using RSA key 0x7DEF8106AAFC390E
      # gpg: Good signature from "John Snow (John Huston) <jsnow@redhat.com>"
      # Primary key fingerprint: FAEB 9711 A12C F475 812F  18F2 88A9 064D 1835 61EB
      #      Subkey fingerprint: F9B7 ABDB BCAC DF95 BE76  CBD0 7DEF 8106 AAFC 390E
      
      * remotes/jnsnow/tags/ide-pull-request:
        hw/ide: Remove duplicated definitions from ahci_internal.h
        ide: abort TRIM operation for invalid range
        ide: move ide_sect_range_ok() up
        ide: pass IDEState to trim AIO callback
      Signed-off-by: 's avatarPeter Maydell <peter.maydell@linaro.org>
      f7c6b96c
    • Alistair Francis's avatar
      hw/isa: Replace fprintf(stderr, "*\n" with error_report() · 1081ed2c
      Alistair Francis authored
      Replace a large number of the fprintf(stderr, "*\n" calls with
      error_report(). The functions were renamed with these commands and then
      compiler issues where manually fixed.
      
      find ./* -type f -exec sed -i \
          'N;N;N;N;N;N;N;N;N;N;N;N; {s|fprintf(stderr,
      "\(.*\)\\n"\(.*\));|error_report("\1"\2);|Ig}' \
          {} +
      find ./* -type f -exec sed -i \
          'N;N;N;N;N;N;N;N;N;N;N; {s|fprintf(stderr,
      "\(.*\)\\n"\(.*\));|error_report("\1"\2);|Ig}' \
          {} +
      find ./* -type f -exec sed -i \
          'N;N;N;N;N;N;N;N;N; {s|fprintf(stderr,
      "\(.*\)\\n"\(.*\));|error_report("\1"\2);|Ig}' \
          {} +
      find ./* -type f -exec sed -i \
          'N;N;N;N;N;N;N;N; {s|fprintf(stderr,
      "\(.*\)\\n"\(.*\));|error_report("\1"\2);|Ig}' \
          {} +
      find ./* -type f -exec sed -i \
          'N;N;N;N;N;N;N; {s|fprintf(stderr,
      "\(.*\)\\n"\(.*\));|error_report("\1"\2);|Ig}' \
          {} +
      find ./* -type f -exec sed -i \
          'N;N;N;N;N;N; {s|fprintf(stderr,
      "\(.*\)\\n"\(.*\));|error_report("\1"\2);|Ig}' \
          {} +
      find ./* -type f -exec sed -i \
          'N;N;N;N;N; {s|fprintf(stderr,
      "\(.*\)\\n"\(.*\));|error_report("\1"\2);|Ig}' \
          {} +
      find ./* -type f -exec sed -i \
          'N;N;N;N; {s|fprintf(stderr,
      "\(.*\)\\n"\(.*\));|error_report("\1"\2);|Ig}' \
          {} +
      find ./* -type f -exec sed -i \
          'N;N;N; {s|fprintf(stderr,
      "\(.*\)\\n"\(.*\));|error_report("\1"\2);|Ig}' \
          {} +
      find ./* -type f -exec sed -i \
          'N;N; {s|fprintf(stderr,
      "\(.*\)\\n"\(.*\));|error_report("\1"\2);|Ig}' \
          {} +
      find ./* -type f -exec sed -i \
          'N; {s|fprintf(stderr,
      "\(.*\)\\n"\(.*\));|error_report("\1"\2);|Ig}' \
          {} +
      
      Some lines where then manually tweaked to pass checkpatch.
      Signed-off-by: 's avatarAlistair Francis <alistair.francis@xilinx.com>
      Reviewed-by: 's avatarPhilippe Mathieu-Daudé <f4bug@amsat.org>
      Signed-off-by: 's avatarThomas Huth <thuth@redhat.com>
      1081ed2c
    • Alistair Francis's avatar
      hw/ipmi: Replace fprintf(stderr, "*\n" with error_report() · 4fee2470
      Alistair Francis authored
      Replace a large number of the fprintf(stderr, "*\n" calls with
      error_report(). The functions were renamed with these commands and then
      compiler issues where manually fixed.
      
      find ./* -type f -exec sed -i \
          'N;N;N;N;N;N;N;N;N;N;N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|Ig}' \
          {} +
      find ./* -type f -exec sed -i \
          'N;N;N;N;N;N;N;N;N;N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|Ig}' \
          {} +
      find ./* -type f -exec sed -i \
          'N;N;N;N;N;N;N;N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|Ig}' \
          {} +
      find ./* -type f -exec sed -i \
          'N;N;N;N;N;N;N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|Ig}' \
          {} +
      find ./* -type f -exec sed -i \
          'N;N;N;N;N;N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|Ig}' \
          {} +
      find ./* -type f -exec sed -i \
          'N;N;N;N;N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|Ig}' \
          {} +
      find ./* -type f -exec sed -i \
          'N;N;N;N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|Ig}' \
          {} +
      find ./* -type f -exec sed -i \
          'N;N;N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|Ig}' \
          {} +
      find ./* -type f -exec sed -i \
          'N;N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|Ig}' \
          {} +
      find ./* -type f -exec sed -i \
          'N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|Ig}' \
          {} +
      find ./* -type f -exec sed -i \
          'N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|Ig}' \
          {} +
      
      Some lines where then manually tweaked to pass checkpatch.
      Signed-off-by: 's avatarAlistair Francis <alistair.francis@xilinx.com>
      Reviewed-by: 's avatarPhilippe Mathieu-Daudé <f4bug@amsat.org>
      Signed-off-by: 's avatarThomas Huth <thuth@redhat.com>
      4fee2470
    • Alistair Francis's avatar
      hw/bt: Replace fprintf(stderr, "*\n" with error_report() · bf937a79
      Alistair Francis authored
      Replace a large number of the fprintf(stderr, "*\n" calls with
      error_report(). The functions were renamed with these commands and then
      compiler issues where manually fixed.
      
      find ./* -type f -exec sed -i \
          'N;N;N;N;N;N;N;N;N;N;N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|Ig}' \
          {} +
      find ./* -type f -exec sed -i \
          'N;N;N;N;N;N;N;N;N;N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|Ig}' \
          {} +
      find ./* -type f -exec sed -i \
          'N;N;N;N;N;N;N;N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|Ig}' \
          {} +
      find ./* -type f -exec sed -i \
          'N;N;N;N;N;N;N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|Ig}' \
          {} +
      find ./* -type f -exec sed -i \
          'N;N;N;N;N;N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|Ig}' \
          {} +
      find ./* -type f -exec sed -i \
          'N;N;N;N;N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|Ig}' \
          {} +
      find ./* -type f -exec sed -i \
          'N;N;N;N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|Ig}' \
          {} +
      find ./* -type f -exec sed -i \
          'N;N;N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|Ig}' \
          {} +
      find ./* -type f -exec sed -i \
          'N;N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|Ig}' \
          {} +
      find ./* -type f -exec sed -i \
          'N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|Ig}' \
          {} +
      find ./* -type f -exec sed -i \
          'N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|Ig}' \
          {} +
      
      Some lines where then manually tweaked to pass checkpatch.
      Signed-off-by: 's avatarAlistair Francis <alistair.francis@xilinx.com>
      Reviewed-by: 's avatarThomas Huth <thuth@redhat.com>
      [THH: Changed one missing fprintf into an error_report, too]
      Signed-off-by: 's avatarThomas Huth <thuth@redhat.com>
      bf937a79
    • Alistair Francis's avatar
      Fixes after renaming __FUNCTION__ to __func__ · c94a60cb
      Alistair Francis authored
      Signed-off-by: 's avatarAlistair Francis <alistair.francis@xilinx.com>
      Cc: Eric Blake <eblake@redhat.com>
      Reviewed-by: 's avatarEric Blake <eblake@redhat.com>
      Signed-off-by: 's avatarThomas Huth <thuth@redhat.com>
      c94a60cb
    • Alistair Francis's avatar
      Replace all occurances of __FUNCTION__ with __func__ · a89f364a
      Alistair Francis authored
      Replace all occurs of __FUNCTION__ except for the check in checkpatch
      with the non GCC specific __func__.
      
      One line in hcd-musb.c was manually tweaked to pass checkpatch.
      Signed-off-by: 's avatarAlistair Francis <alistair.francis@xilinx.com>
      Reviewed-by: 's avatarEric Blake <eblake@redhat.com>
      Reviewed-by: 's avatarStefan Hajnoczi <stefanha@redhat.com>
      Reviewed-by: 's avatarAnthony PERARD <anthony.perard@citrix.com>
      Reviewed-by: 's avatarJuan Quintela <quintela@redhat.com>
      Reviewed-by: 's avatarGerd Hoffmann <kraxel@redhat.com>
      [THH: Removed hunks related to pxa2xx_mmci.c (fixed already)]
      Signed-off-by: 's avatarThomas Huth <thuth@redhat.com>
      a89f364a
    • Thomas Huth's avatar
      tests/cpu-plug-test: Test CPU hot-plugging on s390x · 7d8b00fa
      Thomas Huth authored
      CPU hot-plugging on s390x is possible with both, "cpu-add"
      and "device_add", so test both.
      Reviewed-by: 's avatarDavid Hildenbrand <david@redhat.com>
      Signed-off-by: 's avatarThomas Huth <thuth@redhat.com>
      7d8b00fa
    • Thomas Huth's avatar
      tests/cpu-plug-test: Check CPU hot-plugging on ppc64, too · 73a7d31e
      Thomas Huth authored
      Hot plugging on ppc64 is possible via "device_add", too. Unlike x86,
      we must not specify a 'socket-id' and 'thread-id' here, so this needs
      to be done with a separate function that just specifies the 'core-id'
      during the "device_add".
      Reviewed-by: 's avatarDaniel Barboza <danielhb@linux.vnet.ibm.com>
      Tested-by: 's avatarDaniel Barboza <danielhb@linux.vnet.ibm.com>
      Signed-off-by: 's avatarThomas Huth <thuth@redhat.com>
      73a7d31e
    • Thomas Huth's avatar
      tests/cpu-plug-test: Check the CPU hot-plugging with device_add, too · 80b8c0be
      Thomas Huth authored
      Using 'device_add' instead of 'cpu-add' is the new way for
      hot-plugging CPUs, so we should test this regularly, too.
      Reviewed-by: 's avatarDavid Hildenbrand <david@redhat.com>
      Reviewed-by: 's avatarDaniel Henrique Barboza <danielhb@linux.vnet.ibm.com>
      Tested-by: 's avatarDaniel Henrique Barboza <danielhb@linux.vnet.ibm.com>
      Signed-off-by: 's avatarThomas Huth <thuth@redhat.com>
      80b8c0be
    • Thomas Huth's avatar
      tests: Rename pc-cpu-test.c to cpu-plug-test.c · 152e0393
      Thomas Huth authored
      The test will be extended to work on other architectures, too, so let's
      use a more generic name for the file and the functions in here first.
      Reviewed-by: 's avatarPhilippe Mathieu-Daudé <f4bug@amsat.org>
      Reviewed-by: 's avatarDavid Hildenbrand <david@redhat.com>
      Signed-off-by: 's avatarThomas Huth <thuth@redhat.com>
      152e0393
  4. 20 Jan, 2018 13 commits
  5. 19 Jan, 2018 3 commits