]> git.ipfire.org Git - thirdparty/linux.git/commit
KVM: Bail from the dirty ring reset flow if a signal is pending
authorSean Christopherson <seanjc@google.com>
Fri, 16 May 2025 21:35:36 +0000 (14:35 -0700)
committerSean Christopherson <seanjc@google.com>
Fri, 20 Jun 2025 20:39:42 +0000 (13:39 -0700)
commit49005a2a3d2a2974db486e330dfb7c8bc85df17f
tree8a920063fcf82b5b4e1237caa4ebe8cf2ff7344b
parent530a8ba71b4c3b7fcee323dd997f4bab1be1a6ba
KVM: Bail from the dirty ring reset flow if a signal is pending

Abort a dirty ring reset if the current task has a pending signal, as the
hard limit of INT_MAX entries doesn't ensure KVM will respond to a signal
in a timely fashion.

Fixes: fb04a1eddb1a ("KVM: X86: Implement ring-based dirty memory tracking")
Reviewed-by: James Houghton <jthoughton@google.com>
Reviewed-by: Binbin Wu <binbin.wu@linux.intel.com>
Reviewed-by: Yan Zhao <yan.y.zhao@intel.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Link: https://lore.kernel.org/r/20250516213540.2546077-3-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
virt/kvm/dirty_ring.c