Re: [Qemu-devel] [PATCH v2 for-2.11 0/2] Fix TCG atomic writes to nondirty pages

2017-11-21 Thread Peter Maydell
On 20 November 2017 at 20:54, Paolo Bonzini wrote: > On 20/11/2017 19:08, Peter Maydell wrote: >> To do a write to memory that is marked as notdirty, we need >> to invalidate any TBs we have cached for that memory, and >> update the cpu physical memory dirty flags for VGA and migration. >> The slo

Re: [Qemu-devel] [PATCH v2 for-2.11 0/2] Fix TCG atomic writes to nondirty pages

2017-11-20 Thread Paolo Bonzini
On 20/11/2017 19:08, Peter Maydell wrote: > To do a write to memory that is marked as notdirty, we need > to invalidate any TBs we have cached for that memory, and > update the cpu physical memory dirty flags for VGA and migration. > The slowpath code in notdirty_mem_write() does all this correctly

[Qemu-devel] [PATCH v2 for-2.11 0/2] Fix TCG atomic writes to nondirty pages

2017-11-20 Thread Peter Maydell
To do a write to memory that is marked as notdirty, we need to invalidate any TBs we have cached for that memory, and update the cpu physical memory dirty flags for VGA and migration. The slowpath code in notdirty_mem_write() does all this correctly, but the new atomic handling code in atomic_mmu_l