Skip to content

Commit 591bd8e

Browse files
agrafavikivity
authored andcommitted
KVM: PPC: Enable napping only for Book3s_64
Before I incorrectly enabled napping also for BookE, which would result in needless dcache flushes. Since we only need to force enable napping on Book3s_64 because it doesn't go into MSR_POW otherwise, we can just #ifdef that code to this particular platform. Reported-by: Scott Wood <scottwood@freescale.com> Signed-off-by: Alexander Graf <agraf@suse.de>
1 parent ebc6587 commit 591bd8e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎arch/powerpc/kernel/kvm.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -582,8 +582,10 @@ static int __init kvm_guest_init(void)
582582
if (kvm_para_has_feature(KVM_FEATURE_MAGIC_PAGE))
583583
kvm_use_magic_page();
584584

585+
#ifdef CONFIG_PPC_BOOK3S_64
585586
/* Enable napping */
586587
powersave_nap = 1;
588+
#endif
587589

588590
free_tmp:
589591
kvm_free_tmp();

0 commit comments

Comments
 (0)