diff options
author | Nicholas Piggin <npiggin@gmail.com> | 2021-11-23 10:52:26 +0100 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2021-11-24 11:09:02 +0100 |
commit | 4c9a68914eab1f17f6c428c579ffd75c4448461e (patch) | |
tree | bfd2cb362a54f300ab64255f44cd45c0d17e4c4a /arch/powerpc/kvm/book3s_hv.c | |
parent | KVM: PPC: Book3S HV P9: Avoid changing MSR[RI] in entry and exit (diff) | |
download | linux-4c9a68914eab1f17f6c428c579ffd75c4448461e.tar.xz linux-4c9a68914eab1f17f6c428c579ffd75c4448461e.zip |
KVM: PPC: Book3S HV P9: Add unlikely annotation for !mmu_ready
The mmu will almost always be ready.
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20211123095231.1036501-49-npiggin@gmail.com
Diffstat (limited to 'arch/powerpc/kvm/book3s_hv.c')
-rw-r--r-- | arch/powerpc/kvm/book3s_hv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kvm/book3s_hv.c b/arch/powerpc/kvm/book3s_hv.c index e532a7010dba..4056605d3367 100644 --- a/arch/powerpc/kvm/book3s_hv.c +++ b/arch/powerpc/kvm/book3s_hv.c @@ -4426,7 +4426,7 @@ int kvmhv_run_single_vcpu(struct kvm_vcpu *vcpu, u64 time_limit, vc->runner = vcpu; /* See if the MMU is ready to go */ - if (!kvm->arch.mmu_ready) { + if (unlikely(!kvm->arch.mmu_ready)) { r = kvmhv_setup_mmu(vcpu); if (r) { run->exit_reason = KVM_EXIT_FAIL_ENTRY; |