1. 25 9月, 2018 1 次提交
    • M
      json: Fix lexer for lookahead character beyond '\x7F' · 2a96042a
      Markus Armbruster 提交于
      The lexer fails to end a valid token when the lookahead character is
      beyond '\x7F'.  For instance, input
      
          true\xC2\xA2
      
      produces the tokens
      
          JSON_ERROR     true\xC2
          JSON_ERROR     \xA2
      
      This should be
      
          JSON_KEYWORD   true
          JSON_ERROR     \xC2
          JSON_ERROR     \xA2
      
      instead.
      
      The culprit is
      
          #define TERMINAL(state) [0 ... 0x7F] = (state)
      
      It leaves [0x80..0xFF] zero, i.e. IN_ERROR.  Has always been broken.
      Fix it to initialize the complete array.
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Reviewed-by: NEric Blake <eblake@redhat.com>
      Message-Id: <20180831075841.13363-2-armbru@redhat.com>
      2a96042a
  2. 24 9月, 2018 8 次提交
    • P
      Merge remote-tracking branch 'remotes/kraxel/tags/vga-20180903-pull-request' into staging · d5a51573
      Peter Maydell 提交于
      vga: virtio reset fix, virtio iommu support.
      
      # gpg: Signature made Mon 03 Sep 2018 07:57:32 BST
      # gpg:                using RSA key 4CB6D8EED3E87138
      # gpg: Good signature from "Gerd Hoffmann (work) <kraxel@redhat.com>"
      # gpg:                 aka "Gerd Hoffmann <gerd@kraxel.org>"
      # gpg:                 aka "Gerd Hoffmann (private) <kraxel@gmail.com>"
      # Primary key fingerprint: A032 8CFF B93A 17A7 9901  FE7D 4CB6 D8EE D3E8 7138
      
      * remotes/kraxel/tags/vga-20180903-pull-request:
        virtio-gpu: add iommu support
        virtio-gpu: pass down VirtIOGPU pointer to a bunch of functions
        use dpy_gfx_update_full
        Revert "virtio-gpu: fix crashes upon warm reboot with vga mode"
        virtio-vga: fix reset
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      d5a51573
    • P
      Merge remote-tracking branch 'remotes/armbru/tags/pull-monitor-2018-09-01' into staging · efd1d522
      Peter Maydell 提交于
      Monitor patches for 2018-09-01
      
      # gpg: Signature made Sat 01 Sep 2018 12:06:52 BST
      # gpg:                using RSA key 3870B400EB918653
      # gpg: Good signature from "Markus Armbruster <armbru@redhat.com>"
      # gpg:                 aka "Markus Armbruster <armbru@pond.sub.org>"
      # Primary key fingerprint: 354B C8B3 D7EB 2A6B 6867  4E5F 3870 B400 EB91 8653
      
      * remotes/armbru/tags/pull-monitor-2018-09-01:
        monitor: no need to save need_resume
        Revert "qmp: isolate responses into io thread"
        qmp: constify qmp_is_oob()
        monitor: consitify qmp_send_response() QDict argument
        monitor: accept input on resume
        monitor: simplify monitor_qmp_setup_handlers_bh
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      efd1d522
    • P
      Merge remote-tracking branch 'remotes/xanclic/tags/pull-block-2018-08-31-v2' into staging · d6f71af6
      Peter Maydell 提交于
      Block patches:
      - (Block) job exit refactoring, part 1
        (removing job_defer_to_main_loop())
      - test-bdrv-drain leak fix
      
      # gpg: Signature made Fri 31 Aug 2018 15:30:33 BST
      # gpg:                using RSA key F407DB0061D5CF40
      # gpg: Good signature from "Max Reitz <mreitz@redhat.com>"
      # Primary key fingerprint: 91BE B60A 30DB 3E88 57D1  1829 F407 DB00 61D5 CF40
      
      * remotes/xanclic/tags/pull-block-2018-08-31-v2:
        jobs: remove job_defer_to_main_loop
        jobs: remove ret argument to job_completed; privatize it
        block/backup: make function variables consistently named
        jobs: utilize job_exit shim
        block/mirror: utilize job_exit shim
        block/commit: utilize job_exit shim
        jobs: add exit shim
        jobs: canonize Error object
        jobs: change start callback to run callback
        tests: fix bdrv-drain leak
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      d6f71af6
    • P
      Revert "tests: add qmp/qom-set-without-value test" · 539c251b
      Peter Maydell 提交于
      Markus spotted some issues with this new test case which
      unfortunately I didn't notice had been flagged until after
      I'd applied the pull request. Revert the relevant commit.
      
      This reverts commit 2b70ea92.
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      539c251b
    • P
      Merge remote-tracking branch... · 2dff7552
      Peter Maydell 提交于
      Merge remote-tracking branch 'remotes/mcayland/tags/qemu-openbios.for-upstream-20180831' into staging
      
      qemu-openbios.for-upstream queue
      
      # gpg: Signature made Fri 31 Aug 2018 12:26:55 BST
      # gpg:                using RSA key 5BC2C56FAE0F321F
      # gpg: Good signature from "Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>"
      # Primary key fingerprint: CC62 1AB9 8E82 200D 915C  C9C4 5BC2 C56F AE0F 321F
      
      * remotes/mcayland/tags/qemu-openbios.for-upstream-20180831:
        Update OpenBIOS images to a1280807 built from submodule.
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      2dff7552
    • P
      Merge remote-tracking branch 'remotes/huth-gitlab/tags/pull-request-2018-08-31' into staging · 09d8277e
      Peter Maydell 提交于
      Removal of deprecated options and improvements for the qtests
      
      # gpg: Signature made Fri 31 Aug 2018 09:10:23 BST
      # gpg:                using RSA key 2ED9D774FE702DB5
      # 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-gitlab/tags/pull-request-2018-08-31:
        tests: add a qmp success-response test
        tests: add qmp/qom-set-without-value test
        tests: add qmp/object-add-without-props test
        tests: add qmp_assert_error_class()
        tests/libqos: Utilize newer glib spawn check
        net: Remove the deprecated -tftp, -bootp, -redir and -smb options
        Remove the deprecated options -startdate, -localtime and -rtc-td-hack
        Remove the deprecated -nodefconfig option
        Remove the deprecated -balloon option
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      09d8277e
    • P
      Merge remote-tracking branch 'remotes/cohuck/tags/s390x-20180829' into staging · 2fde22f8
      Peter Maydell 提交于
      - various fixes and improvements in the tcg code
      - split off the individual virtio-ccw devices into separate files
      
      # gpg: Signature made Wed 29 Aug 2018 10:38:03 BST
      # gpg:                using RSA key DECF6B93C6F02FAF
      # gpg: Good signature from "Cornelia Huck <conny@cornelia-huck.de>"
      # gpg:                 aka "Cornelia Huck <huckc@linux.vnet.ibm.com>"
      # gpg:                 aka "Cornelia Huck <cornelia.huck@de.ibm.com>"
      # gpg:                 aka "Cornelia Huck <cohuck@kernel.org>"
      # gpg:                 aka "Cornelia Huck <cohuck@redhat.com>"
      # Primary key fingerprint: C3D0 D66D C362 4FF6 A8C0  18CE DECF 6B93 C6F0 2FAF
      
      * remotes/cohuck/tags/s390x-20180829:
        target/s390x: use regular spaces in translate.c
        hw/s390x: Move virtio-ccw-blk code to a separate file
        hw/s390x: Move virtio-ccw-net code to a separate file
        hw/s390x: Move virtio-ccw-input code to a separate file
        hw/s390x: Move virtio-ccw-gpu code to a separate file
        hw/s390x: Move vhost-vsock-ccw code to a separate file
        hw/s390x: Move virtio-ccw-crypto code to a separate file
        hw/s390x: Move virtio-ccw-9p code to a separate file
        hw/s390x: Move virtio-ccw-rng code to a separate file
        hw/s390x: Move virtio-ccw-scsi code to a separate file
        hw/s390x: Move virtio-ccw-balloon code to a separate file
        hw/s390x: Move virtio-ccw-serial code to a separate file
        hw/s390x/virtio-ccw: Consolidate calls to virtio_ccw_unrealize()
        target/s390x: fix PACK reading 1 byte less and writing 1 byte more
        target/s390x: add EX support for TRT and TRTR
        target/s390x: fix IPM polluting irrelevant bits
        target/s390x: fix CSST decoding and runtime alignment check
        target/s390x: add BAL and BALR instructions
        tests/tcg: add a simple s390x test
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      2fde22f8
    • P
      Merge remote-tracking branch 'remotes/armbru/tags/pull-qapi-2018-08-28' into staging · 850a8242
      Peter Maydell 提交于
      QAPI patches for 2018-08-28
      
      # gpg: Signature made Tue 28 Aug 2018 17:23:32 BST
      # gpg:                using RSA key 3870B400EB918653
      # gpg: Good signature from "Markus Armbruster <armbru@redhat.com>"
      # gpg:                 aka "Markus Armbruster <armbru@pond.sub.org>"
      # Primary key fingerprint: 354B C8B3 D7EB 2A6B 6867  4E5F 3870 B400 EB91 8653
      
      * remotes/armbru/tags/pull-qapi-2018-08-28:
        qapi: Add comments to aid debugging generated introspection
        qapi: Minor introspect.py cleanups
        qapi: Update docs for generator changes since commit 9ee86b85
        qapi: Emit a blank line before dummy declaration
        qapi: Drop qapi_event_send_FOO()'s Error ** argument
        qapi: Fix build_params() for empty parameter list
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      850a8242
  3. 03 9月, 2018 2 次提交
  4. 31 8月, 2018 20 次提交
  5. 30 8月, 2018 7 次提交
  6. 29 8月, 2018 2 次提交
    • M
      monitor: accept input on resume · 8af6bb14
      Marc-André Lureau 提交于
      A chardev may stop trying to write if the associated can_read()
      callback returned 0. This happens when the monitor is suspended.
      The frontend is supposed to call qemu_chr_fe_accept_input() when it is
      ready to accept data again.
      
      An issue was observed with a spice port: pending commands may be
      delayed, as the chardev is not flushed. Most chardev don't use the
      accept_input() callback, and instead check regularly if they can
      write. The ones that do use it are braille, mux, msmouse,
      spice (abstract), spicevmc, spiceport, wctablet.
      Signed-off-by: NMarc-André Lureau <marcandre.lureau@redhat.com>
      Message-Id: <20180817173752.19136-1-marcandre.lureau@redhat.com>
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      8af6bb14
    • E
      qapi: Add comments to aid debugging generated introspection · 8c643361
      Eric Blake 提交于
      We consciously chose in commit 1a9a507b to hide QAPI type names
      from the introspection output on the wire, but added a command
      line option -u to unmask the type name when doing a debug build.
      The unmask option still remains useful to some other forms of
      automated analysis, so it will not be removed; however, when it
      is not in use, the generated .c file can be hard to read.  At
      the time when we first introduced masking, the generated file
      consisted only of a monolithic C string, so there was no clean
      way to inject any comments.
      
      Later, in commit 7d0f982b, we switched the generation to output
      a QLit object, in part to make it easier for future addition of
      conditional compilation.  In fact, commit d626b6c1 took advantage
      of this by passing a tuple instead of a bare object for encoding
      the output of conditionals.  By extending that tuple, we can now
      interject strategic comments.
      
      For now, type name debug aid comments are only output once per
      meta-type, rather than at all uses of the number used to encode
      the type within the introspection data.  But this is still a lot
      more convenient than having to regenerate the file with the
      unmask operation temporarily turned on - merely search the
      generated file for '"NNN" =' to learn the corresponding source
      name and associated definition of type NNN.
      
      The generated qapi-introspect.c changes only with the addition
      of comments, such as:
      
      | @@ -14755,6 +15240,7 @@
      |          { "name", QLIT_QSTR("[485]"), },
      |          {}
      |      })),
      | +    /* "485" = QCryptoBlockInfoLUKSSlot */
      |      QLIT_QDICT(((QLitDictEntry[]) {
      |          { "members", QLIT_QLIST(((QLitObject[]) {
      |              QLIT_QDICT(((QLitDictEntry[]) {
      Signed-off-by: NEric Blake <eblake@redhat.com>
      Message-Id: <20180827213943.33524-3-eblake@redhat.com>
      Reviewed-by: NMarkus Armbruster <armbru@redhat.com>
      [Rebased, update to qapi-code-gen.txt corrected]
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      8c643361