1. 26 7月, 2022 1 次提交
  2. 06 7月, 2022 1 次提交
  3. 09 6月, 2022 2 次提交
    • M
      KVM: arm64: Move FP state ownership from flag to a tristate · f8077b0d
      Marc Zyngier 提交于
      The KVM FP code uses a pair of flags to denote three states:
      
      - FP_ENABLED set: the guest owns the FP state
      - FP_HOST set: the host owns the FP state
      - FP_ENABLED and FP_HOST clear: nobody owns the FP state at all
      
      and both flags set is an illegal state, which nothing ever checks
      for...
      
      As it turns out, this isn't really a good match for flags, and
      we'd be better off if this was a simpler tristate, each state
      having a name that actually reflect the state:
      
      - FP_STATE_FREE
      - FP_STATE_HOST_OWNED
      - FP_STATE_GUEST_OWNED
      
      Kill the two flags, and move over to an enum encoding these
      three states. This results in less confusing code, and less risk of
      ending up in the uncharted territory of a 4th state if we forget
      to clear one of the two flags.
      Signed-off-by: NMarc Zyngier <maz@kernel.org>
      Reviewed-by: NMark Brown <broonie@kernel.org>
      Reviewed-by: NReiji Watanabe <reijiw@google.com>
      f8077b0d
    • M
      KVM: arm64: Drop FP_FOREIGN_STATE from the hypervisor code · e9ada6c2
      Marc Zyngier 提交于
      The vcpu KVM_ARM64_FP_FOREIGN_FPSTATE flag tracks the thread's own
      TIF_FOREIGN_FPSTATE so that we can evaluate just before running
      the vcpu whether it the FP regs contain something that is owned
      by the vcpu or not by updating the rest of the FP flags.
      
      We do this in the hypervisor code in order to make sure we're
      in a context where we are not interruptible. But we already
      have a hook in the run loop to generate this flag. We may as
      well update the FP flags directly and save the pointless flag
      tracking.
      
      Whilst we're at it, rename update_fp_enabled() to guest_owns_fp_regs()
      to indicate what the leftover of this helper actually do.
      Signed-off-by: NMarc Zyngier <maz@kernel.org>
      Reviewed-by: NReiji Watanabe <reijiw@google.com>
      Reviewed-by: NMark Brown <broonie@kernel.org>
      e9ada6c2
  4. 16 5月, 2022 1 次提交
  5. 15 5月, 2022 1 次提交
  6. 10 5月, 2022 1 次提交
  7. 06 5月, 2022 1 次提交
    • R
      KVM: arm64: nvhe: Eliminate kernel-doc warnings · bd61395a
      Randy Dunlap 提交于
      Don't use begin-kernel-doc notation (/**) for comments that are not in
      kernel-doc format.
      
      This prevents these kernel-doc warnings:
      
      arch/arm64/kvm/hyp/nvhe/switch.c:126: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
       * Disable host events, enable guest events
      arch/arm64/kvm/hyp/nvhe/switch.c:146: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
       * Disable guest events, enable host events
      arch/arm64/kvm/hyp/nvhe/switch.c:164: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
       * Handler for protected VM restricted exceptions.
      arch/arm64/kvm/hyp/nvhe/switch.c:176: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
       * Handler for protected VM MSR, MRS or System instruction execution in AArch64.
      arch/arm64/kvm/hyp/nvhe/switch.c:196: warning: Function parameter or member 'vcpu' not described in 'kvm_handle_pvm_fpsimd'
      arch/arm64/kvm/hyp/nvhe/switch.c:196: warning: Function parameter or member 'exit_code' not described in 'kvm_handle_pvm_fpsimd'
      arch/arm64/kvm/hyp/nvhe/switch.c:196: warning: expecting prototype for Handler for protected floating(). Prototype was for kvm_handle_pvm_fpsimd() instead
      
      Fixes: 09cf57eb ("KVM: arm64: Split hyp/switch.c to VHE/nVHE")
      Fixes: 1423afcb ("KVM: arm64: Trap access to pVM restricted features")
      Signed-off-by: NRandy Dunlap <rdunlap@infradead.org>
      Reported-by: Nkernel test robot <lkp@intel.com>
      Cc: Fuad Tabba <tabba@google.com>
      Cc: Marc Zyngier <maz@kernel.org>
      Cc: David Brazdil <dbrazdil@google.com>
      Cc: James Morse <james.morse@arm.com>
      Cc: Alexandru Elisei <alexandru.elisei@arm.com>
      Cc: Suzuki K Poulose <suzuki.poulose@arm.com>
      Cc: linux-arm-kernel@lists.infradead.org
      Cc: kvmarm@lists.cs.columbia.edu
      Signed-off-by: NMarc Zyngier <maz@kernel.org>
      Link: https://lore.kernel.org/r/20220430050123.2844-1-rdunlap@infradead.org
      bd61395a
  8. 29 4月, 2022 1 次提交
  9. 23 4月, 2022 1 次提交
  10. 24 11月, 2021 1 次提交
  11. 23 11月, 2021 1 次提交
  12. 18 10月, 2021 5 次提交
  13. 11 10月, 2021 5 次提交
  14. 20 8月, 2021 5 次提交
  15. 15 5月, 2021 1 次提交
  16. 07 4月, 2021 1 次提交
  17. 19 3月, 2021 2 次提交
  18. 18 3月, 2021 2 次提交
  19. 06 3月, 2021 2 次提交
  20. 04 12月, 2020 1 次提交
  21. 10 11月, 2020 1 次提交
  22. 29 10月, 2020 1 次提交
  23. 30 9月, 2020 2 次提交