1. 03 3月, 2018 1 次提交
  2. 13 2月, 2018 2 次提交
  3. 09 2月, 2018 5 次提交
  4. 23 1月, 2018 2 次提交
  5. 22 12月, 2017 1 次提交
  6. 19 12月, 2017 8 次提交
  7. 05 9月, 2017 1 次提交
  8. 04 9月, 2017 4 次提交
  9. 24 7月, 2017 1 次提交
    • M
      block: Use JSON null instead of "" to disable backing file · c42e8742
      Markus Armbruster 提交于
      BlockdevRef is an alternate of BlockdevOptions (inline definition) and
      str (reference to an existing block device by name).  BlockdevRef
      value "" is special: "no block device should be referenced."  It's
      actually interpreted that way in just one place: optional member
      @backing of COW formats.  Semantics:
      
      * Present means "use this block device" as backing storage
      
      * Absent means "default to the one stored in the image"
      
      * Except "" means "don't use backing storage at all"
      
      The first two are perfectly normal: when the parameter is absent, it
      defaults to an implied value, but the value's meaning is the same.
      
      The third one overloads the parameter with a second meaning.  The
      overloading is *implicit*, i.e. it's not visible in the types.  Works
      here, because "" is not a value block device ID.
      
      Pressing argument values the schema accepts, but are semantically
      invalid, into service to mean "do something else entirely" is not
      general, as suitable invalid values need not exist.  I also find it
      ugly.
      
      To clean this up, we could add a separate flag argument to suppress
      @backing, or add a distinct value to @backing.  This commit implements
      the latter: add JSON null to the values of @backing, deprecate "".
      
      Because we're so close to the 2.10 freeze, implement it in the
      stupidest way possible: have qmp_blockdev_add() rewrite null to ""
      before anything else can see the null.  Works, because BlockdevRef
      occurs only within arguments of blockdev-add.  The proper way to do it
      would be rewriting "" to null, preferably in a cleaner way, but that
      requires fixing up code to work with null.  Add a TODO comment for
      that.
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Reviewed-by: NDaniel P. Berrange <berrange@redhat.com>
      Acked-by: NKevin Wolf <kwolf@redhat.com>
      Reviewed-by: NEric Blake <eblake@redhat.com>
      c42e8742
  10. 18 7月, 2017 1 次提交
  11. 13 7月, 2017 1 次提交
    • A
      Convert error_report() to warn_report() · 3dc6f869
      Alistair Francis 提交于
      Convert all uses of error_report("warning:"... to use warn_report()
      instead. This helps standardise on a single method of printing warnings
      to the user.
      
      All of the warnings were changed using these two commands:
          find ./* -type f -exec sed -i \
            's|error_report(".*warning[,:] |warn_report("|Ig' {} +
      
      Indentation fixed up manually afterwards.
      
      The test-qdev-global-props test case was manually updated to ensure that
      this patch passes make check (as the test cases are case sensitive).
      Signed-off-by: NAlistair Francis <alistair.francis@xilinx.com>
      Suggested-by: NThomas Huth <thuth@redhat.com>
      Cc: Jeff Cody <jcody@redhat.com>
      Cc: Kevin Wolf <kwolf@redhat.com>
      Cc: Max Reitz <mreitz@redhat.com>
      Cc: Ronnie Sahlberg <ronniesahlberg@gmail.com>
      Cc: Paolo Bonzini <pbonzini@redhat.com>
      Cc: Peter Lieven <pl@kamp.de>
      Cc: Josh Durgin <jdurgin@redhat.com>
      Cc: "Richard W.M. Jones" <rjones@redhat.com>
      Cc: Markus Armbruster <armbru@redhat.com>
      Cc: Peter Crosthwaite <crosthwaite.peter@gmail.com>
      Cc: Richard Henderson <rth@twiddle.net>
      Cc: "Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com>
      Cc: Greg Kurz <groug@kaod.org>
      Cc: Rob Herring <robh@kernel.org>
      Cc: Peter Maydell <peter.maydell@linaro.org>
      Cc: Peter Chubb <peter.chubb@nicta.com.au>
      Cc: Eduardo Habkost <ehabkost@redhat.com>
      Cc: Marcel Apfelbaum <marcel@redhat.com>
      Cc: "Michael S. Tsirkin" <mst@redhat.com>
      Cc: Igor Mammedov <imammedo@redhat.com>
      Cc: David Gibson <david@gibson.dropbear.id.au>
      Cc: Alexander Graf <agraf@suse.de>
      Cc: Gerd Hoffmann <kraxel@redhat.com>
      Cc: Jason Wang <jasowang@redhat.com>
      Cc: Marcelo Tosatti <mtosatti@redhat.com>
      Cc: Christian Borntraeger <borntraeger@de.ibm.com>
      Cc: Cornelia Huck <cohuck@redhat.com>
      Cc: Stefan Hajnoczi <stefanha@redhat.com>
      Acked-by: NDavid Gibson <david@gibson.dropbear.id.au>
      Acked-by: NGreg Kurz <groug@kaod.org>
      Acked-by: NCornelia Huck <cohuck@redhat.com>
      Reviewed-by: NStefan Hajnoczi <stefanha@redhat.com>
      Reviewed by: Peter Chubb <peter.chubb@data61.csiro.au>
      Acked-by: NMax Reitz <mreitz@redhat.com>
      Acked-by: NMarcel Apfelbaum <marcel@redhat.com>
      Message-Id: <e1cfa2cd47087c248dd24caca9c33d9af0c499b0.1499866456.git.alistair.francis@xilinx.com>
      Reviewed-by: NMarkus Armbruster <armbru@redhat.com>
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      3dc6f869
  12. 11 7月, 2017 7 次提交
  13. 10 7月, 2017 1 次提交
  14. 20 6月, 2017 1 次提交
  15. 16 6月, 2017 3 次提交
  16. 09 6月, 2017 1 次提交