1. 16 12月, 2021 1 次提交
    • Q
      KVM: arm64: Introduce kvm_share_hyp() · 3f868e14
      Quentin Perret 提交于
      The create_hyp_mappings() function can currently be called at any point
      in time. However, its behaviour in protected mode changes widely
      depending on when it is being called. Prior to KVM init, it is used to
      create the temporary page-table used to bring-up the hypervisor, and
      later on it is transparently turned into a 'share' hypercall when the
      kernel has lost control over the hypervisor stage-1. In order to prepare
      the ground for also unsharing pages with the hypervisor during guest
      teardown, introduce a kvm_share_hyp() function to make it clear in which
      places a share hypercall should be expected, as we will soon need a
      matching unshare hypercall in all those places.
      Signed-off-by: NQuentin Perret <qperret@google.com>
      Signed-off-by: NMarc Zyngier <maz@kernel.org>
      Link: https://lore.kernel.org/r/20211215161232.1480836-7-qperret@google.com
      3f868e14
  2. 01 12月, 2021 4 次提交
  3. 23 11月, 2021 1 次提交
  4. 18 11月, 2021 1 次提交
  5. 08 11月, 2021 1 次提交
  6. 17 10月, 2021 1 次提交
  7. 11 10月, 2021 5 次提交
  8. 01 10月, 2021 1 次提交
  9. 20 8月, 2021 2 次提交
  10. 19 8月, 2021 3 次提交
  11. 18 8月, 2021 3 次提交
  12. 11 8月, 2021 1 次提交
  13. 04 8月, 2021 1 次提交
  14. 30 7月, 2021 1 次提交
  15. 22 6月, 2021 2 次提交
  16. 18 6月, 2021 1 次提交
  17. 11 6月, 2021 1 次提交
  18. 27 5月, 2021 1 次提交
  19. 26 5月, 2021 1 次提交
    • F
      arm64: Rename arm64-internal cache maintenance functions · fade9c2c
      Fuad Tabba 提交于
      Although naming across the codebase isn't that consistent, it
      tends to follow certain patterns. Moreover, the term "flush"
      isn't defined in the Arm Architecture reference manual, and might
      be interpreted to mean clean, invalidate, or both for a cache.
      
      Rename arm64-internal functions to make the naming internally
      consistent, as well as making it consistent with the Arm ARM, by
      specifying whether it applies to the instruction, data, or both
      caches, whether the operation is a clean, invalidate, or both.
      Also specify which point the operation applies to, i.e., to the
      point of unification (PoU), coherency (PoC), or persistence
      (PoP).
      
      This commit applies the following sed transformation to all files
      under arch/arm64:
      
      "s/\b__flush_cache_range\b/caches_clean_inval_pou_macro/g;"\
      "s/\b__flush_icache_range\b/caches_clean_inval_pou/g;"\
      "s/\binvalidate_icache_range\b/icache_inval_pou/g;"\
      "s/\b__flush_dcache_area\b/dcache_clean_inval_poc/g;"\
      "s/\b__inval_dcache_area\b/dcache_inval_poc/g;"\
      "s/__clean_dcache_area_poc\b/dcache_clean_poc/g;"\
      "s/\b__clean_dcache_area_pop\b/dcache_clean_pop/g;"\
      "s/\b__clean_dcache_area_pou\b/dcache_clean_pou/g;"\
      "s/\b__flush_cache_user_range\b/caches_clean_inval_user_pou/g;"\
      "s/\b__flush_icache_all\b/icache_inval_all_pou/g;"
      
      Note that __clean_dcache_area_poc is deliberately missing a word
      boundary check at the beginning in order to match the efistub
      symbols in image-vars.h.
      
      Also note that, despite its name, __flush_icache_range operates
      on both instruction and data caches. The name change here
      reflects that.
      
      No functional change intended.
      Acked-by: NMark Rutland <mark.rutland@arm.com>
      Signed-off-by: NFuad Tabba <tabba@google.com>
      Reviewed-by: NArd Biesheuvel <ardb@kernel.org>
      Link: https://lore.kernel.org/r/20210524083001.2586635-19-tabba@google.comSigned-off-by: NWill Deacon <will@kernel.org>
      fade9c2c
  20. 15 5月, 2021 1 次提交
  21. 17 4月, 2021 2 次提交
  22. 07 4月, 2021 3 次提交
  23. 06 4月, 2021 1 次提交
  24. 31 3月, 2021 1 次提交