kvm: x86: disable shattered huge page recovery for PREEMPT_RT.
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 13 Nov 2019 14:47:06 +0000 (15:47 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 13 Nov 2019 14:47:06 +0000 (15:47 +0100)
commit13fb59276b47db556370bba53b5b55f3849dd8c9
treeefe502b1e3302e2e0930a96830217984e76be3b5
parent8c5bd25bf42effd194d4b0b43895c42b374e620b
kvm: x86: disable shattered huge page recovery for PREEMPT_RT.

If a huge page is recovered (and becomes no executable) while another
thread is executing it, the resulting contention on mmu_lock can cause
latency spikes.  Disabling recovery for PREEMPT_RT kernels fixes this
issue.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu.c