kvm, rt: change async pagefault code locking for PREEMPT_RT
authorRik van Riel <riel@redhat.com>
Mon, 21 Mar 2016 14:13:27 +0000 (15:13 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 22 Mar 2016 15:38:38 +0000 (16:38 +0100)
commit9db284f30311b741a5e74eb8e5800ff7b92c4be3
tree07640ab193a4a0cd3750f04db03e04ad6ffe66c9
parent489153c746746fc44b1e2fd184248dee8aebbaff
kvm, rt: change async pagefault code locking for PREEMPT_RT

The async pagefault wake code can run from the idle task in exception
context, so everything here needs to be made non-preemptible.

Conversion to a simple wait queue and raw spinlock does the trick.

Signed-off-by: Rik van Riel <riel@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kernel/kvm.c