[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-stable] [PATCH for-2.11 1/2] exec.c: Factor out before/after a
From: |
Richard Henderson |
Subject: |
Re: [Qemu-stable] [PATCH for-2.11 1/2] exec.c: Factor out before/after actions for notdirty memory writes |
Date: |
Mon, 20 Nov 2017 15:28:11 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 |
On 11/20/2017 02:27 PM, Peter Maydell wrote:
> The function notdirty_mem_write() has a sequence of actions
> it has to do before and after the actual business of writing
> data to host RAM to ensure that dirty flags are correctly
> updated and we flush any TCG translations for the region.
> We need to do this also in other places that write directly
> to host RAM, most notably the TCG atomic helper functions.
> Pull out the before and after pieces into their own functions.
>
> We use an API where the prepare function stashes the various
> bits of information about the write into a struct for the
> complete function to use, because in the calls for the atomic
> helpers the place where the complete function will be called
> doesn't have the information to hand.
>
> Cc: address@hidden
> Signed-off-by: Peter Maydell <address@hidden>
> ---
Reviewed-by: Richard Henderson <address@hidden>
r~
[Qemu-stable] [PATCH for-2.11 1/2] exec.c: Factor out before/after actions for notdirty memory writes, Peter Maydell, 2017/11/20
- Re: [Qemu-stable] [PATCH for-2.11 1/2] exec.c: Factor out before/after actions for notdirty memory writes,
Richard Henderson <=