KVM: PPC: Book3s PR: Disable AIL mode with OPAL
authorAlexander Graf <agraf@suse.de>
Sun, 8 Jun 2014 23:16:32 +0000 (01:16 +0200)
committerAlexander Graf <agraf@suse.de>
Mon, 28 Jul 2014 13:22:11 +0000 (15:22 +0200)
commitfb4188bad02f4871b26cf19b98e8d92499ca5d31
tree5a9a9c945180aefa7d52a8f4a395e7f9726efd5c
parent06da28e76b87331ebccdb6d486cfd94835b8be5e
KVM: PPC: Book3s PR: Disable AIL mode with OPAL

When we're using PR KVM we must not allow the CPU to take interrupts
in virtual mode, as the SLB does not contain host kernel mappings
when running inside the guest context.

To make sure we get good performance for non-KVM tasks but still
properly functioning PR KVM, let's just disable AIL whenever a vcpu
is scheduled in.

This is fundamentally different from how we deal with AIL on pSeries
type machines where we disable AIL for the whole machine as soon as
a single KVM VM is up.

The reason for that is easy - on pSeries we do not have control over
per-cpu configuration of AIL. We also don't want to mess with CPU hotplug
races and AIL configuration, so setting it per CPU is easier and more
flexible.

This patch fixes running PR KVM on POWER8 bare metal for me.

Signed-off-by: Alexander Graf <agraf@suse.de>
Acked-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kvm/book3s_pr.c
This page took 0.025799 seconds and 5 git commands to generate.