]> git.proxmox.com Git - mirror_qemu.git/blobdiff - include/qom/cpu.h
cputlb: introduce tlb_flush_* async work.
[mirror_qemu.git] / include / qom / cpu.h
index 10db89b16a441dafaa76dea4ec3c648100f83234..e80bf7a64a6afe2eb478f1b9eff542c6d8a758ef 100644 (file)
@@ -402,6 +402,12 @@ struct CPUState {
 
     bool hax_vcpu_dirty;
     struct hax_vcpu_state *hax_vcpu;
+
+    /* The pending_tlb_flush flag is set and cleared atomically to
+     * avoid potential races. The aim of the flag is to avoid
+     * unnecessary flushes.
+     */
+    bool pending_tlb_flush;
 };
 
 QTAILQ_HEAD(CPUTailQ, CPUState);