1. 21 7月, 2017 2 次提交
    • J
      target/mips: Fix TLBWI shadow flush for EHINV,XI,RI · eff6ff94
      James Hogan 提交于
      Writing specific TLB entries with TLBWI flushes shadow TLB entries
      unless an existing entry is having its access permissions upgraded. This
      is necessary as software would from then on expect the previous mapping
      in that entry to no longer be in effect (even if QEMU has quietly
      evicted it to the shadow TLB on a TLBWR).
      
      However it won't do this if only EHINV, XI, or RI bits have been set,
      even if that results in a reduction of permissions, so add the necessary
      checks to invoke the flush when these bits are set.
      
      Fixes: 2fb58b73 ("target-mips: add RI and XI fields to TLB entry")
      Fixes: 9456c2fb ("target-mips: add TLBINV support")
      Signed-off-by: NJames Hogan <james.hogan@imgtec.com>
      Cc: Yongbok Kim <yongbok.kim@imgtec.com>
      Cc: Aurelien Jarno <aurelien@aurel32.net>
      Tested-by: NYongbok Kim <yongbok.kim@imgtec.com>
      [yongbok.kim@imgtec.com:
        cosmetic changes]
      Signed-off-by: NYongbok Kim <yongbok.kim@imgtec.com>
      eff6ff94
    • J
      target/mips: Fix MIPS64 MFC0 UserLocal on BE host · e40df9a8
      James Hogan 提交于
      Using MFC0 to read CP0_UserLocal uses tcg_gen_ld32s_tl, however
      CP0_UserLocal is a target_ulong. On a big endian host with a MIPS64
      target this reads and sign extends the more significant half of the
      64-bit register.
      
      Fix this by using ld_tl to load the whole target_ulong and ext32s_tl to
      sign extend it, as done for various other target_ulong COP0 registers.
      
      Fixes: d279279e ("target-mips: implement UserLocal Register")
      Signed-off-by: NJames Hogan <james.hogan@imgtec.com>
      Cc: Yongbok Kim <yongbok.kim@imgtec.com>
      Cc: Aurelien Jarno <aurelien@aurel32.net>
      Cc: Petar Jovanovic <petar.jovanovic@imgtec.com>
      Reviewed-by: NYongbok Kim <yongbok.kim@imgtec.com>
      Signed-off-by: NYongbok Kim <yongbok.kim@imgtec.com>
      e40df9a8
  2. 20 7月, 2017 28 次提交
  3. 19 7月, 2017 10 次提交
    • P
      Merge remote-tracking branch 'remotes/sstabellini/tags/xen-20170718-tag' into staging · b3e46a89
      Peter Maydell 提交于
      Xen 2017/07/18
      
      # gpg: Signature made Tue 18 Jul 2017 23:18:16 BST
      # gpg:                using RSA key 0x894F8F4870E1AE90
      # gpg: Good signature from "Stefano Stabellini <stefano.stabellini@eu.citrix.com>"
      # gpg:                 aka "Stefano Stabellini <sstabellini@kernel.org>"
      # Primary key fingerprint: D04E 33AB A51F 67BA 07D3  0AEA 894F 8F48 70E1 AE90
      
      * remotes/sstabellini/tags/xen-20170718-tag:
        xen: don't use xenstore to save/restore physmap anymore
        xen/mapcache: introduce xen_replace_cache_entry()
        xen/mapcache: add an ability to create dummy mappings
        xen: move physmap saving into a separate function
        xen-platform: separate unplugging of NVMe disks
        xen_pt_msi.c: Check for xen_host_pci_get_* failures in xen_pt_msix_init()
        hw/xen: Set emu_mask for igd_opregion register
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      b3e46a89
    • P
      Merge remote-tracking branch 'remotes/aurel/tags/pull-target-sh4-20170718' into staging · a51568b7
      Peter Maydell 提交于
      Queued target/sh4 patches
      
      # gpg: Signature made Tue 18 Jul 2017 22:44:25 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 a trusted signature!
      # gpg:          There is no indication 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-20170718: (31 commits)
        target/sh4: Use tcg_gen_lookup_and_goto_ptr
        target/sh4: Implement fsrra
        target/sh4: Add missing FPSCR.PR == 0 checks
        target/sh4: Implement fpchg
        target/sh4: Introduce CHECK_SH4A
        target/sh4: Introduce CHECK_FPSCR_PR_*
        target/sh4: Tidy misc illegal insn checks
        target/sh4: Unify code for CHECK_FPU_ENABLED
        target/sh4: Unify code for CHECK_PRIVILEGED
        target/sh4: Unify code for CHECK_NOT_DELAY_SLOT
        target/sh4: Simplify 64-bit fp reg-reg move
        target/sh4: Load/store Dr as 64-bit quantities
        target/sh4: Merge DREG into fpr64 routines
        target/sh4: Eliminate unused XREG macro
        target/sh4: Hoist fp register bank selection
        target/sh4: Pass DisasContext to fpr64 routines
        target/sh4: Unify cpu_fregs into FREG
        target/sh4: Hoist register bank selection
        linux-user/sh4: Clean env->flags on signal boundaries
        linux-user/sh4: Notice gUSA regions during signal delivery
        ...
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      a51568b7
    • P
      Merge remote-tracking branch 'remotes/jnsnow/tags/ide-pull-request' into staging · 6d60e295
      Peter Maydell 提交于
      # gpg: Signature made Tue 18 Jul 2017 17:11:07 BST
      # gpg:                using RSA key 0x7DEF8106AAFC390E
      # gpg: Good signature from "John Snow (John Huston) <jsnow@redhat.com>"
      # Primary key fingerprint: FAEB 9711 A12C F475 812F  18F2 88A9 064D 1835 61EB
      #      Subkey fingerprint: F9B7 ABDB BCAC DF95 BE76  CBD0 7DEF 8106 AAFC 390E
      
      * remotes/jnsnow/tags/ide-pull-request:
        tests/ahci-test: Be mean with RAM
        ahci: split public and private interface
        ahci: Isolate public AHCI interface
        ahci: add ahci_get_num_ports
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      6d60e295
    • P
      Merge remote-tracking branch 'remotes/juanquintela/tags/migration/20170718' into staging · 988879b6
      Peter Maydell 提交于
      migration/next for 20170718
      
      # gpg: Signature made Tue 18 Jul 2017 16:39:33 BST
      # gpg:                using RSA key 0xF487EF185872D723
      # gpg: Good signature from "Juan Quintela <quintela@redhat.com>"
      # gpg:                 aka "Juan Quintela <quintela@trasno.org>"
      # 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: 1899 FF8E DEBF 58CC EE03  4B82 F487 EF18 5872 D723
      
      * remotes/juanquintela/tags/migration/20170718:
        migration: check global caps for validity
        migration: provide migrate_cap_add()
        migration: provide migrate_caps_check()
        migration: remove check against colo support
        migration: check global params for validity
        migration: provide migrate_params_apply()
        migration: introduce migrate_params_check()
        migration: export capabilities to props
        migration: export parameters to props
        qdev: provide DEFINE_PROP_INT64()
        migration/rdma: Send error during cancelling
        migration/rdma: Safely convert control types
        migration/rdma: Allow cancelling while waiting for wrid
        migration/rdma: fix qemu_rdma_block_for_wrid error paths
        migration: Close file on failed migration load
        migration/rdma: Fix race on source
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      988879b6
    • P
      Merge remote-tracking branch 'remotes/kevin/tags/for-upstream' into staging · f1a46e88
      Peter Maydell 提交于
      Block layer patches
      
      # gpg: Signature made Tue 18 Jul 2017 14:29:59 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
      
      * remotes/kevin/tags/for-upstream: (21 commits)
        qemu-img: Check for backing image if specified during create
        blockdev: move BDRV_O_NO_BACKING option forward
        block/vvfat: Fix compiler warning with gcc 7
        vvfat: initialize memory after allocating it
        vvfat: correctly parse non-ASCII short and long file names
        vvfat: add a constant for bootsector name
        vvfat: add constants for special values of name[0]
        qemu-iotests: Test unplug of -device without drive
        qemu-iotests: Test 'info block'
        scsi-disk: bdrv_attach_dev() for empty CD-ROM
        ide: bdrv_attach_dev() for empty CD-ROM
        block: List anonymous device BBs in query-block
        block/qapi: Use blk_all_next() for query-block
        block: Make blk_all_next() public
        block/qapi: Add qdev device name to query-block
        block: Make blk_get_attached_dev_id() public
        block/vpc.c: Handle write failures in get_image_offset()
        block/vmdk: Report failures in vmdk_read_cid()
        block: remove timer canceling in throttle_config()
        block: add clock_type field to ThrottleGroup
        ...
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      f1a46e88
    • L
      tests: crypto: add hmac speed benchmark support · c7a9af4b
      Longpeng(Mike) 提交于
      This patch add a hmac speed benchmark, it helps us to
      measure the performance by using "make check-speed" or
      using "./tests/benchmark-crypto-hmac" directly.
      Signed-off-by: NLongpeng(Mike) <longpeng2@huawei.com>
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      c7a9af4b
    • L
      tests: crypto: add hash speed benchmark support · 0128cd29
      Longpeng(Mike) 提交于
      This patch add a hash speed benchmark, it helps us to
      measure the performance by using "make check-speed" or
      using "./tests/benchmark-crypto-hash" directly.
      Signed-off-by: NLongpeng(Mike) <longpeng2@huawei.com>
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      0128cd29
    • L
      tests: crypto: add cipher speed benchmark support · 1efd9d5e
      Longpeng(Mike) 提交于
      Now we have two qcrypto backends, libiary-backend and afalg-backend,
      but which one is faster? This patch add a cipher speed benchmark, it
      helps us to measure the performance by using "make check-speed" or
      using "./tests/benchmark-crypto-cipher" directly.
      Signed-off-by: NLongpeng(Mike) <longpeng2@huawei.com>
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      1efd9d5e
    • L
      crypto: hmac: add af_alg-backend hmac support · 42e7e15f
      Longpeng(Mike) 提交于
      Adds afalg-backend hmac support: introduces some private APIs
      firstly, and then intergrates them into qcrypto_hmac_afalg_driver.
      Signed-off-by: NLongpeng(Mike) <longpeng2@huawei.com>
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      42e7e15f
    • L
      crypto: hash: add afalg-backend hash support · 9a059773
      Longpeng(Mike) 提交于
      Adds afalg-backend hash support: introduces some private APIs
      firstly, and then intergrates them into qcrypto_hash_afalg_driver.
      Signed-off-by: NLongpeng(Mike) <longpeng2@huawei.com>
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      9a059773