I've moved the synchronize_srcu*() after the mutex_unlock(), but wasn't sure about kvm_make_all_cpus_request(), so left it, as it was, under the mutex. Or should it be moved out of critical section just as well? Michal Luczaj (2): KVM: x86: Fix deadlock in kvm_vm_ioctl_set_msr_filter() KVM: x86: Fix deadlock in kvm_vm_ioctl_set_pmu_event_filter() arch/x86/kvm/pmu.c | 2 +- arch/x86/kvm/x86.c | 12 +++++------- 2 files changed, 6 insertions(+), 8 deletions(-) -- 2.39.0