1. 03 1月, 2017 1 次提交
  2. 27 12月, 2016 1 次提交
  3. 25 12月, 2016 2 次提交
  4. 21 12月, 2016 3 次提交
  5. 15 12月, 2016 1 次提交
  6. 14 12月, 2016 1 次提交
  7. 13 12月, 2016 1 次提交
  8. 09 12月, 2016 1 次提交
    • M
      arm64: KVM: pmu: Reset PMSELR_EL0.SEL to a sane value before entering the guest · 21cbe3cc
      Marc Zyngier 提交于
      The ARMv8 architecture allows the cycle counter to be configured
      by setting PMSELR_EL0.SEL==0x1f and then accessing PMXEVTYPER_EL0,
      hence accessing PMCCFILTR_EL0. But it disallows the use of
      PMSELR_EL0.SEL==0x1f to access the cycle counter itself through
      PMXEVCNTR_EL0.
      
      Linux itself doesn't violate this rule, but we may end up with
      PMSELR_EL0.SEL being set to 0x1f when we enter a guest. If that
      guest accesses PMXEVCNTR_EL0, the access may UNDEF at EL1,
      despite the guest not having done anything wrong.
      
      In order to avoid this unfortunate course of events (haha!), let's
      sanitize PMSELR_EL0 on guest entry. This ensures that the guest
      won't explode unexpectedly.
      
      Cc: stable@vger.kernel.org #4.6+
      Acked-by: NWill Deacon <will.deacon@arm.com>
      Signed-off-by: NMarc Zyngier <marc.zyngier@arm.com>
      21cbe3cc
  9. 08 12月, 2016 6 次提交
  10. 07 12月, 2016 7 次提交
  11. 06 12月, 2016 2 次提交
  12. 05 12月, 2016 1 次提交
  13. 03 12月, 2016 3 次提交
  14. 02 12月, 2016 5 次提交
  15. 01 12月, 2016 3 次提交
  16. 30 11月, 2016 2 次提交