kvm/ppc/booke: Delay kvmppc_lazy_ee_enable
authorScott Wood <scottwood@freescale.com>
Tue, 11 Jun 2013 16:38:31 +0000 (11:38 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 19 Jun 2013 10:15:13 +0000 (12:15 +0200)
commitf8941fbe204fa2fb51e7acd8bfd0f51225fe03b4
tree5e569270a6348057ca574d672438f5f17b5c0718
parent764bcbc5a6d7a2f3e75c9f0e4caa984e2926e346
kvm/ppc/booke: Delay kvmppc_lazy_ee_enable

kwmppc_lazy_ee_enable() should be called as late as possible,
or else we get things like WARN_ON(preemptible()) in enable_kernel_fp()
in configurations where preemptible() works.

Note that book3s_pr already waits until just before __kvmppc_vcpu_run
to call kvmppc_lazy_ee_enable().

Signed-off-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/powerpc/kvm/booke.c