1. 11 Feb, 2021 2 commits
    • Nicholas Piggin's avatar
      KVM: PPC: Book3S HV: Fix host radix SLB optimisation with hash guests · 72476aaa
      Nicholas Piggin authored
      Commit 68ad28a4 ("KVM: PPC: Book3S HV: Fix radix guest SLB side
      channel") incorrectly removed the radix host instruction patch to skip
      re-loading the host SLB entries when exiting from a hash
      guest. Restore it.
      
      Fixes: 68ad28a4 ("KVM: PPC: Book3S HV: Fix radix guest SLB side channel")
      Signed-off-by: default avatarNicholas Piggin <npiggin@gmail.com>
      Signed-off-by: default avatarPaul Mackerras <paulus@ozlabs.org>
      72476aaa
    • Paul Mackerras's avatar
      KVM: PPC: Book3S HV: Ensure radix guest has no SLB entries · ab950e1a
      Paul Mackerras authored
      Commit 68ad28a4 ("KVM: PPC: Book3S HV: Fix radix guest SLB side
      channel") changed the older guest entry path, with the side effect
      that vcpu->arch.slb_max no longer gets cleared for a radix guest.
      This means that a HPT guest which loads some SLB entries, switches to
      radix mode, runs the guest using the old guest entry path (e.g.,
      because the indep_threads_mode module parameter has been set to
      false), and then switches back to HPT mode would now see the old SLB
      entries being present, whereas previously it would have seen no SLB
      entries.
      
      To avoid changing guest-visible behaviour, this adds a store
      instruction to clear vcpu->arch.slb_max for a radix guest using the
      old guest entry path.
      Signed-off-by: default avatarPaul Mackerras <paulus@ozlabs.org>
      ab950e1a
  2. 10 Feb, 2021 11 commits
  3. 09 Feb, 2021 27 commits