1. 22 6月, 2018 15 次提交
    • M
      MAINTAINERS: Update QAPI stanza for commit fb0bc835 · be25fcc4
      Markus Armbruster 提交于
      Commit fb0bc835 moved code from scripts/qapi-*.py to
      scripts/qapi/*.py.  It neglected to update MAINTAINERS: scripts/qapi*
      matches only the former, not the latter.  Do that now.
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Message-Id: <20180620124827.17106-1-armbru@redhat.com>
      Reviewed-by: NEric Blake <eblake@redhat.com>
      be25fcc4
    • M
      qapi/introspect: Eliminate pointless variable in .visit_end() · da112e83
      Markus Armbruster 提交于
      Commit 1a9a507b "qapi-introspect: Hide type names" added local
      variable @jsons to improve sorting, but also removed the sorting.  It
      was part of a big series that went to v8, and it made sense until v2
      or so...
      
      Commit 7d0f982b replaced @jsons by @qlits, preserving the
      uselessness.
      
      Get rid of it.
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Message-Id: <20180620124742.16979-1-armbru@redhat.com>
      Reviewed-by: NMarc-André Lureau <marcandre.lureau@redhat.com>
      da112e83
    • M
      Revert commit d4e5ec87 · 0d6b93de
      Matthias Maier 提交于
      This commit removes the PYTHON_UTF8 workaround. The problem with setting
      
        LC_ALL= LANG=C LC_CTYPE=en_US.UTF-8
      
      is that the en_US.UTF-8 locale might not be available. In this case
      setting above locales results in build errors even though another UTF-8
      locale was originally set [1]. The only stable way of fixing the
      encoding problem is by specifying the encoding in Python, like the
      previous commit does.
      
      [1] https://bugs.gentoo.org/657766Signed-off-by: NArfrever Frehtes Taifersar Arahesis <arfrever.fta@gmail.com>
      Signed-off-by: NMatthias Maier <tamiko@43-1.org>
      Message-Id: <20180618175958.29073-3-armbru@redhat.com>
      Reviewed-by: NEduardo Habkost <ehabkost@redhat.com>
      Reviewed-by: NEric Blake <eblake@redhat.com>
      [Commit message tweaked]
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      0d6b93de
    • M
      qapi: Open files with encoding='utf-8' · de685ae5
      Markus Armbruster 提交于
      Python 2 happily reads UTF-8 files in text mode, but Python 3 requires
      either UTF-8 locale or an explicit encoding passed to open().  Commit
      d4e5ec87 fixed this by setting the en_US.UTF-8 locale.  Falls apart
      when the locale isn't be available.
      
      Matthias Maier and Arfrever Frehtes Taifersar Arahesis proposed to use
      binary mode instead, with manual conversion from bytes to str.  Works,
      but opening with an explicit encoding is simpler, so do that.
      
      Since Python 2's open() doesn't support the encoding parameter, we
      need to suppress it with a version check.
      Reported-by: NArfrever Frehtes Taifersar Arahesis <arfrever.fta@gmail.com>
      Reported-by: NMatthias Maier <tamiko@43-1.org>
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Message-Id: <20180618175958.29073-2-armbru@redhat.com>
      Reviewed-by: NEduardo Habkost <ehabkost@redhat.com>
      Reviewed-by: NEric Blake <eblake@redhat.com>
      de685ae5
    • A
      qapi: remove empty flat union branches and types · 29cd0403
      Anton Nefedov 提交于
      Flat unions may now have uncovered branches, so it is possible to get rid
      of empty types defined for that purpose only.
      Signed-off-by: NAnton Nefedov <anton.nefedov@virtuozzo.com>
      Reviewed-by: NMarkus Armbruster <armbru@redhat.com>
      Message-Id: <1529311206-76847-3-git-send-email-anton.nefedov@virtuozzo.com>
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      29cd0403
    • A
      qapi: allow empty branches in flat unions · 800877bb
      Anton Nefedov 提交于
      It often happens that just a few discriminator values imply extra data in
      a flat union. Existing checks did not make possible to leave other values
      uncovered. Such cases had to be worked around by either stating a dummy
      (empty) type or introducing another (subset) discriminator enumeration.
      
      Both options create redundant entities in qapi files for little profit.
      
      With this patch it is not necessary anymore to add designated union
      fields for every possible value of a discriminator enumeration.
      Signed-off-by: NAnton Nefedov <anton.nefedov@virtuozzo.com>
      Message-Id: <1529311206-76847-2-git-send-email-anton.nefedov@virtuozzo.com>
      Reviewed-by: NMarkus Armbruster <armbru@redhat.com>
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      800877bb
    • M
      tests: Add QDict clone-flatten test · fe170d8b
      Max Reitz 提交于
      This new test verifies that qdict_flatten() does not modify a shallow
      clone of the given QDict.
      Reviewed-by: NEric Blake <eblake@redhat.com>
      Signed-off-by: NMax Reitz <mreitz@redhat.com>
      Message-Id: <20180611205203.2624-8-mreitz@redhat.com>
      Reviewed-by: NMarkus Armbruster <armbru@redhat.com>
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      fe170d8b
    • M
      qdict: Make qdict_flatten() shallow-clone-friendly · bf6e6a37
      Max Reitz 提交于
      In its current form, qdict_flatten() removes all entries from nested
      QDicts that are moved to the root QDict.  It is completely sufficient to
      remove all old entries from the root QDict, however.  If the nested
      dicts have a refcount of 1, this will automatically delete them, too.
      And if they have a greater refcount, we probably do not want to modify
      them in the first place.
      
      The latter observation means that it was currently (in general)
      impossible to qdict_flatten() a shallowly cloned dict because that would
      empty nested QDicts in the original dict as well.  This patch changes
      this, so you can now use qdict_flatten(qdict_shallow_clone(dict)) to get
      a flattened copy without disturbing the original.
      Signed-off-by: NMax Reitz <mreitz@redhat.com>
      Message-Id: <20180611205203.2624-7-mreitz@redhat.com>
      Reviewed-by: NMarkus Armbruster <armbru@redhat.com>
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      bf6e6a37
    • M
      qapi/events: generate event enum in main module · f030ffd3
      Marc-André Lureau 提交于
      The event generator produces an enum, and put it in the last visited
      module. It fits better in the main module, since it's the set of all
      visited events, from all modules.
      Signed-off-by: NMarc-André Lureau <marcandre.lureau@redhat.com>
      Message-Id: <20180321115211.17937-3-marcandre.lureau@redhat.com>
      Reviewed-by: NMarkus Armbruster <armbru@redhat.com>
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      f030ffd3
    • M
      qapi/visit: remove useless prefix argument · a48e7542
      Marc-André Lureau 提交于
      Signed-off-by: NMarc-André Lureau <marcandre.lureau@redhat.com>
      Message-Id: <20180321115211.17937-2-marcandre.lureau@redhat.com>
      Reviewed-by: NMarkus Armbruster <armbru@redhat.com>
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      a48e7542
    • E
      nbd/server: Silence gcc false positive · 45eb6fb6
      Eric Blake 提交于
      The code has a while() loop that always initialized 'end', and
      the loop always executes at least once (as evidenced by the assert()
      just prior to the loop).  But some versions of gcc still complain
      that 'end' is used uninitialized, so silence them.
      Signed-off-by: NEric Blake <eblake@redhat.com>
      Reviewed-by: NPeter Maydell <peter.maydell@linaro.org>
      Message-id: 20180622125814.345274-1-eblake@redhat.com
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      45eb6fb6
    • P
      Merge remote-tracking branch 'remotes/dgilbert/tags/pull-hmp-20180621' into staging · c74b91ac
      Peter Maydell 提交于
      HMP pull 2018-06-21
      
      Minor fixes and reenable preconfig
      
      # gpg: Signature made Thu 21 Jun 2018 17:43:09 BST
      # gpg:                using RSA key 0516331EBC5BFDE7
      # gpg: Good signature from "Dr. David Alan Gilbert (RH2) <dgilbert@redhat.com>"
      # Primary key fingerprint: 45F5 C71B 4A0C B7FB 977A  9FA9 0516 331E BC5B FDE7
      
      * remotes/dgilbert/tags/pull-hmp-20180621:
        hmp: Allow HMP in preconfig state again
        hmp: add exit_preconfig
        hmp: Add commands for preconfig
        qmp: Enable a few commands in preconfig state
        hmp: Restrict auto-complete in preconfig
        hmp: Allow help on preconfig commands
        hmp: Add flag for preconfig commands
        hmp-commands: use long for begin and length in dump-guest-memory
        monitor: report entirety of hmp command on error
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      c74b91ac
    • P
      Merge remote-tracking branch 'remotes/stsquad/tags/pull-tcg-testing-revivial-210618-2' into staging · de44c044
      Peter Maydell 提交于
      Add check-tcg machinary
      
      This restores the ability to run TCG smoke tests by using our docker
      infrastructure to support cross building simple tests. It represents
      the first step to making better cross-architecture testing available
      straight from the source tree ;-)
      
      v2
        - fix quoting of target_compiler
        - make docker.py Py3 safe
        - tweak .travis.yml recipe
        - don't probe docker when HAVE_USER_DOCKER not set
      
      # gpg: Signature made Thu 21 Jun 2018 07:23:45 BST
      # gpg:                using RSA key FBD0DB095A9E2A44
      # gpg: Good signature from "Alex Bennée (Master Work Key) <alex.bennee@linaro.org>"
      # Primary key fingerprint: 6685 AE99 E751 67BC AFC8  DF35 FBD0 DB09 5A9E 2A44
      
      * remotes/stsquad/tags/pull-tcg-testing-revivial-210618-2: (57 commits)
        .travis.yml: add check-tcg test
        tests/docker/Makefile.include: only force SID to NOCACHE if old
        docker: docker.py adding age check command
        tests/Makefile: call sub-makes with SKIP_DOCKER_BUILD=1
        docker: docker.py add check sub-command
        docker: docker.py don't conflate checksums for extra_files
        docker: docker.py use "version" to probe usage
        tests: add top-level make dependency for docker builds
        tests/tcg/i386: extend timeout for runcom test
        tests/tcg: override runners for broken tests
        tests/tcg: add run, diff, and skip helper macros
        tests/Makefile.include: add [build|clean|check]-tcg targets
        Makefile.target: add (clean-/build-)guest-tests targets
        tests/tcg/Makefile: update to be called from Makefile.target
        tests/tcg: enable building for PowerPC
        docker: move debian-powerpc-cross to sid based build
        tests/tcg: enable building for RISCV64
        tests/tcg: enable building for mips64
        tests/tcg: enable building for sparc64
        tests/tcg: enable building for sh4
        ...
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      de44c044
    • P
      Merge remote-tracking branch 'remotes/ericb/tags/pull-nbd-2018-06-20-v2' into staging · 409ef9eb
      Peter Maydell 提交于
      nbd patches for 2018-06-20
      
      Add experimental x-nbd-server-add-bitmap to expose a disabled
      bitmap over NBD, in preparation for a pull model incremental
      backup scheme. Also fix a corner case protocol issue with
      NBD_CMD_BLOCK_STATUS, and add new NBD_CMD_CACHE.
      
      - Eric Blake: tests: Simplify .gitignore
      - Eric Blake: nbd/server: Reject 0-length block status request
      - Vladimir Sementsov-Ogievskiy: 0/6 NBD export bitmaps
      - Vladimir Sementsov-Ogievskiy: nbd/server: introduce NBD_CMD_CACHE
      
      # gpg: Signature made Thu 21 Jun 2018 15:53:55 BST
      # gpg:                using RSA key A7A16B4A2527436A
      # gpg: Good signature from "Eric Blake <eblake@redhat.com>"
      # gpg:                 aka "Eric Blake (Free Software Programmer) <ebb9@byu.net>"
      # gpg:                 aka "[jpeg image of size 6874]"
      # Primary key fingerprint: 71C2 CC22 B1C4 6029 27D2  F3AA A7A1 6B4A 2527 436A
      
      * remotes/ericb/tags/pull-nbd-2018-06-20-v2:
        nbd/server: introduce NBD_CMD_CACHE
        docs/interop: add nbd.txt
        qapi: new qmp command nbd-server-add-bitmap
        nbd/server: implement dirty bitmap export
        nbd/server: add nbd_meta_empty_or_pattern helper
        nbd/server: refactor NBDExportMetaContexts
        nbd/server: fix trace
        nbd/server: Reject 0-length block status request
        tests: Simplify .gitignore
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      409ef9eb
    • P
      Merge remote-tracking branch 'remotes/rth/tags/pull-tcg-20180615' into staging · 33836a73
      Peter Maydell 提交于
      TCG patch queue:
      
      Workaround macos assembler lossage.
      Eliminate tb_lock.
      Fix TB code generation overflow.
      
      # gpg: Signature made Fri 15 Jun 2018 20:40:56 BST
      # gpg:                using RSA key 64DF38E8AF7E215F
      # gpg: Good signature from "Richard Henderson <richard.henderson@linaro.org>"
      # Primary key fingerprint: 7A48 1E78 868B 4DB6 A85A  05C0 64DF 38E8 AF7E 215F
      
      * remotes/rth/tags/pull-tcg-20180615:
        tcg: Reduce max TB opcode count
        tcg: remove tb_lock
        translate-all: remove tb_lock mention from cpu_restore_state_from_tb
        cputlb: remove tb_lock from tlb_flush functions
        translate-all: protect TB jumps with a per-destination-TB lock
        translate-all: discard TB when tb_link_page returns an existing matching TB
        translate-all: introduce assert_no_pages_locked
        translate-all: add page_locked assertions
        translate-all: use per-page locking in !user-mode
        translate-all: move tb_invalidate_phys_page_range up in the file
        translate-all: work page-by-page in tb_invalidate_phys_range_1
        translate-all: remove hole in PageDesc
        translate-all: make l1_map lockless
        translate-all: iterate over TBs in a page with PAGE_FOR_EACH_TB
        tcg: move tb_ctx.tb_phys_invalidate_count to tcg_ctx
        tcg: track TBs with per-region BST's
        qht: return existing entry when qht_insert fails
        qht: require a default comparison function
        tcg/i386: Use byte form of xgetbv instruction
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      33836a73
  2. 21 6月, 2018 25 次提交