On 09/30/2015 07:46 PM, alvise rigo wrote:
On Wed, Sep 30, 2015 at 5:58 AM, Richard Henderson <r...@twiddle.net> wrote:
Why would you need to indicate that another cpu has started an exclusive
operation on this page? That seems definitely wrong.
The cpu_physical_memory_clear_excl_dirty() sets the flag to generate
the TLB entry with the EXCL flag.
Yes, but surely the clearing of dirty on current_cpu is enough to cause the
other cpus to see that they need to set TLB_EXCL when reloading their tlb entries.
Why do you need to manipulate the *other* cpu's dirty bit?
I wonder what can be done to clean all of this up, short of actually
transitioning to c++ templates...
Is there already an example in QEMU I can look at?
No.
r~