1. 14 3月, 2016 9 次提交
    • J
      block/vpc: tests for auto-detecting VPC and Hyper-V VHD images · 798609bb
      Jeff Cody 提交于
      This tests auto-detection, and overrides, of VHD image sizes created
      by Virtual PC, Hyper-V, and Disk2vhd.
      
      This adds three sample images:
      
      hyperv2012r2-dynamic.vhd.bz2 - dynamic VHD image created with Hyper-V
      virtualpc-dynamic.vhd.bz2    - dynamic VHD image created with Virtual PC
      d2v-zerofilled.vhd.bz2       - dynamic VHD image created with Disk2vhd
      Signed-off-by: NJeff Cody <jcody@redhat.com>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      798609bb
    • J
      block/vpc: choose size calculation method based on creator_app field · c540d53a
      Jeff Cody 提交于
      The VHD file format is used by both Virtual PC, and Hyper-V.  However,
      how the virtual disk size is calculated varies between the two.
      
      Virtual PC uses the CHS drive parameters to determine the drive size.
      Hyper-V, on the other hand, uses the current_size field in the footer
      when determining image size.
      
      This is problematic for a few reasons:
      
      * VHD images from Hyper-V, using CHS calculations, will likely be
        trunctated.
      
      * If we just rely always on current_size, then QEMU may have data
        compatibility issues with Virtual PC (we may write too much data
        into a VHD file to be used by Virtual PC, for instance).
      
      * Existing VHD images created by QEMU have used the CHS calculations,
        except for images exceeding the 127GB limit.  We want to remain
        compatible with our own generated images.
      
      Luckily, the VHD specification defines a 'Creator App' field, that is
      used to indicate what software created the VHD file.
      
      This patch does two things:
      
          1. Uses the 'Creator App' field to help determine how to calculate
             size, and
      
          2. Adds a VPC format option 'force_size_calc', so that the user can
             override the 'Creator App' auto-detection, in case there exist
             VHD images with unknown or contradictory 'Creator App' entries.
      
      N.B.: We currently use the maximum CHS value as an indication to use the
      current_size field.  This patch does not change that, even with the
      'force_size_calc' option.
      Signed-off-by: NJeff Cody <jcody@redhat.com>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      c540d53a
    • K
      block/qapi: Include empty drives in query-blockstats · c21cc6ca
      Kevin Wolf 提交于
      Since commit 5ec18f8c, query-blockstats didn't return the statistics of
      drives without media any more because such drives have only a BB now,
      but not a BDS any more.
      
      This patch fixes the regression so that query-blockstats iterates over
      BBs by default and empty drives are displayed again.
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      Reviewed-by: NMax Reitz <mreitz@redhat.com>
      c21cc6ca
    • K
      block/qapi: Factor out bdrv_query_bds_stats() · b07363a1
      Kevin Wolf 提交于
      The new functions handles the data that is taken from the
      BlockDriverState.
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      Reviewed-by: NMax Reitz <mreitz@redhat.com>
      b07363a1
    • K
      block/qapi: Factor out bdrv_query_blk_stats() · 2b77e60a
      Kevin Wolf 提交于
      The new functions handles the data that is taken from the BlockBackend.
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      Reviewed-by: NMax Reitz <mreitz@redhat.com>
      2b77e60a
    • P
      qemu-img: eliminate memory leak · 396374ca
      Paolo Bonzini 提交于
      Not particularly important since qemu-img exits immediately after
      calling img_rebase, but easily fixed.  Coverity says thanks.
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      Reviewed-by: NAlberto Garcia <berto@igalia.com>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      396374ca
    • P
      Merge remote-tracking branch 'remotes/amit-migration/tags/migration-for-2.6-7' into staging · 0dcee622
      Peter Maydell 提交于
      migration:
       - postcopy is no longer experimental
       - fix a use-after-free in postcopy
       - fix a compile warning
      
      # gpg: Signature made Fri 11 Mar 2016 12:29:33 GMT using RSA key ID 854083B6
      # gpg: Good signature from "Amit Shah <amit@amitshah.net>"
      # gpg:                 aka "Amit Shah <amit@kernel.org>"
      # gpg:                 aka "Amit Shah <amitshah@gmx.net>"
      
      * remotes/amit-migration/tags/migration-for-2.6-7:
        postcopy: Remove the x-
        postcopy: listen thread is never joined
        migration: fix use-after-free in loadvm_postcopy_handle_run_bh
        migration: fix warning for source_return_path_thread
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      0dcee622
    • P
      Merge remote-tracking branch 'remotes/berrange/tags/pull-io-win32-2016-03-11-1' into staging · 8326ec2c
      Peter Maydell 提交于
      Merge I/O fixes for win32
      
      # gpg: Signature made Fri 11 Mar 2016 10:03:20 GMT using RSA key ID 15104FDF
      # gpg: Good signature from "Daniel P. Berrange <dan@berrange.com>"
      # gpg:                 aka "Daniel P. Berrange <berrange@redhat.com>"
      
      * remotes/berrange/tags/pull-io-win32-2016-03-11-1:
        osdep: remove use of socket_error() from all code
        osdep: add wrappers for socket functions
        char: remove qemu_chr_open_socket_fd method
        char: remove socket_try_connect method
        char: remove qemu_chr_finish_socket_connection method
        io: implement socket watch for win32 using WSAEventSelect+select
        io: remove checking of EWOULDBLOCK
        io: use qemu_accept to ensure SOCK_CLOEXEC is set
        io: introduce qio_channel_create_socket_watch
        io: pass HANDLE to g_source_add_poll on Win32
        io: fix copy+paste mistake in socket error message
        io: assert errors before asserting content in I/O test
        io: set correct error object in background reader test thread
        io: wait for incoming client in socket test
        io: bind to socket before creating QIOChannelSocket
        io: initialize sockets in test program
        io: use bind() to check for IPv4/6 availability
        osdep: fix socket_error() to work with Mingw64
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      8326ec2c
    • P
      Merge remote-tracking branch 'remotes/cohuck/tags/s390x-20160311' into staging · d1ab9681
      Peter Maydell 提交于
      CPU hotplug via cpu-add for s390x, cleanup of the s390x machine
      compat code and a bugfix in the s390-ccw bios.
      
      # gpg: Signature made Fri 11 Mar 2016 09:48:02 GMT using RSA key ID C6F02FAF
      # gpg: Good signature from "Cornelia Huck <huckc@linux.vnet.ibm.com>"
      # gpg:                 aka "Cornelia Huck <cornelia.huck@de.ibm.com>"
      
      * remotes/cohuck/tags/s390x-20160311:
        s390x/cpu: use g_new0
        s390x: Introduce S390MachineClass
        s390x: Introduce machine definition macros
        pc-bios/s390-ccw: fix old bug in ptr increment
        s390x/cpu: Allow hotplug of CPUs
        s390x/cpu: Add error handling to cpu creation
        s390x/cpu: Add CPU property links
        s390x/cpu: Tolerate max_cpus
        s390x/cpu: Get rid of side effects when creating a vcpu
        s390x/cpu: Set initial CPU state in common routine
        s390x/cpu: Cleanup init in preparation for hotplug
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      d1ab9681
  2. 11 3月, 2016 22 次提交
  3. 10 3月, 2016 9 次提交