1. 13 5月, 2016 33 次提交
  2. 12 5月, 2016 7 次提交
    • P
      Merge remote-tracking branch 'remotes/kevin/tags/for-upstream' into staging · f68419ee
      Peter Maydell 提交于
      Block layer patches
      
      # gpg: Signature made Thu 12 May 2016 14:37:05 BST using RSA key ID C88F2FD6
      # gpg: Good signature from "Kevin Wolf <kwolf@redhat.com>"
      
      * remotes/kevin/tags/for-upstream: (69 commits)
        qemu-iotests: iotests: fail hard if not run via "check"
        block: enable testing of LUKS driver with block I/O tests
        block: add support for encryption secrets in block I/O tests
        block: add support for --image-opts in block I/O tests
        qemu-io: Add 'write -z -u' to test MAY_UNMAP flag
        qemu-io: Add 'write -f' to test FUA flag
        qemu-io: Allow unaligned access by default
        qemu-io: Use bool for command line flags
        qemu-io: Make 'open' subcommand more like command line
        qemu-io: Add missing option documentation
        qmp: add monitor command to add/remove a child
        quorum: implement bdrv_add_child() and bdrv_del_child()
        Add new block driver interface to add/delete a BDS's child
        qemu-img: check block status of backing file when converting.
        iotests: fix the redirection order in 083
        block: Inactivate all children
        block: Drop superfluous invalidating bs->file from drivers
        block: Invalidate all children
        nbd: Simplify client FUA handling
        block: Honor BDRV_REQ_FUA during write_zeroes
        ...
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      f68419ee
    • P
      Merge remote-tracking branch 'remotes/pmaydell/tags/pull-target-arm-20160512' into staging · e4f70d63
      Peter Maydell 提交于
      target-arm queue:
       * blizzard, omap_lcdc: code cleanup to remove DEPTH != 32 dead code
       * QOMify various ARM devices
       * bcm2835_property: use cached values when querying framebuffer
       * hw/arm/nseries: don't allocate large sized array on the stack
       * fix LPAE descriptor address masking (only visible for EL2)
       * fix stage 2 exec permission handling for AArch32
       * first part of supporting syndrome info for data aborts to EL2
       * virt: NUMA support
       * work towards i.MX6 support
       * avoid unnecessary TLB flush on TCR_EL2, TCR_EL3 writes
      
      # gpg: Signature made Thu 12 May 2016 14:29:14 BST using RSA key ID 14360CDE
      # gpg: Good signature from "Peter Maydell <peter.maydell@linaro.org>"
      # gpg:                 aka "Peter Maydell <pmaydell@gmail.com>"
      # gpg:                 aka "Peter Maydell <pmaydell@chiark.greenend.org.uk>"
      
      * remotes/pmaydell/tags/pull-target-arm-20160512: (43 commits)
        hw/arm: QOM'ify versatilepb.c
        hw/arm: QOM'ify strongarm.c
        hw/arm: QOM'ify stellaris.c
        hw/arm: QOM'ify spitz.c
        hw/arm: QOM'ify pxa2xx_pic.c
        hw/arm: QOM'ify pxa2xx.c
        hw/arm: QOM'ify integratorcp.c
        hw/arm: QOM'ify highbank.c
        hw/arm: QOM'ify armv7m.c
        target-arm: Avoid unnecessary TLB flush on TCR_EL2, TCR_EL3 writes
        hw/display/blizzard: Remove blizzard_template.h
        hw/display/blizzard: Expand out macros
        i.MX: Add sabrelite i.MX6 emulation.
        i.MX: Add i.MX6 SOC implementation.
        i.MX: Add the Freescale SPI Controller
        FIFO: Add a FIFO32 implementation
        i.MX: Add i.MX6 System Reset Controller device.
        ARM: Factor out ARM on/off PSCI control functions
        ACPI: Virt: Generate SRAT table
        ACPI: move acpi_build_srat_memory to common place
        ...
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      e4f70d63
    • P
      Merge remote-tracking branch 'remotes/armbru/tags/pull-qapi-2016-05-12' into staging · 6ddeefff
      Peter Maydell 提交于
      QAPI patches for 2016-05-12
      
      # gpg: Signature made Thu 12 May 2016 08:49:04 BST 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-05-12: (23 commits)
        qapi: Change visit_type_FOO() to no longer return partial objects
        qapi: Simplify semantics of visit_next_list()
        qapi: Fix string input visitor handling of invalid list
        tests/string-input-visitor: Add negative integer tests
        qapi: Split visit_end_struct() into pieces
        qmp: Tighten output visitor rules
        qmp: Don't reuse qmp visitor after grabbing output
        spapr_drc: Expose 'null' in qom-get when there is no fdt
        qmp: Support explicit null during visits
        qapi: Add visit_type_null() visitor
        tests: Add check-qnull
        qapi: Document visitor interfaces, add assertions
        qmp-input: Refactor when list is advanced
        qmp-input: Require struct push to visit members of top dict
        qom: Wrap prop visit in visit_start_struct
        qapi-commands: Wrap argument visit in visit_start_struct
        qmp-input: Don't consume input when checking has_member
        qapi: Use strict QMP input visitor in more places
        qapi: Consolidate QMP input visitor creation
        qmp-input: Clean up stack handling
        ...
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      6ddeefff
    • K
      Merge remote-tracking branch 'mreitz/tags/pull-block-for-kevin-2016-05-12' into queue-block · efc2645f
      Kevin Wolf 提交于
      Block patches for 2.7
      
      # gpg: Signature made Thu May 12 15:34:13 2016 CEST using RSA key ID E838ACAD
      # gpg: Good signature from "Max Reitz <mreitz@redhat.com>"
      
      * mreitz/tags/pull-block-for-kevin-2016-05-12:
        qemu-iotests: iotests: fail hard if not run via "check"
        block: enable testing of LUKS driver with block I/O tests
        block: add support for encryption secrets in block I/O tests
        block: add support for --image-opts in block I/O tests
        qemu-io: Add 'write -z -u' to test MAY_UNMAP flag
        qemu-io: Add 'write -f' to test FUA flag
        qemu-io: Allow unaligned access by default
        qemu-io: Use bool for command line flags
        qemu-io: Make 'open' subcommand more like command line
        qemu-io: Add missing option documentation
        qmp: add monitor command to add/remove a child
        quorum: implement bdrv_add_child() and bdrv_del_child()
        Add new block driver interface to add/delete a BDS's child
        qemu-img: check block status of backing file when converting.
        iotests: fix the redirection order in 083
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      efc2645f
    • P
      Merge remote-tracking branch 'remotes/kraxel/tags/pull-usb-20160511-1' into staging · f83b70f7
      Peter Maydell 提交于
      usb: misc fixes
      
      # gpg: Signature made Wed 11 May 2016 12:18:25 BST using RSA key ID D3E87138
      # 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>"
      
      * remotes/kraxel/tags/pull-usb-20160511-1:
        usb: Support compilation without poll.h
        usb-mtp: fix usb_mtp_get_device_info so that libmtp on the guest doesn't complain
        usb:xhci: no DMA on HC reset
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      f83b70f7
    • S
      qemu-iotests: iotests: fail hard if not run via "check" · 5a8fabf3
      Sascha Silbe 提交于
      Running an iotests-based Python test directly might appear to work,
      but may fail in subtle ways and is insecure:
      
      - It creates files with predictable file names in a world-writable
        location (/var/tmp).
      
      - Tests expect the environment to be set up by check. E.g. 041 and 055
        may take the wrong code paths if QEMU_DEFAULT_MACHINE is not
        set. This can lead to false negatives.
      
      Instead fail hard and tell the user we want to be run via "check".
      
      The actual environment expected by the tests is currently only defined
      by the implementation of "check". We use two of the environment
      variables set by "check" as indication of whether we're being run via
      "check". Anyone writing their own test runner (replacing "check") will
      need to replicate the full environment (in a broader sense, not just
      environment variables) provided by "check" anyway, including setting
      the two environment variables we check. Whereas a regular developer
      just trying to invoke the tests usually won't have both of these
      defined in their environment so we can catch their mistake and give
      out useful advice.
      Signed-off-by: NSascha Silbe <silbe@linux.vnet.ibm.com>
      Reviewed-by: NBo Tu <tubo@linux.vnet.ibm.com>
      Message-id: 1461094442-16014-1-git-send-email-silbe@linux.vnet.ibm.com
      Signed-off-by: NMax Reitz <mreitz@redhat.com>
      5a8fabf3
    • D
      block: enable testing of LUKS driver with block I/O tests · 4e9b25fb
      Daniel P. Berrange 提交于
      This adds support for testing the LUKS driver with the block
      I/O test framework.
      
         cd tests/qemu-io-tests
         ./check -luks
      
      A handful of test cases are modified to work with luks
      
       - 004 - whitelist luks format
       - 012 - use TEST_IMG_FILE instead of TEST_IMG for file ops
       - 048 - use TEST_IMG_FILE instead of TEST_IMG for file ops.
               don't assume extended image contents is all zeros,
               explicitly initialize with zeros
               Make file size smaller to avoid having to decrypt
               1 GB of data.
       - 052 - don't assume initial image contents is all zeros,
               explicitly initialize with zeros
       - 100 - don't assume initial image contents is all zeros,
               explicitly initialize with zeros
      
      With this patch applied, the results are as follows:
      
        Passed: 001 002 003 004 005 008 009 010 011 012 021 032 043
                047 048 049 052 087 100 134 143
        Failed: 033 120 140 145
       Skipped: 007 013 014 015 017 018 019 020 022 023 024 025 026
                027 028 029 030 031 034 035 036 037 038 039 040 041
                042 043 044 045 046 047 049 050 051 053 054 055 056
                057 058 059 060 061 062 063 064 065 066 067 068 069
                070 071 072 073 074 075 076 077 078 079 080 081 082
                083 084 085 086 087 088 089 090 091 092 093 094 095
                096 097 098 099 101 102 103 104 105 107 108 109 110
                111 112 113 114 115 116 117 118 119 121 122 123 124
                128 129 130 131 132 133 134 135 136 137 138 139 141
                142 144 146 148 150 152
      
      The reasons for the failed tests are:
      
       - 033 - needs adapting to use image opts syntax with blkdebug
               and test image in order to correctly set align property
       - 120 - needs adapting to use correct -drive syntax for luks
       - 140 - needs adapting to use correct -drive syntax for luks
       - 145 - needs adapting to use correct -drive syntax for luks
      
      The vast majority of skipped tests are exercising code that is
      qcow2 specific, though a couple could probably be usefully
      enabled for luks too.
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      Message-id: 1462896689-18450-4-git-send-email-berrange@redhat.com
      Signed-off-by: NMax Reitz <mreitz@redhat.com>
      4e9b25fb