1. 31 3月, 2016 21 次提交
  2. 30 3月, 2016 19 次提交
    • P
      Merge remote-tracking branch 'remotes/lalrae/tags/mips-20160329-2' into staging · 489ef4c8
      Peter Maydell 提交于
      MIPS patches 2016-03-29
      
      Changes:
      * add initial MIPS CPS support
      * implement ITU block
      * implement MAAR
      
      # gpg: Signature made Wed 30 Mar 2016 09:27:01 BST using RSA key ID 0B29DA6B
      # gpg: Good signature from "Leon Alrae <leon.alrae@imgtec.com>"
      
      * remotes/lalrae/tags/mips-20160329-2: (21 commits)
        target-mips: add MAAR, MAARI register
        target-mips: use CP0_CHECK for gen_m{f|t}hc0
        hw/mips/cps: enable ITU for multithreading processors
        target-mips: make ITC Configuration Tags accessible to the CPU
        target-mips: check CP0 enabled for CACHE instruction also in R6
        hw/mips: implement ITC Storage - Bypass View
        hw/mips: implement ITC Storage - P/V Sync and Try Views
        hw/mips: implement ITC Storage - Empty/Full Sync and Try Views
        hw/mips: implement ITC Storage - Control View
        hw/mips: implement ITC Configuration Tags and Storage Cells
        target-mips: enable CM GCR in MIPS64R6-generic CPU
        hw/mips_malta: add CPS to Malta board
        hw/mips_malta: move CPU creation to a separate function
        hw/mips_malta: remove redundant irq and clock init
        hw/mips_malta: remove CPUMIPSState from the write_bootloader()
        hw/mips/cps: create CPC block inside CPS
        hw/mips: add initial Cluster Power Controller support
        hw/mips/cps: create GCR block inside CPS
        hw/mips: add initial Global Config Register support
        target-mips: add CMGCRBase register
        ...
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      489ef4c8
    • P
      Merge remote-tracking branch 'remotes/berrange/tags/pull-qcrypto-2016-03-30-1' into staging · 69bc7f50
      Peter Maydell 提交于
      Merge qcrypto fixes 2016/03/30 v1
      
      # gpg: Signature made Wed 30 Mar 2016 14:59:19 BST 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-qcrypto-2016-03-30-1:
        crypto: do an explicit check for nettle pbkdf functions
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      69bc7f50
    • D
      crypto: do an explicit check for nettle pbkdf functions · fff2f982
      Daniel P. Berrange 提交于
      Support for the PBKDF functions in nettle was not introduced
      until version 2.6. Some distros QEMU targets have older
      versions and thus lack PBKDF support. Address this by doing
      a check in configure for the desired function and then skipping
      compilation of the nettle-pbkdf.o module
      Reported-by: NWen Congyang <wency@cn.fujitsu.com>
      Tested-by: NWen Congyang <wency@cn.fujitsu.com>
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      fff2f982
    • P
      Merge remote-tracking branch 'remotes/kevin/tags/for-upstream' into staging · b9c27e7a
      Peter Maydell 提交于
      Block layer patches
      
      # gpg: Signature made Wed 30 Mar 2016 11:57:54 BST using RSA key ID C88F2FD6
      # gpg: Good signature from "Kevin Wolf <kwolf@redhat.com>"
      
      * remotes/kevin/tags/for-upstream: (48 commits)
        iotests: Test qemu-img convert -S 0 behavior
        block/null-{co,aio}: Implement get_block_status()
        block/null-{co,aio}: Allow reading zeroes
        qemu-img: Fix preallocation with -S 0 for convert
        block: Remove bdrv_(set_)enable_write_cache()
        block: Remove BDRV_O_CACHE_WB
        block: Remove bdrv_parse_cache_flags()
        qemu-io: Use bdrv_parse_cache_mode() in reopen_f()
        block: Use bdrv_parse_cache_mode() in drive_init()
        raw: Support BDRV_REQ_FUA
        nbd: Support BDRV_REQ_FUA
        iscsi: Support BDRV_REQ_FUA
        block: Introduce bdrv_co_writev_flags()
        block/qapi: Use blk_enable_write_cache()
        block: Move enable_write_cache to BB level
        block: Handle flush error in bdrv_pwrite_sync()
        block: Always set writeback mode in blk_new_open()
        block: blockdev_init(): Call blk_set_enable_write_cache() explicitly
        xen_disk: Call blk_set_enable_write_cache() explicitly
        qemu-img: Call blk_set_enable_write_cache() explicitly
        ...
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      b9c27e7a
    • P
      Merge remote-tracking branch 'remotes/jasowang/tags/net-pull-request' into staging · 8850dcbf
      Peter Maydell 提交于
      # gpg: Signature made Wed 30 Mar 2016 02:07:15 BST using RSA key ID 398D6211
      # gpg: Good signature from "Jason Wang (Jason Wang on RedHat) <jasowang@redhat.com>"
      # 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: 215D 46F4 8246 689E C77F  3562 EF04 965B 398D 6211
      
      * remotes/jasowang/tags/net-pull-request:
        Revert "e1000: fix hang of win2k12 shutdown with flood ping"
        e1000: Fixing interrupts pace.
        tests/test-filter-redirector: Add unit test for filter-redirector
        net/filter-mirror: implement filter-redirector
        net/filter-mirror: Change filter_mirror_send interface
        tests/test-filter-mirror:add filter-mirror unit test
        net/filter-mirror:Add filter-mirror
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      8850dcbf
    • M
      iotests: Test qemu-img convert -S 0 behavior · f4e732a0
      Max Reitz 提交于
      Passing -S 0 to qemu-img convert should result in all source data being
      copied to the output, even if that source data is known to be 0. The
      output image should therefore have exactly the same size on disk as an
      image which we explicitly filled with data.
      Signed-off-by: NMax Reitz <mreitz@redhat.com>
      Reviewed-by: NFam Zheng <famz@redhat.com>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      f4e732a0
    • M
      block/null-{co,aio}: Implement get_block_status() · a9063927
      Max Reitz 提交于
      Signed-off-by: NMax Reitz <mreitz@redhat.com>
      Acked-by: NFam Zheng <famz@redhat.com>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      a9063927
    • M
      block/null-{co,aio}: Allow reading zeroes · cd219eb1
      Max Reitz 提交于
      This is optional so that it does not impede the null block driver's
      performance unless this behavior is desired.
      Signed-off-by: NMax Reitz <mreitz@redhat.com>
      Reviewed-by: NEric Blake <eblake@redhat.com>
      Acked-by: NFam Zheng <famz@redhat.com>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      cd219eb1
    • M
      qemu-img: Fix preallocation with -S 0 for convert · aad15de4
      Max Reitz 提交于
      When passing -S 0 to qemu-img convert, the target image is supposed to
      be fully allocated. Right now, this is not the case if the source image
      contains areas which bdrv_get_block_status() reports as being zero.
      
      This patch changes a zeroed area's status from BLK_ZERO to BLK_DATA
      before invoking convert_write() if -S 0 has been specified. In addition,
      the check whether convert_read() actually needs to do anything
      (basically only if the current area is a BLK_DATA area) is pulled out of
      that function to the caller.
      
      If -S 0 has been specified, zeroed areas need to be written as data to
      the output, thus they then have to be accounted when calculating the
      progress made.
      
      This patch changes the reference output for iotest 122; contrary to what
      it assumed, -S 0 really should allocate everything in the output, not
      just areas that are filled with zeros (as opposed to being zeroed).
      Signed-off-by: NMax Reitz <mreitz@redhat.com>
      Reviewed-by: NFam Zheng <famz@redhat.com>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      aad15de4
    • K
      block: Remove bdrv_(set_)enable_write_cache() · 09cf9db1
      Kevin Wolf 提交于
      The only remaining users were block jobs (mirror and backup) which
      unconditionally enabled WCE on the BlockBackend of the target image. As
      these block jobs don't go through BlockBackend for their I/O requests,
      they aren't affected by this setting anyway but always get a writeback
      mode, so that call can be removed.
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      Reviewed-by: NMax Reitz <mreitz@redhat.com>
      09cf9db1
    • K
      block: Remove BDRV_O_CACHE_WB · 61de4c68
      Kevin Wolf 提交于
      The previous patches have successively made blk->enable_write_cache the
      true source for the information whether a writethrough mode must be
      implemented. The corresponding BDRV_O_CACHE_WB is only useless baggage
      we're carrying around, so now's the time to remove it.
      
      At the same time, we remove the 'cache.writeback' option parsing on the
      BDS level as the only effect was setting the BDRV_O_CACHE_WB flag.
      
      This change requires test cases that explicitly enabled the option to
      drop it. Other than that and the change of the error message when
      writethrough is enabled on the BDS level (from "Can't set writethrough
      mode" to "doesn't support the option"), there should be no change in
      behaviour.
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      Reviewed-by: NMax Reitz <mreitz@redhat.com>
      61de4c68
    • K
      block: Remove bdrv_parse_cache_flags() · 53e8ae01
      Kevin Wolf 提交于
      All users are converted to bdrv_parse_cache_mode() now.
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      Reviewed-by: NMax Reitz <mreitz@redhat.com>
      53e8ae01
    • K
      qemu-io: Use bdrv_parse_cache_mode() in reopen_f() · 19dbecdc
      Kevin Wolf 提交于
      We must forbid changing the WCE flag in bdrv_reopen() in the same patch,
      as otherwise the behaviour would change so that the flag takes
      precedence over the explicitly specified option.
      
      The correct value of the WCE flag depends on the BlockBackend user (e.g.
      guest device) and isn't a decision that the QMP client makes, so this
      change is what we want.
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      Reviewed-by: NMax Reitz <mreitz@redhat.com>
      19dbecdc
    • K
      block: Use bdrv_parse_cache_mode() in drive_init() · 04feb4a5
      Kevin Wolf 提交于
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      Reviewed-by: NMax Reitz <mreitz@redhat.com>
      04feb4a5
    • K
      raw: Support BDRV_REQ_FUA · 54815311
      Kevin Wolf 提交于
      Pass through the FUA flag to the lower layer so that the separate flush
      can be saved in practically relevant cases where a (raw) format driver
      sits on top of the protocol driver.
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      Reviewed-by: NMax Reitz <mreitz@redhat.com>
      54815311
    • K
      nbd: Support BDRV_REQ_FUA · 2b556518
      Kevin Wolf 提交于
      The NBD server already used to send a FUA flag when the writethrough
      mode was set. This code was a remnant from the times where protocol
      drivers actually had to implement writethrough modes. Since nowadays the
      block layer sends flushes in writethrough mode and non-root nodes are
      always writeback, this was mostly dead code - only mostly because if NBD
      was configured to be used without a format, we sent _both_ FUA and an
      explicit flush afterwards, which makes the code not technically dead,
      but useless overhead.
      
      This patch changes the code so that the block layer's FUA flag is
      recognised and translated into a NBD FUA flag. The additional flush is
      avoided now.
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      Reviewed-by: NMax Reitz <mreitz@redhat.com>
      2b556518
    • K
      iscsi: Support BDRV_REQ_FUA · 9f0eb9e1
      Kevin Wolf 提交于
      This replaces the existing hack in the iscsi driver that sent the FUA
      bit in writethrough mode and ignored the following flush in order to
      optimise the number of roundtrips (see commit 73b5394e).
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      Reviewed-by: NMax Reitz <mreitz@redhat.com>
      9f0eb9e1
    • K
      block: Introduce bdrv_co_writev_flags() · 93f5e6d8
      Kevin Wolf 提交于
      This function will allow drivers to implement BDRV_REQ_FUA natively
      instead of sending a separate flush after the write.
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      Reviewed-by: NMax Reitz <mreitz@redhat.com>
      93f5e6d8
    • K
      block/qapi: Use blk_enable_write_cache() · c83f9fba
      Kevin Wolf 提交于
      Now that WCE is handled on the BlockBackend level, the flag is
      meaningless for BDSes. As the schema requires us to fill the field,
      we return an enabled write cache for them.
      
      Note that this means that querying the BlockBackend name may return
      writethrough as the cache information, whereas querying the node-name of
      the root of that same BlockBackend will return writeback.
      
      This may appear odd at first, but it actually makes sense because it
      correctly repesents the layer that implements the WCE handling. This
      becomes more apparent when you consider nodes that are the root node of
      multiple BlockBackends, where each BB can have its own WCE setting.
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      Reviewed-by: NMax Reitz <mreitz@redhat.com>
      c83f9fba