[PATCH 0/2] KVM: Fix mmu_notifier vs. pfncache race

Sean Christopherson posted 2 patches 4 years ago
virt/kvm/kvm_main.c |  9 ++++++
virt/kvm/pfncache.c | 79 +++++++++++++++++++++++++++++----------------
2 files changed, 61 insertions(+), 27 deletions(-)
[PATCH 0/2] KVM: Fix mmu_notifier vs. pfncache race
Posted by Sean Christopherson 4 years ago
Fix a race between mmu_notifier invalidation and pfncache refresh, and
then fix another race of sorts within pfncache that exists because of the
hacky approach pfncache currently employs to try and handle races with
mmu_notifiers.

Both issues were found by inspection and not proven on hardware.

Sean Christopherson (2):
  KVM: Fix race between mmu_notifier invalidation and pfncache refresh
  KVM: Do not speculatively mark pfn cache valid to "fix" race

 virt/kvm/kvm_main.c |  9 ++++++
 virt/kvm/pfncache.c | 79 +++++++++++++++++++++++++++++----------------
 2 files changed, 61 insertions(+), 27 deletions(-)


base-commit: 150866cd0ec871c765181d145aa0912628289c8a
-- 
2.36.0.rc0.470.gd361397f0d-goog
Re: [PATCH 0/2] KVM: Fix mmu_notifier vs. pfncache race
Posted by Paolo Bonzini 4 years ago
Queued, thanks.

Paolo