1. 18 2月, 2016 5 次提交
    • P
      target-arm: Implement MDCR_EL3.TDOSA and MDCR_EL2.TDOSA traps · 187f678d
      Peter Maydell 提交于
      Implement the traps to EL2 and EL3 controlled by the bits
      MDCR_EL2.TDOSA MDCR_EL3.TDOSA. These can configurably trap
      accesses to the "powerdown debug" registers.
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Reviewed-by: NSergey Fedorov <serge.fdrv@gmail.com>
      187f678d
    • P
      target-arm: Fix handling of SCR.SMD · f096e92b
      Peter Maydell 提交于
      We weren't quite implementing the handling of SCR.SMD correctly.
      The condition governing whether the SMD bit should apply only
      for NS state is "is EL3 is AArch32", not "is the current EL AArch32".
      Fix the condition, and clarify the comment both to reflect this and
      to expand slightly on what's going on for the v7-no-Virtualization case.
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Reviewed-by: NSergey Fedorov <serge.fdrv@gmail.com>
      Reviewed-by: NEdgar E. Iglesias <edgar.iglesias@xilinx.com>
      f096e92b
    • P
      target-arm: correct CNTFRQ access rights · 75502672
      Peter Maydell 提交于
      Correct some corner cases we were getting wrong for
      CNTFRQ access rights:
       * should UNDEF from 32-bit Secure EL1
       * only writable from the highest implemented exception level,
         which might not be EL1 now
      
      To clarify the code, provide a new utility function
      arm_highest_el() which returns the highest implemented
      exception level.
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Reviewed-by: NSergey Fedorov <serge.fdrv@gmail.com>
      Reviewed-by: NEdgar E. Iglesias <edgar.iglesias@xilinx.com>
      75502672
    • P
      Merge remote-tracking branch 'remotes/dgibson/tags/ppc-for-2.6-20160218' into staging · 339b665c
      Peter Maydell 提交于
      ppc patch queue for 2016-02-18
      
      Currently accumulated patches for target-ppc, pseries machine type and
      related devices.
        * Some cleanups to management of SDR1 and the hashed page table
        * Implementations of a number of simple PAPR hypercalls
        * Significant improvements to the Macintosh CUDA device
        * Several bugfixes
      
      # gpg: Signature made Thu 18 Feb 2016 04:16:51 GMT using RSA key ID 20D9B392
      # gpg: Good signature from "David Gibson <david@gibson.dropbear.id.au>"
      # gpg:                 aka "David Gibson (Red Hat) <dgibson@redhat.com>"
      # gpg:                 aka "David Gibson (ozlabs.org) <dgibson@ozlabs.org>"
      # 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: 75F4 6586 AE61 A66C C44E  87DC 6C38 CACA 20D9 B392
      
      * remotes/dgibson/tags/ppc-for-2.6-20160218: (26 commits)
        hw/ppc/spapr: Halt CPU when powering off via RTAS call
        pseries: Include missing pseries-2.5 compat properties in pseries-2.4
        cuda: remove CUDA_GET_SET_IIC/CUDA_COMBINED_FORMAT_IIC commands
        cuda: remove GET_6805_ADDR command
        cuda: port SET_TIME command to new framework
        cuda: port GET_TIME command to new framework
        cuda: port SET_POWER_MESSAGES command to new framework
        cuda: port FILE_SERVER_FLAG command to new framework
        cuda: port RESET_SYSTEM command to new framework
        cuda: port POWERDOWN command to new framework
        cuda: port SET_DEVICE_LIST command to new framework
        cuda: port SET_AUTO_RATE command to new framework
        cuda: port AUTOPOLL command to new framework
        cuda: move unknown commands reject out of switch
        cuda: add a framework to handle commands
        hw/ppc/spapr: Implement the h_set_xdabr hypercall
        hw/ppc/spapr: Implement h_set_dabr
        hw/ppc/spapr: Add h_set_sprg0 hypercall
        migration: ensure htab_save_first completes after timeout
        target-ppc: Remove hack for ppc_hash64_load_hpte*() with HV KVM
        ...
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      339b665c
    • T
      hw/ppc/spapr: Halt CPU when powering off via RTAS call · 8a9c1b77
      Thomas Huth 提交于
      The LoPAPR specification defines the following for the RTAS
      power-off call: "On successful operation, does not return".
      However, the implementation in QEMU currently returns and runs
      the guest CPU again for some more cycles. This caused some
      trouble with the new ppc implementation of the kvm-unit-tests
      recently. So let's make sure that the QEMU implementation
      follows the spec, thus stop the CPU to make sure that the
      RTAS call does not return to the guest anymore.
      Signed-off-by: NThomas Huth <thuth@redhat.com>
      Tested-by: NAndrew Jones <drjones@redhat.com>
      Signed-off-by: NDavid Gibson <david@gibson.dropbear.id.au>
      8a9c1b77
  2. 17 2月, 2016 35 次提交