File tree Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -608,7 +608,6 @@ struct kvm {
608
608
unsigned long mmu_notifier_range_start;
609
609
unsigned long mmu_notifier_range_end;
610
610
#endif
611
- long tlbs_dirty;
612
611
struct list_head devices;
613
612
u64 manual_dirty_log_protect;
614
613
struct dentry *debugfs_dentry;
Original file line number Diff line number Diff line change @@ -326,13 +326,8 @@ EXPORT_SYMBOL_GPL(kvm_make_all_cpus_request);
326
326
#ifndef CONFIG_HAVE_KVM_ARCH_TLB_FLUSH_ALL
327
327
void kvm_flush_remote_tlbs (struct kvm * kvm )
328
328
{
329
- /*
330
- * Read tlbs_dirty before setting KVM_REQ_TLB_FLUSH in
331
- * kvm_make_all_cpus_request.
332
- */
333
- long dirty_count = smp_load_acquire (& kvm -> tlbs_dirty );
334
-
335
329
++ kvm -> stat .generic .remote_tlb_flush_requests ;
330
+
336
331
/*
337
332
* We want to publish modifications to the page tables before reading
338
333
* mode. Pairs with a memory barrier in arch-specific code.
@@ -347,7 +342,6 @@ void kvm_flush_remote_tlbs(struct kvm *kvm)
347
342
if (!kvm_arch_flush_remote_tlb (kvm )
348
343
|| kvm_make_all_cpus_request (kvm , KVM_REQ_TLB_FLUSH ))
349
344
++ kvm -> stat .generic .remote_tlb_flush ;
350
- cmpxchg (& kvm -> tlbs_dirty , dirty_count , 0 );
351
345
}
352
346
EXPORT_SYMBOL_GPL (kvm_flush_remote_tlbs );
353
347
#endif
@@ -552,7 +546,7 @@ static __always_inline int __kvm_handle_hva_range(struct kvm *kvm,
552
546
}
553
547
}
554
548
555
- if (range -> flush_on_ret && ( ret || kvm -> tlbs_dirty ) )
549
+ if (range -> flush_on_ret && ret )
556
550
kvm_flush_remote_tlbs (kvm );
557
551
558
552
if (locked )
You can’t perform that action at this time.
0 commit comments