1. 02 6月, 2017 3 次提交
  2. 01 6月, 2017 6 次提交
    • P
      Merge remote-tracking branch 'remotes/armbru/tags/pull-qapi-2017-05-31' into staging · 43771d5d
      Peter Maydell 提交于
      QAPI patches for 2017-05-31
      
      # gpg: Signature made Wed 31 May 2017 18:06:39 BST
      # gpg:                using RSA key 0x3870B400EB918653
      # 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-2017-05-31:
        qapi: Reject alternates that can't work with keyval_parse()
        tests/qapi-schema: Avoid 'str' in alternate test cases
        qapi: Document visit_type_any() issues with keyval input
        qobject-input-visitor: Reject non-finite numbers with keyval
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      43771d5d
    • P
      Merge remote-tracking branch 'remotes/riku/tags/pull-linux-user-20170531' into staging · c077a998
      Peter Maydell 提交于
      Misc linux-user updates
      
      # gpg: Signature made Wed 31 May 2017 12:33:17 BST
      # gpg:                using RSA key 0xB44890DEDE3C9BC0
      # gpg: Good signature from "Riku Voipio <riku.voipio@iki.fi>"
      # gpg:                 aka "Riku Voipio <riku.voipio@linaro.org>"
      # Primary key fingerprint: FF82 03C8 C391 98AE 0581  41EF B448 90DE DE3C 9BC0
      
      * remotes/riku/tags/pull-linux-user-20170531:
        linux-user: add strace support for uinfo structure of rt_sigqueueinfo() and rt_tgsigqueueinfo()
        linux-user: fix inconsistent spaces in print_siginfo() output
        linux-user: add rt_tgsigqueueinfo() strace
        linux-user: add support for rt_tgsigqueueinfo() system call
        linux-user: fix argument type declaration of rt_sigqueinfo() syscall
        linux-user: fix mismatch of lock/unlock_user() invocations in rt_sigqueinfo() syscall
        linux-user: fix ssetmask() system call
        linux-user: add tkill(), tgkill() and rt_sigqueueinfo() strace
        linux-user: add strace for getuid(), gettid(), getppid(), geteuid()
        linux-user: remove all traces of qemu from /proc/self/cmdline
        linux-user: allocate heap memory for execve arguments
        linux-user: fix inotify
        linux-user: fix fadvise64_64() on ppc
        linux-user: fix eventfd
        linux-user: call fd_trans_target_to_host_data() for write()
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      c077a998
    • P
      Merge remote-tracking branch 'remotes/juanquintela/tags/migration/20170531' into staging · e5cac10a
      Peter Maydell 提交于
      migration/next for 20170531
      
      # gpg: Signature made Wed 31 May 2017 08:53:06 BST
      # gpg:                using RSA key 0xF487EF185872D723
      # gpg: Good signature from "Juan Quintela <quintela@redhat.com>"
      # gpg:                 aka "Juan Quintela <quintela@trasno.org>"
      # Primary key fingerprint: 1899 FF8E DEBF 58CC EE03  4B82 F487 EF18 5872 D723
      
      * remotes/juanquintela/tags/migration/20170531:
        migration: use dirty_rate_high_cnt more aggressively
        migration: set bytes_xfer_* outside of autoconverge logic
        migration: set dirty_pages_rate before autoconverge logic
        migration: keep bytes_xfer_prev init'd to zero
        migration: Create savevm.h for functions exported from savevm.c
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      e5cac10a
    • P
      Merge remote-tracking branch 'remotes/aurel/tags/pull-target-sh4-20170530' into staging · 61462af6
      Peter Maydell 提交于
      Queued target/sh4 patches
      
      # gpg: Signature made Tue 30 May 2017 20:12:10 BST
      # gpg:                using RSA key 0xBA9C78061DDD8C9B
      # gpg: Good signature from "Aurelien Jarno <aurelien@aurel32.net>"
      # gpg:                 aka "Aurelien Jarno <aurelien@jarno.fr>"
      # gpg:                 aka "Aurelien Jarno <aurel32@debian.org>"
      # gpg: WARNING: This key is not certified with sufficiently trusted signatures!
      # gpg:          It is not certain that the signature belongs to the owner.
      # Primary key fingerprint: 7746 2642 A9EF 94FD 0F77  196D BA9C 7806 1DDD 8C9B
      
      * remotes/aurel/tags/pull-target-sh4-20170530:
        target/sh4: fix RTE instruction delay slot
        target/sh4: ignore interrupts in a delay slot
        target/sh4: introduce DELAY_SLOT_MASK
        target/sh4: fix reset when using a kernel and an initrd
        target/sh4: log unauthorized accesses using qemu_log_mask
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      61462af6
    • P
      Merge remote-tracking branch 'remotes/gkurz/tags/for-upstream' into staging · 066ae4f8
      Peter Maydell 提交于
      Various bugfixes and code cleanups. Most notably, it fixes metadata handling in
      mapped-file security mode (especially for the virtfs root).
      
      # gpg: Signature made Tue 30 May 2017 14:36:22 BST
      # gpg:                using DSA key 0x02FC3AEB0101DBC2
      # gpg: Good signature from "Greg Kurz <groug@kaod.org>"
      # gpg:                 aka "Greg Kurz <groug@free.fr>"
      # gpg:                 aka "Greg Kurz <gkurz@linux.vnet.ibm.com>"
      # gpg:                 aka "Gregory Kurz (Groug) <groug@free.fr>"
      # gpg:                 aka "[jpeg image of size 3330]"
      # gpg: WARNING: This key is not certified with a trusted signature!
      # gpg:          There is no indication that the signature belongs to the owner.
      # Primary key fingerprint: 2BD4 3B44 535E C0A7 9894  DBA2 02FC 3AEB 0101 DBC2
      
      * remotes/gkurz/tags/for-upstream:
        9pfs: local: metadata file for the VirtFS root
        9pfs: local: simplify file opening
        9pfs: local: resolve special directories in paths
        9pfs: check return value of v9fs_co_name_to_path()
        util: drop old utimensat() compat code
        9pfs: assume utimensat() and futimens() are present
        fsdev: fix virtfs-proxy-helper cwd
        9pfs: local: fix unlink of alien files in mapped-file mode
        9pfs: drop pdu_push_and_notify()
        fsdev: don't allow unknown format in marshal/unmarshal
        virtio-9p/xen-9p: move 9p specific bits to core 9p code
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      066ae4f8
    • P
      Merge remote-tracking branch 'remotes/ehabkost/tags/numa-pull-request' into staging · 70f31414
      Peter Maydell 提交于
      NUMA fixes, 2017-05-30
      
      # gpg: Signature made Tue 30 May 2017 20:10:44 BST
      # gpg:                using RSA key 0x2807936F984DC5A6
      # gpg: Good signature from "Eduardo Habkost <ehabkost@redhat.com>"
      # Primary key fingerprint: 5A32 2FD5 ABC4 D3DB ACCF  D1AA 2807 936F 984D C5A6
      
      * remotes/ehabkost/tags/numa-pull-request:
        numa: Fix format string for "Invalid node" message
        numa-test: fix query-cpus leaks
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      70f31414
  3. 31 5月, 2017 16 次提交
  4. 30 5月, 2017 8 次提交
    • S
      Merge remote-tracking branch 'kwolf/tags/for-upstream' into staging · 0748b352
      Stefan Hajnoczi 提交于
      Block layer patches
      
      # gpg: Signature made Mon 29 May 2017 03:34:59 PM BST
      # gpg:                using RSA key 0x7F09B272C88F2FD6
      # gpg: Good signature from "Kevin Wolf <kwolf@redhat.com>"
      # Primary key fingerprint: DC3D EB15 9A9A F95D 3D74  56FE 7F09 B272 C88F 2FD6
      
      * kwolf/tags/for-upstream:
        block/file-*: *_parse_filename() and colons
        block: Fix backing paths for filenames with colons
        block: Tweak error message related to qemu-img amend
        qemu-img: Fix leakage of options on error
        qemu-img: copy *key-secret opts when opening newly created files
        qemu-img: introduce --target-image-opts for 'convert' command
        qemu-img: fix --image-opts usage with dd command
        qemu-img: add support for --object with 'dd' command
        qemu-img: Fix documentation of convert
        qcow2: remove extra local_error variable
        mirror: Drop permissions on s->target on completion
        nvme: Add support for Controller Memory Buffers
        iotests: 147: Don't test inet6 if not available
        qemu-iotests: Test streaming with missing job ID
        stream: fix crash in stream_start() when block_job_create() fails
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      0748b352
    • S
      Merge remote-tracking branch 'kraxel/tags/pull-usb-20170529-1' into staging · 697e42de
      Stefan Hajnoczi 提交于
      usb: depricate legacy options and hmp commands
      usb: fixes for ehci and hub, split xhci variants
      
      # gpg: Signature made Mon 29 May 2017 02:07:17 PM BST
      # gpg:                using RSA key 0x4CB6D8EED3E87138
      # 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
      
      * kraxel/tags/pull-usb-20170529-1:
        ehci: fix frame timer invocation.
        usb: don't wakeup during coldplug
        usb-hub: set PORT_STAT_C_SUSPEND on host-initiated wake-up
        xhci: add CONFIG_USB_XHCI_NEC option
        xhci: split into multiple files
        usb: Simplify the parameter parsing of the legacy usb serial device
        usb: Deprecate HMP commands usb_add and usb_del
        usb: Deprecate the legacy -usbdevice option
        ehci: fix overflow in frame timer code
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      697e42de
    • S
      Merge remote-tracking branch 'mst/tags/for_upstream' into staging · a3203e7d
      Stefan Hajnoczi 提交于
      pci, virtio, vhost: fixes
      
      A bunch of fixes all over the place. Most notably this fixes
      the new MTU feature when using vhost.
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      
      # gpg: Signature made Mon 29 May 2017 01:10:24 AM BST
      # gpg:                using RSA key 0x281F0DB8D28D5469
      # gpg: Good signature from "Michael S. Tsirkin <mst@kernel.org>"
      # gpg:                 aka "Michael S. Tsirkin <mst@redhat.com>"
      # Primary key fingerprint: 0270 606B 6F3C DF3D 0B17  0970 C350 3912 AFBE 8E67
      #      Subkey fingerprint: 5D09 FD08 71C8 F85B 94CA  8A0D 281F 0DB8 D28D 5469
      
      * mst/tags/for_upstream:
        acpi-test: update expected files
        pc: ACPI BIOS: use highest NUMA node for hotplug mem hole SRAT entry
        vhost-user: pass message as a pointer to process_message_reply()
        virtio_net: Bypass backends for MTU feature negotiation
        intel_iommu: turn off pt before 2.9
        intel_iommu: support passthrough (PT)
        intel_iommu: allow dev-iotlb context entry conditionally
        intel_iommu: use IOMMU_ACCESS_FLAG()
        intel_iommu: provide vtd_ce_get_type()
        intel_iommu: renaming context entry helpers
        x86-iommu: use DeviceClass properties
        memory: remove the last param in memory_region_iommu_replay()
        memory: tune last param of iommu_ops.translate()
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      a3203e7d
    • S
      Merge remote-tracking branch 'sthibault/tags/samuel-thibault' into staging · 08f44282
      Stefan Hajnoczi 提交于
      slirp updates
      
      # gpg: Signature made Sat 27 May 2017 10:36:33 PM BST
      # gpg:                using RSA key 0xB0A51BF58C9179C5
      # gpg: Good signature from "Samuel Thibault <samuel.thibault@aquilenet.fr>"
      # gpg:                 aka "Samuel Thibault <sthibault@debian.org>"
      # gpg:                 aka "Samuel Thibault <samuel.thibault@gnu.org>"
      # gpg:                 aka "Samuel Thibault <samuel.thibault@inria.fr>"
      # gpg:                 aka "Samuel Thibault <samuel.thibault@labri.fr>"
      # gpg:                 aka "Samuel Thibault <samuel.thibault@ens-lyon.org>"
      # gpg:                 aka "Samuel Thibault <samuel.thibault@u-bordeaux.fr>"
      # Primary key fingerprint: 900C B024 B679 31D4 0F82  304B D017 8C76 7D06 9EE6
      #      Subkey fingerprint: AEBF 7448 FAB9 453A 4552  390E B0A5 1BF5 8C91 79C5
      
      * sthibault/tags/samuel-thibault:
        Fix total IP header length in forwarded TCP packets
        slirp: fix leak
        slirp: Fix wrong mss bug.
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      08f44282
    • S
      Merge remote-tracking branch 'jtc/tags/block-pull-request' into staging · 7b6badb6
      Stefan Hajnoczi 提交于
      # gpg: Signature made Fri 26 May 2017 08:22:27 PM BST
      # gpg:                using RSA key 0xBDBE7B27C0DE3057
      # gpg: Good signature from "Jeffrey Cody <jcody@redhat.com>"
      # gpg:                 aka "Jeffrey Cody <jeff@codyprime.org>"
      # gpg:                 aka "Jeffrey Cody <codyprime@gmail.com>"
      # Primary key fingerprint: 9957 4B4D 3474 90E7 9D98  D624 BDBE 7B27 C0DE 3057
      
      * jtc/tags/block-pull-request:
        block/gluster: glfs_lseek() workaround
        blockjob: use deferred_to_main_loop to indicate the coroutine has ended
        blockjob: reorganize block_job_completed_txn_abort
        blockjob: strengthen a bit test-blockjob-txn
        blockjob: group BlockJob transaction functions together
        blockjob: introduce block_job_cancel_async, check iostatus invariants
        blockjob: move iostatus reset inside block_job_user_resume
        blockjob: separate monitor and blockjob APIs
        blockjob: introduce block_job_pause/resume_all
        blockjob: introduce block_job_early_fail
        blockjob: remove iostatus_reset callback
        blockjob: remove unnecessary check
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      7b6badb6
    • S
      Merge remote-tracking branch 'dgibson/tags/ppc-for-2.10-20170525' into staging · 5bb0d22c
      Stefan Hajnoczi 提交于
      ppc patch queue 2017-05-25
      
      Assorted accumulated patches.  These are nearly all bugfixes at one
      level or another - some for longstanding problems, others for some
      regressions caused by more recent cleanups.
      
      This includes preliminary patches towards fixing migration for Radix
      Page Table guests under POWER9 and also fixing some migration
      regressions due to the re-organization of the interrupt controller
      code.  Not all the pieces are there yet, so those still won't quite
      work, but the preliminary changes make sense on their own.
      
      # gpg: Signature made Thu 25 May 2017 04:50:00 AM BST
      # gpg:                using RSA key 0x6C38CACA20D9B392
      # gpg: Good signature from "David Gibson <david@gibson.dropbear.id.au>"
      # gpg:                 aka "David Gibson (kernel.org) <dwg@kernel.org>"
      # gpg:                 aka "David Gibson (Red Hat) <dgibson@redhat.com>"
      # gpg:                 aka "David Gibson (ozlabs.org) <dgibson@ozlabs.org>"
      # Primary key fingerprint: 75F4 6586 AE61 A66C C44E  87DC 6C38 CACA 20D9 B392
      
      * dgibson/tags/ppc-for-2.10-20170525:
        xics: add unrealize handler
        hw/ppc/spapr.c: recover pending LMB unplug info in spapr_lmb_release
        hw/ppc: migrating the DRC state of hotplugged devices
        hw/ppc: removing drc->detach_cb and drc->detach_cb_opaque
        hw/ppc/spapr.c: adding pending_dimm_unplugs to sPAPRMachineState
        spapr: add pre_plug function for memory
        pseries: Restore support for total vcpus not a multiple of threads-per-core for old machine types
        pseries: Split CAS PVR negotiation out into a separate function
        spapr: fix error reporting in xics_system_init()
        spapr_cpu_core: drop reference on ICP object during CPU realization
        hw/ppc/spapr_events.c: removing 'exception' from sPAPREventLogEntry
        spapr: ensure core_slot isn't NULL in spapr_core_unplug()
        xics_kvm: cache already enabled vCPU ids
        spapr: Consolidate HPT freeing code into a routine
        spapr-cpu-core: release ICP object when realization fails
        spapr: sanitize error handling in spapr_ics_create()
        ppc/xics: simplify prototype of xics_spapr_init()
        target/ppc: reset reservation in do_rfi()
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      5bb0d22c
    • S
      Merge remote-tracking branch 'armbru/tags/pull-qapi-2017-05-23' into staging · d0eda029
      Stefan Hajnoczi 提交于
      QAPI patches for 2017-05-23
      
      # gpg: Signature made Tue 23 May 2017 12:33:32 PM BST
      # gpg:                using RSA key 0x3870B400EB918653
      # 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
      
      * armbru/tags/pull-qapi-2017-05-23:
        qapi-schema: Remove obsolete note from ObjectTypeInfo
        block: Use QDict helpers for --force-share
        shutdown: Expose bool cause in SHUTDOWN and RESET events
        shutdown: Add source information to SHUTDOWN and RESET
        shutdown: Preserve shutdown cause through replay
        shutdown: Prepare for use of an enum in reset/shutdown_request
        shutdown: Simplify shutdown_signal
        sockets: Plug memory leak in socket_address_flatten()
        scripts/qmp/qom-set: fix the value argument passed to srv.command()
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      d0eda029
    • S
      Merge remote-tracking branch 'ehabkost/tags/numa-pull-request' into staging · 62e570b1
      Stefan Hajnoczi 提交于
      Silence "make check" warnings on NUMA test
      
      # gpg: Signature made Tue 23 May 2017 11:44:24 AM BST
      # gpg:                using RSA key 0x2807936F984DC5A6
      # gpg: Good signature from "Eduardo Habkost <ehabkost@redhat.com>"
      # Primary key fingerprint: 5A32 2FD5 ABC4 D3DB ACCF  D1AA 2807 936F 984D C5A6
      
      * ehabkost/tags/numa-pull-request:
        numa: Silence incomplete mapping warning under qtest
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      62e570b1
  5. 29 5月, 2017 7 次提交
    • K
      Merge remote-tracking branch 'mreitz/tags/pull-block-2017-05-29-v3' into queue-block · 42a48128
      Kevin Wolf 提交于
      Block patches for the block queue
      
      # gpg: Signature made Mon May 29 16:32:16 2017 CEST
      # gpg:                using RSA key 0xF407DB0061D5CF40
      # gpg: Good signature from "Max Reitz <mreitz@redhat.com>"
      # Primary key fingerprint: 91BE B60A 30DB 3E88 57D1  1829 F407 DB00 61D5 CF40
      
      * mreitz/tags/pull-block-2017-05-29-v3:
        block/file-*: *_parse_filename() and colons
        block: Fix backing paths for filenames with colons
        block: Tweak error message related to qemu-img amend
        qemu-img: Fix leakage of options on error
        qemu-img: copy *key-secret opts when opening newly created files
        qemu-img: introduce --target-image-opts for 'convert' command
        qemu-img: fix --image-opts usage with dd command
        qemu-img: add support for --object with 'dd' command
        qemu-img: Fix documentation of convert
        qcow2: remove extra local_error variable
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      42a48128
    • M
      block/file-*: *_parse_filename() and colons · 03c320d8
      Max Reitz 提交于
      The file drivers' *_parse_filename() implementations just strip the
      optional protocol prefix off the filename. However, for e.g.
      "file:foo:bar", this would lead to "foo:bar" being stored as the BDS's
      filename which looks like it should be managed using the "foo" protocol.
      This is especially troublesome if you then try to resolve a backing
      filename based on "foo:bar".
      
      This issue can only occur if the stripped part is a relative filename
      ("file:/foo:bar" will be shortened to "/foo:bar" and having a slash
      before the first colon means that "/foo" is not recognized as a protocol
      part). Therefore, we can easily fix it by prepending "./" to such
      filenames.
      
      Before this patch:
      $ ./qemu-img create -f qcow2 backing.qcow2 64M
      Formatting 'backing.qcow2', fmt=qcow2 size=67108864 encryption=off
          cluster_size=65536 lazy_refcounts=off refcount_bits=16
      $ ./qemu-img create -f qcow2 -b backing.qcow2 file:top:image.qcow2
      Formatting 'file:top:image.qcow2', fmt=qcow2 size=67108864
          backing_file=backing.qcow2 encryption=off cluster_size=65536
          lazy_refcounts=off refcount_bits=16
      $ ./qemu-io file:top:image.qcow2
      can't open device file:top:image.qcow2: Could not open backing file:
          Unknown protocol 'top'
      
      After this patch:
      $ ./qemu-io file:top:image.qcow2
      [no error]
      Signed-off-by: NMax Reitz <mreitz@redhat.com>
      Message-id: 20170522195217.12991-3-mreitz@redhat.com
      Reviewed-by: NEric Blake <eblake@redhat.com>
      Signed-off-by: NMax Reitz <mreitz@redhat.com>
      03c320d8
    • M
      block: Fix backing paths for filenames with colons · 0d54a6fe
      Max Reitz 提交于
      path_combine() naturally tries to preserve a protocol prefix. However,
      it recognizes such a prefix by scanning for the first colon; which is
      different from what path_has_protocol() does: There only is a protocol
      prefix if there is a colon before the first slash.
      
      A protocol prefix that is not recognized by path_has_protocol() is none,
      and should thus not be taken as one.
      
      Case in point, before this patch:
      $ ./qemu-img create -f qcow2 -b backing.qcow2 ./top:image.qcow2
      qemu-img: ./top:image.qcow2: Could not open './top:backing.qcow2':
          No such file or directory
      
      Afterwards:
      $ ./qemu-img create -f qcow2 -b backing.qcow2 ./top:image.qcow2
      qemu-img: ./top:image.qcow2: Could not open './backing.qcow2':
          No such file or directory
      Reported-by: Nyangyang <yangyang@redhat.com>
      Signed-off-by: NMax Reitz <mreitz@redhat.com>
      Reviewed-by: NEric Blake <eblake@redhat.com>
      Message-id: 20170522195217.12991-2-mreitz@redhat.com
      Signed-off-by: NMax Reitz <mreitz@redhat.com>
      0d54a6fe
    • E
      block: Tweak error message related to qemu-img amend · bcb07dba
      Eric Blake 提交于
      When converting a 1.1 image down to 0.10, qemu-iotests 060 forces
      a contrived failure where allocating a cluster used to replace a
      zero cluster reads unaligned data.  Since it is a zero cluster
      rather than a data cluster being converted, changing the error
      message to match our earlier change in 'qcow2: Make distinction
      between zero cluster types obvious' is worthwhile.
      Suggested-by: NMax Reitz <mreitz@redhat.com>
      Signed-off-by: NEric Blake <eblake@redhat.com>
      Message-id: 20170508171302.17805-1-eblake@redhat.com
      [mreitz: Commit message fixes]
      Signed-off-by: NMax Reitz <mreitz@redhat.com>
      bcb07dba
    • F
      qemu-img: Fix leakage of options on error · adb998c1
      Fam Zheng 提交于
      Reported by Coverity.
      Signed-off-by: NFam Zheng <famz@redhat.com>
      Message-id: 20170515141014.25793-1-famz@redhat.com
      Reviewed-by: NEric Blake <eblake@redhat.com>
      Signed-off-by: NMax Reitz <mreitz@redhat.com>
      adb998c1
    • D
      qemu-img: copy *key-secret opts when opening newly created files · 29cf9336
      Daniel P. Berrange 提交于
      The qemu-img dd/convert commands will create an image file and
      then try to open it. Historically it has been possible to open
      new files without passing any options. With encrypted files
      though, the *key-secret options are mandatory, so we need to
      provide those options when opening the newly created file.
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      Message-id: 20170515164712.6643-5-berrange@redhat.com
      Reviewed-by: NMax Reitz <mreitz@redhat.com>
      Signed-off-by: NMax Reitz <mreitz@redhat.com>
      29cf9336
    • D
      qemu-img: introduce --target-image-opts for 'convert' command · 305b4c60
      Daniel P. Berrange 提交于
      The '--image-opts' flag indicates whether the source filename
      includes options. The target filename has to remain in the
      plain filename format though, since it needs to be passed to
      bdrv_create().  When using --skip-create though, it would be
      possible to use image-opts syntax. This adds --target-image-opts
      to indicate that the target filename includes options. Currently
      this mandates use of the --skip-create flag too.
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      Message-id: 20170515164712.6643-4-berrange@redhat.com
      Reviewed-by: NMax Reitz <mreitz@redhat.com>
      Reviewed-by: NEric Blake <eblake@redhat.com>
      Signed-off-by: NMax Reitz <mreitz@redhat.com>
      305b4c60