diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/powerpc/kvm/book3s_hv_rm_mmu.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/powerpc/kvm/book3s_hv_rm_mmu.c b/arch/powerpc/kvm/book3s_hv_rm_mmu.c index 1d6c56ad5b60..ac840c6dfa9b 100644 --- a/arch/powerpc/kvm/book3s_hv_rm_mmu.c +++ b/arch/powerpc/kvm/book3s_hv_rm_mmu.c | |||
@@ -42,13 +42,14 @@ static int global_invalidates(struct kvm *kvm, unsigned long flags) | |||
42 | 42 | ||
43 | /* | 43 | /* |
44 | * If there is only one vcore, and it's currently running, | 44 | * If there is only one vcore, and it's currently running, |
45 | * as indicated by local_paca->kvm_hstate.kvm_vcpu being set, | ||
45 | * we can use tlbiel as long as we mark all other physical | 46 | * we can use tlbiel as long as we mark all other physical |
46 | * cores as potentially having stale TLB entries for this lpid. | 47 | * cores as potentially having stale TLB entries for this lpid. |
47 | * If we're not using MMU notifiers, we never take pages away | 48 | * If we're not using MMU notifiers, we never take pages away |
48 | * from the guest, so we can use tlbiel if requested. | 49 | * from the guest, so we can use tlbiel if requested. |
49 | * Otherwise, don't use tlbiel. | 50 | * Otherwise, don't use tlbiel. |
50 | */ | 51 | */ |
51 | if (kvm->arch.online_vcores == 1 && local_paca->kvm_hstate.kvm_vcore) | 52 | if (kvm->arch.online_vcores == 1 && local_paca->kvm_hstate.kvm_vcpu) |
52 | global = 0; | 53 | global = 0; |
53 | else if (kvm->arch.using_mmu_notifiers) | 54 | else if (kvm->arch.using_mmu_notifiers) |
54 | global = 1; | 55 | global = 1; |