mirror of
https://github.com/torvalds/linux.git
synced 2024-12-04 01:51:34 +00:00
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
This commit is contained in:
parent
f08cbf5c7d
commit
4c9a68914e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user