1. 22 2月, 2016 8 次提交
  2. 20 2月, 2016 23 次提交
  3. 19 2月, 2016 9 次提交
    • P
      Merge remote-tracking branch 'remotes/armbru/tags/pull-error-2016-02-19' into staging · 1b3337bb
      Peter Maydell 提交于
      Error reporting patches for 2016-02-19
      
      # gpg: Signature made Fri 19 Feb 2016 12:47:50 GMT using RSA key ID EB918653
      # gpg: Good signature from "Markus Armbruster <armbru@redhat.com>"
      # gpg:                 aka "Markus Armbruster <armbru@pond.sub.org>"
      
      * remotes/armbru/tags/pull-error-2016-02-19:
        vl: Clean up machine selection in main().
        vl: Set error location when parsing memory options
        replay: Set error location properly when parsing options
        vl: Reset location after handling command-line arguments
        vl.c: Fix regression in machine error message
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      1b3337bb
    • P
      Merge remote-tracking branch 'remotes/armbru/tags/pull-qapi-2016-02-19' into staging · 5cfffc30
      Peter Maydell 提交于
      QAPI patches for 2016-02-19
      
      # gpg: Signature made Fri 19 Feb 2016 10:10:18 GMT using RSA key ID EB918653
      # gpg: Good signature from "Markus Armbruster <armbru@redhat.com>"
      # gpg:                 aka "Markus Armbruster <armbru@pond.sub.org>"
      
      * remotes/armbru/tags/pull-qapi-2016-02-19:
        qapi: Change visit_start_implicit_struct to visit_start_alternate
        qapi: Don't box branches of flat unions
        qapi: Don't box struct branch of alternate
        qapi-visit: Use common idiom in gen_visit_fields_decl()
        qapi: Emit structs used as variants in topological order
        qapi: Adjust layout of FooList types
        qapi-visit: Less indirection in visit_type_Foo_fields()
        qapi-visit: Unify struct and union visit
        qapi: Visit variants in visit_type_FOO_fields()
        qapi-visit: Simplify how we visit common union members
        qapi: Add tests of complex objects within alternate
        qapi: Forbid 'any' inside an alternate
        qapi: Forbid empty unions and useless alternates
        qapi: Simplify excess input reporting in input visitors
        qapi-visit: Honor prefix of discriminator enum
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      5cfffc30
    • M
      vl: Clean up machine selection in main(). · 7580f231
      Markus Armbruster 提交于
      We set machine_class to the default first, and update it to the real
      one later.  Any use of machine_class in between is almost certainly
      wrong (there are no such uses right now).  Set it once and for all
      instead.
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Reviewed-by: NLaszlo Ersek <lersek@redhat.com>
      Reviewed-by: NMarcel Apfelbaum <marcel@redhat.com>
      7580f231
    • E
      vl: Set error location when parsing memory options · bbe2d25c
      Eduardo Habkost 提交于
      Set error location so the error_report() calls will show
      appropriate command-line argument or config file info.
      Signed-off-by: NEduardo Habkost <ehabkost@redhat.com>
      Message-Id: <1455303747-19776-5-git-send-email-ehabkost@redhat.com>
      Reviewed-by: NLaszlo Ersek <lersek@redhat.com>
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      bbe2d25c
    • E
      replay: Set error location properly when parsing options · 890ad550
      Eduardo Habkost 提交于
      Set error location so the error_report() calls will show
      appropriate command-line argument or config file info.
      Signed-off-by: NEduardo Habkost <ehabkost@redhat.com>
      Message-Id: <1455303747-19776-4-git-send-email-ehabkost@redhat.com>
      Reviewed-by: NLaszlo Ersek <lersek@redhat.com>
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      890ad550
    • E
      vl: Reset location after handling command-line arguments · 43fa1e0b
      Eduardo Habkost 提交于
      After looping through all command-line arguments, error location
      info becomes obsolete, and any function calling error_report()
      will print misleading information. This breaks error reporting
      for some option handling, like:
      
        $ qemu-system-x86_64 -icount rr=x -vnc :0
        qemu-system-x86_64: -vnc :0: Invalid icount rr option: x
      
        $ qemu-system-x86_64 -m size= -vnc :0
        qemu-system-x86_64: -vnc :0: missing 'size' option value
      
      Fix this by resetting location info as soon as we exit the
      command-line handling loop.
      
      With this, replay_configure() and set_memory_options() won't
      print any location info yet, but at least they won't print
      incorrect information.
      Signed-off-by: NEduardo Habkost <ehabkost@redhat.com>
      Message-Id: <1455303747-19776-3-git-send-email-ehabkost@redhat.com>
      Reviewed-by: NLaszlo Ersek <lersek@redhat.com>
      ["Do not insert code here" comment added to prevent regressions]
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      43fa1e0b
    • M
      vl.c: Fix regression in machine error message · 34f405ae
      Marcel Apfelbaum 提交于
      Commit e1ce0c3c (vl.c: fix regression when reading machine type
      from config file) fixed the error message when the machine type
      was supplied inside the config file. However now the option name
      is not displayed correctly if the error happens when the machine
      is specified at command line.
      
      Running
          ./x86_64-softmmu/qemu-system-x86_64 -M q35-1.5 -redir tcp:8022::22
      will result in the error message:
          qemu-system-x86_64: -redir tcp:8022::22: unsupported machine type
          Use -machine help to list supported machines
      
      Fixed it by restoring the error location and also extracted the code
      dealing with machine options into a separate function.
      Reported-by: NMichael S. Tsirkin <mst@redhat.com>
      Reviewed-by: NLaszlo Ersek <lersek@redhat.com>
      Signed-off-by: NMarcel Apfelbaum <marcel@redhat.com>
      Reviewed-by: NEduardo Habkost <ehabkost@redhat.com>
      Signed-off-by: NEduardo Habkost <ehabkost@redhat.com>
      Message-Id: <1455303747-19776-2-git-send-email-ehabkost@redhat.com>
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      34f405ae
    • P
      Merge remote-tracking branch 'remotes/mst/tags/for_upstream' into staging · 09125c5e
      Peter Maydell 提交于
      vhost, virtio, pci, pxe
      
      Fixes all over the place.
      New tests for pxe.
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      
      # gpg: Signature made Thu 18 Feb 2016 15:46:39 GMT using RSA key ID D28D5469
      # gpg: Good signature from "Michael S. Tsirkin <mst@kernel.org>"
      # gpg:                 aka "Michael S. Tsirkin <mst@redhat.com>"
      
      * remotes/mst/tags/for_upstream:
        tests/vhost-user-bridge: add scattering of incoming packets
        vhost-user interrupt management fixes
        rules: filter out irrelevant files
        change type of pci_bridge_initfn() to void
        dec: convert to realize()
        tests: add pxe e1000 and virtio-pci tests
        msix: fix msix_vector_masked
        virtio: optimize virtio_access_is_big_endian() for little-endian targets
        vhost: simplify vhost_needs_vring_endian()
        vhost: move virtio 1.0 check to cross-endian helper
        virtio: move cross-endian helper to vhost
        vhost-net: revert support of cross-endian vnet headers
        virtio-net: use the backend cross-endian capabilities
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      09125c5e
    • E
      qapi: Change visit_start_implicit_struct to visit_start_alternate · dbf11922
      Eric Blake 提交于
      After recent changes, the only remaining use of
      visit_start_implicit_struct() is for allocating the space needed
      when visiting an alternate.  Since the term 'implicit struct' is
      hard to explain, rename the function to its current usage.  While
      at it, we can merge the functionality of visit_get_next_type()
      into the same function, making it more like visit_start_struct().
      
      Generated code is now slightly smaller:
      
      | {
      |     Error *err = NULL;
      |
      |-    visit_start_implicit_struct(v, (void**) obj, sizeof(BlockdevRef), &err);
      |+    visit_start_alternate(v, name, (GenericAlternate **)obj, sizeof(**obj),
      |+                          true, &err);
      |     if (err) {
      |         goto out;
      |     }
      |-    visit_get_next_type(v, name, &(*obj)->type, true, &err);
      |-    if (err) {
      |-        goto out_obj;
      |-    }
      |     switch ((*obj)->type) {
      |     case QTYPE_QDICT:
      |         visit_start_struct(v, name, NULL, 0, &err);
      ...
      |     }
      |-out_obj:
      |-    visit_end_implicit_struct(v);
      |+    visit_end_alternate(v);
      | out:
      |     error_propagate(errp, err);
      | }
      Signed-off-by: NEric Blake <eblake@redhat.com>
      Message-Id: <1455778109-6278-16-git-send-email-eblake@redhat.com>
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      dbf11922