1. 25 12月, 2014 1 次提交
  2. 09 9月, 2014 2 次提交
    • C
      arm/virt: Use PSCI v0.2 function IDs in the DT when KVM uses PSCI v0.2 · 504e2a71
      Christoffer Dall 提交于
      The current code supplies the PSCI v0.1 function IDs in the DT even when
      KVM uses PSCI v0.2.
      
      This will break guest kernels that only support PSCI v0.1 as they will
      use the IDs provided in the DT.  Guest kernels with PSCI v0.2 support
      are not affected by this patch, because they ignore the function IDs in
      the device tree and rely on the architecture definition.
      
      Define QEMU versions of the constants and check that they correspond to
      the Linux defines on Linux build hosts.  After this patch, both guest
      kernels with PSCI v0.1 support and guest kernels with PSCI v0.2 should
      work.
      
      Tested on TC2 for 32-bit and APM Mustang for 64-bit (aarch64 guest
      only).  Both cases tested with 3.14 and linus/master and verified I
      could bring up 2 cpus with both guest kernels.  Also tested 32-bit with
      a 3.14 host kernel with only PSCI v0.1 and both guests booted here as
      well.
      
      Cc: qemu-stable@nongnu.org
      Signed-off-by: NChristoffer Dall <christoffer.dall@linaro.org>
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      (cherry picked from commit 863714ba)
      Signed-off-by: NMichael Roth <mdroth@linux.vnet.ibm.com>
      504e2a71
    • C
      target-arm: Rename QEMU PSCI v0.1 definitions · 2f6d5e1c
      Christoffer Dall 提交于
      The function IDs for PSCI v0.1 are exported by KVM and defined as
      KVM_PSCI_FN_<something>.  To build using these defines in non-KVM code,
      QEMU defines these IDs locally and check their correctness against the
      KVM headers when those are available.
      
      However, the naming scheme used for QEMU (almost) clashes with the PSCI
      v0.2 definitions from Linux so to avoid unfortunate naming when we
      introduce local PSCI v0.2 defines, rename the current local defines with
      QEMU_ prependend and clearly identify the PSCI version as v0.1 in the
      defines.
      
      Cc: qemu-stable@nongnu.org
      Signed-off-by: NChristoffer Dall <christoffer.dall@linaro.org>
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      (cherry picked from commit a65c9c17)
      Signed-off-by: NMichael Roth <mdroth@linux.vnet.ibm.com>
      2f6d5e1c
  3. 30 7月, 2014 1 次提交
  4. 30 6月, 2014 1 次提交
  5. 20 6月, 2014 1 次提交
  6. 28 5月, 2014 1 次提交
  7. 01 5月, 2014 3 次提交
  8. 18 3月, 2014 1 次提交
  9. 20 12月, 2013 1 次提交
  10. 10 12月, 2013 2 次提交
    • P
      hw/arm/virt: Support -cpu host · 198aa064
      Peter Maydell 提交于
      Support -cpu host in virt machine (treating it like an A15, ie
      with a GIC v2 and the A15's private peripherals.)
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Reviewed-by: NChristoffer Dall <christoffer.dall@linaro.org>
      Message-id: 1385140638-10444-12-git-send-email-peter.maydell@linaro.org
      198aa064
    • P
      hw/arm: Add 'virt' platform · f5fdcd6e
      Peter Maydell 提交于
      Add 'virt' platform support corresponding to arch/arm/mach-virt
      in the Linux kernel tree. This has no platform-specific code but
      can use any device whose kernel driver is is able to work purely
      from a device tree node. We use this to instantiate a minimal
      set of devices: a GIC and some virtio-mmio transports.
      Signed-off-by: NJohn Rigby <john.rigby@linaro.org>
      Reviewed-by: NChristoffer Dall <christoffer.dall@linaro.org>
      Message-id: 1385140638-10444-8-git-send-email-peter.maydell@linaro.org
      [PMM:
       Significantly overhauled:
       * renamed user-facing machine to just "virt"
       * removed the A9 support (it can't work since the A9 has no
         generic timers)
       * added virtio-mmio transports instead of random set of 'soc' devices
         (though we retain a pl011 UART)
       * instead of updating io_base as we step through adding devices,
         define a memory map with an array (similar to vexpress)
       * similarly, define irqmap with an array
       * folded in some minor fixes from John's aarch64-support patch
       * rather than explicitly doing endian-swapping on FDT cells,
         use fdt APIs that let us just pass in host-endian values
         and let the fdt layer take care of the swapping
       * miscellaneous minor code cleanups and style fixes
      ]
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      f5fdcd6e