1. 20 9月, 2017 34 次提交
  2. 19 9月, 2017 6 次提交
    • P
      Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into staging · 7ec6a364
      Peter Maydell 提交于
      * warning improvements (Alistair)
      * KVM code cleanup (David)
      * scsi-block support for rerror/werror (Fam)
      * support for >64 vCPUs in Windows (Gonglei)
      * SCSI fix (Hannes)
      * SSE bugfixes (Joseph)
      * SmartOS compilation fixes (Kamil)
      * Hyper-V frequency MSR support (Ladi)
      * move more files to accel/tcg (Philippe, Thomas)
      * multiboot validation (PJP)
      * virtqueue size configuration for virtio-scsi (Richard)
      * Hyper-V header cleanup (Roman)
      * Maintainer email update (Guangrong)
      * checkpatch.pl --branch (Daniel), fixes (Greg)
      * introducing scsi/ (me)
      
      # gpg: Signature made Tue 19 Sep 2017 15:21:26 BST
      # gpg:                using RSA key 0xBFFBD25F78C7AE83
      # gpg: Good signature from "Paolo Bonzini <bonzini@gnu.org>"
      # gpg:                 aka "Paolo Bonzini <pbonzini@redhat.com>"
      # Primary key fingerprint: 46F5 9FBD 57D6 12E7 BFD4  E2F7 7E15 100C CD36 69B1
      #      Subkey fingerprint: F133 3857 4B66 2389 866C  7682 BFFB D25F 78C7 AE83
      
      * remotes/bonzini/tags/for-upstream: (51 commits)
        docker: fix creation of archives
        default-configs: Replace $(and ...) with $(call land, ...)
        osdep.h: Prohibit disabling assert() in supported builds
        checkpatch: add hwaddr to @typeList
        accel/hax: move hax-stub.c to accel/stubs/
        target/i386: fix "info mem" for LA57 mode
        scripts: let checkpatch.pl process an entire GIT branch
        update-linux-headers: prepare for hyperv.h removal
        hyperv: add header with protocol definitions
        i386/cpu/hyperv: support over 64 vcpus for windows guests
        Convert remaining single line fprintf() to warn_report()
        Makefile: Remove libqemustub.a
        ptimer-test: do not link to libqemustub.a/libqemuutil.a
        target/mips: Convert VM clock update prints to warn_report
        General warn report fixups
        Convert multi-line fprintf() to warn_report()
        Convert single line fprintf(.../n) to warn_report()
        Convert remaining error_report() to warn_report()
        hw/i386: Improve some of the warning messages
        test-qga: add missing qemu-ga tool dependency
        ...
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      7ec6a364
    • P
      docker: fix creation of archives · 7437866b
      Paolo Bonzini 提交于
      The pixman submodule does not exist anymore, and its removal broke
      docker-based tests.  Fix it.
      
      Cc: Fam Zheng <famz@redhat.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      7437866b
    • T
      default-configs: Replace $(and ...) with $(call land, ...) · d321e6d5
      Thomas Huth 提交于
      Using $(and ...) is dangerous here: It only works as long as the first
      argument is set to 'y' or completely unset. It does not work if the
      first argument is set to 'n' for example. Let's use the "land" make
      function instead which has been written explicitely for this purpose.
      Signed-off-by: NThomas Huth <thuth@redhat.com>
      Message-Id: <1505759538-15365-1-git-send-email-thuth@redhat.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      d321e6d5
    • E
      osdep.h: Prohibit disabling assert() in supported builds · 262a69f4
      Eric Blake 提交于
      We already have several files that knowingly require assert()
      to work, sometimes because refactoring the code for proper
      error handling has not been tackled yet; there are probably
      other files that have a similar situation but with no comments
      documenting the same.  In fact, we have places in migration
      that handle untrusted input with assertions, where disabling
      the assertions risks a worse security hole than the current
      behavior of losing the guest to SIGABRT when migration fails
      because of the assertion.  Promote our current per-file
      safety-valve to instead be project-wide, and expand it to also
      cover glib's g_assert().
      
      Note that we do NOT want to encourage 'assert(side-effects);'
      (that is a bad practice that prevents copy-and-paste of code to
      other projects that CAN disable assertions; plus it costs
      unnecessary reviewer mental cycles to remember whether a project
      special-cases the crippling of asserts); and we would LIKE to
      fix migration to not rely on asserts (but that takes a big code
      audit).  But in the meantime, we DO want to send a message
      that anyone that disables assertions has to tweak code in order
      to compile, making it obvious that they are taking on additional
      risk that we are not going to support.  At the same time, leave
      comments mentioning NDEBUG in files that we know still need to
      be scrubbed, so there is at least something to grep for.
      
      It would be possible to come up with some other mechanism for
      doing runtime checking by default, but which does not abort
      the program on failure, while leaving side effects in place
      (unlike how crippling assert() avoids even the side effects),
      perhaps under the name q_verify(); but it was not deemed worth
      the effort (developers should not have to learn a replacement
      when the standard C macro works just fine, and it would be a lot
      of churn for little gain).  The patch specifically uses #error
      rather than #warn so that a user is forced to tweak the header
      to acknowledge the issue, even when not using a -Werror
      compilation.
      Signed-off-by: NEric Blake <eblake@redhat.com>
      Reviewed-by: NPhilippe Mathieu-Daudé <f4bug@amsat.org>
      Reviewed-by: NThomas Huth <thuth@redhat.com>
      
      Message-Id: <20170911211320.25385-1-eblake@redhat.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      262a69f4
    • G
      checkpatch: add hwaddr to @typeList · 825bfa00
      Greg Kurz 提交于
      The script doesn't know about all possible types and learn them as
      it parses the code. If it reaches a line with a type cast but the
      type isn't known yet, it is misinterpreted as an identifier.
      
      For example the following line:
      
          foo = (hwaddr) -1;
      
      results in the following false-positive to be reported:
      
      ERROR: spaces required around that '-' (ctx:VxV)
      
      Let's add this standard QEMU type to the list of pre-known types.
      Signed-off-by: NGreg Kurz <groug@kaod.org>
      Message-Id: <150538015789.8149.10902725348939486674.stgit@bahia.lan>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      825bfa00
    • P
      accel/hax: move hax-stub.c to accel/stubs/ · 4c44a007
      Philippe Mathieu-Daudé 提交于
      Suggested-by: NPaolo Bonzini <pbonzini@redhat.com>
      Signed-off-by: NPhilippe Mathieu-Daudé <f4bug@amsat.org>
      Message-Id: <20170913221149.30382-1-f4bug@amsat.org>
      Reviewed-by: NStefan Weil <sw@weilnetz.de>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      Signed-off-by: NPhilippe Mathieu-Daudé <f4bug@amsat.org>
      4c44a007