linux/arch/x86/kvm/mmu
Sean Christopherson f47491d7f3 KVM: x86/mmu: Handle "default" period when selectively waking kthread
Account for the '0' being a default, "let KVM choose" period, when
determining whether or not the recovery worker needs to be awakened in
response to userspace reducing the period.  Failure to do so results in
the worker not being awakened properly, e.g. when changing the period
from '0' to any small-ish value.

Fixes: 4dfe4f40d8 ("kvm: x86: mmu: Make NX huge page recovery period configurable")
Cc: stable@vger.kernel.org
Cc: Junaid Shahid <junaids@google.com>
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20211120015706.3830341-1-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2021-11-30 03:09:27 -05:00
..
mmu_audit.c KVM: x86/mmu: Rename __gfn_to_rmap to gfn_to_rmap 2021-08-06 07:52:58 -04:00
mmu_internal.h KVM: x86/mmu: clean up prefetch/prefault/speculative naming 2021-10-22 05:19:26 -04:00
mmu.c KVM: x86/mmu: Handle "default" period when selectively waking kthread 2021-11-30 03:09:27 -05:00
mmutrace.h KVM: MMU: change tracepoints arguments to kvm_page_fault 2021-10-01 03:44:52 -04:00
page_track.c KVM: cleanup allocation of rmaps and page tracking data 2021-10-22 05:19:25 -04:00
paging_tmpl.h KVM: x86/mmu: clean up prefetch/prefault/speculative naming 2021-10-22 05:19:26 -04:00
paging.h KVM: x86/mmu: Do not apply HPA (memory encryption) mask to GPAs 2021-07-14 12:17:56 -04:00
spte.c KVM: x86/mmu: clean up prefetch/prefault/speculative naming 2021-10-22 05:19:26 -04:00
spte.h KVM: x86/mmu: clean up prefetch/prefault/speculative naming 2021-10-22 05:19:26 -04:00
tdp_iter.c KVM: x86/mmu: Store the address space ID in the TDP iterator 2021-03-16 14:16:34 -04:00
tdp_iter.h KVM: x86/mmu: Store the address space ID in the TDP iterator 2021-03-16 14:16:34 -04:00
tdp_mmu.c KVM: x86/mmu: Remove spurious TLB flushes in TDP MMU zap collapsible path 2021-11-30 03:09:25 -05:00
tdp_mmu.h KVM: x86/mmu: Remove spurious TLB flushes in TDP MMU zap collapsible path 2021-11-30 03:09:25 -05:00