1. 22 11月, 2018 6 次提交
  2. 21 11月, 2018 6 次提交
  3. 20 11月, 2018 23 次提交
  4. 19 11月, 2018 5 次提交
    • P
      Merge remote-tracking branch 'remotes/pmaydell/tags/pull-target-arm-20181119' into staging · d304cf01
      Peter Maydell 提交于
      target-arm queue:
       * various MAINTAINERS file updates
       * hw/block/onenand: use qemu_log_mask() for reporting
       * hw/block/onenand: Fix off-by-one error allowing out-of-bounds read
         on the n800 and n810 machine models
       * target/arm: fix smc incorrectly trapping to EL3 when secure is off
       * hw/arm/stm32f205: Fix the UART and Timer region size
       * target/arm: read ID registers for KVM guests so they can be
         used to gate "is feature X present" checks
      
      # gpg: Signature made Mon 19 Nov 2018 15:56:44 GMT
      # gpg:                using RSA key 3C2525ED14360CDE
      # 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>"
      # Primary key fingerprint: E1A5 C593 CD41 9DE2 8E83  15CF 3C25 25ED 1436 0CDE
      
      * remotes/pmaydell/tags/pull-target-arm-20181119:
        MAINTAINERS: list myself as maintainer for various Arm boards
        hw/block/onenand: use qemu_log_mask() for reporting
        hw/block/onenand: Fix off-by-one error allowing out-of-bounds read
        target/arm: fix smc incorrectly trapping to EL3 when secure is off
        hw/arm/stm32f205: Fix the UART and Timer region size
        MAINTAINERS: Add entries for missing ARM boards
        target/arm: Fill in ARMISARegisters for kvm32
        target/arm: Introduce read_sys_reg32 for kvm32
        target/arm: Fill in ARMISARegisters for kvm64
        target/arm: Install ARMISARegisters from kvm host
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      d304cf01
    • P
      MAINTAINERS: list myself as maintainer for various Arm boards · a00d7f20
      Peter Maydell 提交于
      In practice for most of the more-or-less orphan Arm board models,
      I will review patches and put them in via the target-arm tree.
      So list myself as an "Odd Fixes" status maintainer for them.
      
      This commit downgrades these boards to "Odd Fixes":
       * Allwinner-A10
       * Exynos
       * Calxeda Highbank
       * Canon DIGIC
       * Musicpal
       * nSeries
       * Palm
       * PXA2xx
      
      These boards were already "Odd Fixes":
       * Gumstix
       * i.MX31 (kzm)
      
      Philippe Mathieu-Daudé has requested to be moved to R:
      status for Gumstix now that I am listed as the M: contact.
      
      Some boards are maintained, but their patches still go
      via the target-arm tree, so add myself as a secondary
      maintainer contact for those:
       * Xilinx Zynq
       * Xilinx ZynqMP
       * STM32F205
       * Netduino 2
       * SmartFusion2
       * Mecraft M2S-FG484
       * ASPEED BMCs
       * NRF51
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Reviewed-by: NPhilippe Mathieu-Daudé <philmd@redhat.com>
      Reviewed-by: NThomas Huth <thuth@redhat.com>
      Message-id: 20181108134139.31666-1-peter.maydell@linaro.org
      a00d7f20
    • P
      hw/block/onenand: use qemu_log_mask() for reporting · 9e6e9247
      Peter Maydell 提交于
      Update the onenand device to use qemu_log_mask() for reporting
      guest errors and unimplemented features, rather than plain
      fprintf() and hw_error().
      
      (We leave the hw_error() in onenand_reset(), as that is
      triggered by a failure to read the underlying block device
      for the bootRAM, not by guest action.)
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Reviewed-by: NPhilippe Mathieu-Daudé <philmd@redhat.com>
      Reviewed-by: NRichard Henderson <richard.henderson@linaro.org>
      Reviewed-by: NThomas Huth <thuth@redhat.com>
      Tested-by: NPhilippe Mathieu-Daudé <philmd@redhat.com>
      Message-id: 20181115143535.5885-3-peter.maydell@linaro.org
      9e6e9247
    • P
      hw/block/onenand: Fix off-by-one error allowing out-of-bounds read · fcf5787c
      Peter Maydell 提交于
      An off-by-one error in a switch case in onenand_read() allowed
      a misbehaving guest to read off the end of a block of memory.
      
      NB: the onenand device is used only by the "n800" and "n810"
      machines, which are usable only with TCG, not KVM, so this is
      not a security issue.
      Reported-by: NThomas Huth <thuth@redhat.com>
      Reviewed-by: NPhilippe Mathieu-Daudé <philmd@redhat.com>
      Reviewed-by: NRichard Henderson <richard.henderson@linaro.org>
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Message-id: 20181115143535.5885-2-peter.maydell@linaro.org
      Suggested-by: NRichard Henderson <richard.henderson@linaro.org>
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      fcf5787c
    • L
      target/arm: fix smc incorrectly trapping to EL3 when secure is off · 7760da72
      Luc Michel 提交于
      This commit fixes a case where the CPU would try to go to EL3 when
      executing an smc instruction, even though ARM_FEATURE_EL3 is false. This
      case is raised when the PSCI conduit is set to smc, but the smc
      instruction does not lead to a valid PSCI call.
      
      QEMU crashes with an assertion failure latter on because of incoherent
      mmu_idx.
      
      This commit refactors the pre_smc helper by enumerating all the possible
      way of handling an scm instruction, and covering the previously missing
      case leading to the crash.
      
      The following minimal test would crash before this commit:
      
      .global _start
          .text
      _start:
          ldr x0, =0xdeadbeef  ; invalid PSCI call
          smc #0
      
      run with the following command line:
      
      aarch64-linux-gnu-gcc -nostdinc -nostdlib -Wl,-Ttext=40000000 \
                            -o test test.s
      
      qemu-system-aarch64 -M virt,virtualization=on,secure=off \
                          -cpu cortex-a57 -kernel test
      Signed-off-by: NLuc Michel <luc.michel@greensocs.com>
      Message-id: 20181117160213.18995-1-luc.michel@greensocs.com
      Reviewed-by: NPeter Maydell <peter.maydell@linaro.org>
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      7760da72