1. 22 6月, 2018 9 次提交
    • E
      hw/intc/arm_gicv3: Introduce redist-region-count array property · 1e575b66
      Eric Auger 提交于
      To prepare for multiple redistributor regions, we introduce
      an array of uint32_t properties that stores the redistributor
      count of each redistributor region.
      
      Non accelerated VGICv3 only supports a single redistributor region.
      The capacity of all redist regions is checked against the number of
      vcpus.
      
      Machvirt is updated to set those properties, ie. a single
      redistributor region with count set to the number of vcpus
      capped by 123.
      Signed-off-by: NEric Auger <eric.auger@redhat.com>
      Reviewed-by: NAndrew Jones <drjones@redhat.com>
      Message-id: 1529072910-16156-4-git-send-email-eric.auger@redhat.com
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      1e575b66
    • E
      target/arm: Allow KVM device address overwriting · 19d1bd0b
      Eric Auger 提交于
      for KVM_VGIC_V3_ADDR_TYPE_REDIST_REGION attribute, the attribute
      data pointed to by kvm_device_attr.addr is a OR of the
      redistributor region address and other fields such as the index
      of the redistributor region and the number of redistributors the
      region can contain.
      
      The existing machine init done notifier framework sets the address
      field to the actual address of the device and does not allow to OR
      this value with other fields.
      
      This patch extends the KVMDevice struct with a new kda_addr_ormask
      member. Its value is passed at registration time and OR'ed with the
      resolved address on kvm_arm_set_device_addr().
      Signed-off-by: NEric Auger <eric.auger@redhat.com>
      Reviewed-by: NPeter Maydell <peter.maydell@linaro.org>
      Message-id: 1529072910-16156-3-git-send-email-eric.auger@redhat.com
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      19d1bd0b
    • E
      linux-headers: Update to kernel mainline commit b357bf602 · 77d361b1
      Eric Auger 提交于
      Update our kernel headers to mainline commit
      b357bf6023a948cf6a9472f07a1b0caac0e4f8e8
      ("Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm")
      Signed-off-by: NEric Auger <eric.auger@redhat.com>
      Message-id: 1529072910-16156-2-git-send-email-eric.auger@redhat.com
      [PMM:  clarified commit message]
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      77d361b1
    • Z
      target-arm: fix a segmentation fault due to illegal memory access · 5ff9aaab
      Zheng Xiang 提交于
      The elements of kvm_devices_head list are freed in kvm_arm_machine_init_done(),
      but we still access these illegal memory in kvm_arm_devlistener_del().
      
      This will cause segment fault when booting guest with MALLOC_PERTURB_=1.
      Signed-off-by: NZheng Xiang <xiang.zheng@linaro.org>
      Message-id: 20180619075821.9884-1-zhengxiang9@huawei.com
      Reviewed-by: NPeter Maydell <peter.maydell@linaro.org>
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      5ff9aaab
    • J
      target/arm: Minor cleanup for ARMv6-M 32-bit instructions · 8297cb13
      Julia Suvorova 提交于
      The arrays were made static, "if" was simplified because V7M and V8M
      define V6 feature.
      Signed-off-by: NJulia Suvorova <jusual@mail.ru>
      Reviewed-by: NStefan Hajnoczi <stefanha@redhat.com>
      Message-id: 20180618214604.6777-1-jusual@mail.ru
      Reviewed-by: NPeter Maydell <peter.maydell@linaro.org>
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      8297cb13
    • A
      hw/intc/arm_gicv3: fix an extra left-shift when reading IPRIORITYR · d419890c
      Amol Surati 提交于
      When either GICD_IPRIORITYR or GICR_IPRIORITYR is read as a 32-bit
      register, the post left-shift operator in the for loop causes an
      extra shift after the least significant byte has been placed.
      
      The 32-bit value actually returned is therefore the expected value
      shifted left by 8 bits.
      Signed-off-by: NAmol Surati <suratiamol@gmail.com>
      Message-id: 20180614054857.26248-1-suratiamol@gmail.com
      Reviewed-by: NPeter Maydell <peter.maydell@linaro.org>
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      d419890c
    • P
      Merge remote-tracking branch 'remotes/stsquad/tags/pull-tcg-testing-revivial-210618-2' into staging · de44c044
      Peter Maydell 提交于
      Add check-tcg machinary
      
      This restores the ability to run TCG smoke tests by using our docker
      infrastructure to support cross building simple tests. It represents
      the first step to making better cross-architecture testing available
      straight from the source tree ;-)
      
      v2
        - fix quoting of target_compiler
        - make docker.py Py3 safe
        - tweak .travis.yml recipe
        - don't probe docker when HAVE_USER_DOCKER not set
      
      # gpg: Signature made Thu 21 Jun 2018 07:23:45 BST
      # gpg:                using RSA key FBD0DB095A9E2A44
      # gpg: Good signature from "Alex Bennée (Master Work Key) <alex.bennee@linaro.org>"
      # Primary key fingerprint: 6685 AE99 E751 67BC AFC8  DF35 FBD0 DB09 5A9E 2A44
      
      * remotes/stsquad/tags/pull-tcg-testing-revivial-210618-2: (57 commits)
        .travis.yml: add check-tcg test
        tests/docker/Makefile.include: only force SID to NOCACHE if old
        docker: docker.py adding age check command
        tests/Makefile: call sub-makes with SKIP_DOCKER_BUILD=1
        docker: docker.py add check sub-command
        docker: docker.py don't conflate checksums for extra_files
        docker: docker.py use "version" to probe usage
        tests: add top-level make dependency for docker builds
        tests/tcg/i386: extend timeout for runcom test
        tests/tcg: override runners for broken tests
        tests/tcg: add run, diff, and skip helper macros
        tests/Makefile.include: add [build|clean|check]-tcg targets
        Makefile.target: add (clean-/build-)guest-tests targets
        tests/tcg/Makefile: update to be called from Makefile.target
        tests/tcg: enable building for PowerPC
        docker: move debian-powerpc-cross to sid based build
        tests/tcg: enable building for RISCV64
        tests/tcg: enable building for mips64
        tests/tcg: enable building for sparc64
        tests/tcg: enable building for sh4
        ...
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      de44c044
    • P
      Merge remote-tracking branch 'remotes/ericb/tags/pull-nbd-2018-06-20-v2' into staging · 409ef9eb
      Peter Maydell 提交于
      nbd patches for 2018-06-20
      
      Add experimental x-nbd-server-add-bitmap to expose a disabled
      bitmap over NBD, in preparation for a pull model incremental
      backup scheme. Also fix a corner case protocol issue with
      NBD_CMD_BLOCK_STATUS, and add new NBD_CMD_CACHE.
      
      - Eric Blake: tests: Simplify .gitignore
      - Eric Blake: nbd/server: Reject 0-length block status request
      - Vladimir Sementsov-Ogievskiy: 0/6 NBD export bitmaps
      - Vladimir Sementsov-Ogievskiy: nbd/server: introduce NBD_CMD_CACHE
      
      # gpg: Signature made Thu 21 Jun 2018 15:53:55 BST
      # gpg:                using RSA key A7A16B4A2527436A
      # gpg: Good signature from "Eric Blake <eblake@redhat.com>"
      # gpg:                 aka "Eric Blake (Free Software Programmer) <ebb9@byu.net>"
      # gpg:                 aka "[jpeg image of size 6874]"
      # Primary key fingerprint: 71C2 CC22 B1C4 6029 27D2  F3AA A7A1 6B4A 2527 436A
      
      * remotes/ericb/tags/pull-nbd-2018-06-20-v2:
        nbd/server: introduce NBD_CMD_CACHE
        docs/interop: add nbd.txt
        qapi: new qmp command nbd-server-add-bitmap
        nbd/server: implement dirty bitmap export
        nbd/server: add nbd_meta_empty_or_pattern helper
        nbd/server: refactor NBDExportMetaContexts
        nbd/server: fix trace
        nbd/server: Reject 0-length block status request
        tests: Simplify .gitignore
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      409ef9eb
    • P
      Merge remote-tracking branch 'remotes/rth/tags/pull-tcg-20180615' into staging · 33836a73
      Peter Maydell 提交于
      TCG patch queue:
      
      Workaround macos assembler lossage.
      Eliminate tb_lock.
      Fix TB code generation overflow.
      
      # gpg: Signature made Fri 15 Jun 2018 20:40:56 BST
      # gpg:                using RSA key 64DF38E8AF7E215F
      # gpg: Good signature from "Richard Henderson <richard.henderson@linaro.org>"
      # Primary key fingerprint: 7A48 1E78 868B 4DB6 A85A  05C0 64DF 38E8 AF7E 215F
      
      * remotes/rth/tags/pull-tcg-20180615:
        tcg: Reduce max TB opcode count
        tcg: remove tb_lock
        translate-all: remove tb_lock mention from cpu_restore_state_from_tb
        cputlb: remove tb_lock from tlb_flush functions
        translate-all: protect TB jumps with a per-destination-TB lock
        translate-all: discard TB when tb_link_page returns an existing matching TB
        translate-all: introduce assert_no_pages_locked
        translate-all: add page_locked assertions
        translate-all: use per-page locking in !user-mode
        translate-all: move tb_invalidate_phys_page_range up in the file
        translate-all: work page-by-page in tb_invalidate_phys_range_1
        translate-all: remove hole in PageDesc
        translate-all: make l1_map lockless
        translate-all: iterate over TBs in a page with PAGE_FOR_EACH_TB
        tcg: move tb_ctx.tb_phys_invalidate_count to tcg_ctx
        tcg: track TBs with per-region BST's
        qht: return existing entry when qht_insert fails
        qht: require a default comparison function
        tcg/i386: Use byte form of xgetbv instruction
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      33836a73
  2. 21 6月, 2018 31 次提交