[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v12 12/24] tcg: handle EXCP_ATOMIC exception for
From: |
Alex Bennée |
Subject: |
Re: [Qemu-devel] [PATCH v12 12/24] tcg: handle EXCP_ATOMIC exception for system emulation |
Date: |
Tue, 14 Feb 2017 10:50:24 +0000 |
User-agent: |
mu4e 0.9.19; emacs 25.2.3 |
Richard Henderson <address@hidden> writes:
> On 02/13/2017 11:10 PM, Alex Bennée wrote:
>> @@ -239,9 +240,16 @@ static void cpu_exec_step(CPUState *cpu)
<snip>
>> + } else if (r == EXCP_ATOMIC) {
>> + qemu_mutex_unlock_iothread();
>> + cpu_exec_step_atomic(cpu);
>> + qemu_mutex_lock_iothread();
> ...
>> + case EXCP_ATOMIC:
>> + qemu_mutex_unlock_iothread();
>> + cpu_exec_step_atomic(cpu);
>> + qemu_mutex_lock_iothread();
>
>
> I just noticed this, but if you have to do a v13, it might be best to
> move these locks inside cpu_exec_step_atomic, as with tcg_cpu_exec.
> Otherwise leave it for later.
Will that work given cpu_exec_step_atomic() is common between linux-user
and system emulation?
--
Alex Bennée
- [Qemu-devel] [PATCH v12 15/24] cputlb: introduce tlb_flush_* async work., (continued)
- [Qemu-devel] [PATCH v12 15/24] cputlb: introduce tlb_flush_* async work., Alex Bennée, 2017/02/13
- [Qemu-devel] [PATCH v12 16/24] cputlb and arm/sparc targets: convert mmuidx flushes from varg to bitmap, Alex Bennée, 2017/02/13
- [Qemu-devel] [PATCH v12 18/24] cputlb: atomically update tlb fields used by tlb_reset_dirty, Alex Bennée, 2017/02/13
- [Qemu-devel] [PATCH v12 09/24] tcg: remove global exit_request, Alex Bennée, 2017/02/13
- [Qemu-devel] [PATCH v12 10/24] tcg: enable tb_lock() for SoftMMU, Alex Bennée, 2017/02/13
- [Qemu-devel] [PATCH v12 08/24] tcg: drop global lock during TCG code execution, Alex Bennée, 2017/02/13
- [Qemu-devel] [PATCH v12 12/24] tcg: handle EXCP_ATOMIC exception for system emulation, Alex Bennée, 2017/02/13
[Qemu-devel] [PATCH v12 11/24] tcg: enable thread-per-vCPU, Alex Bennée, 2017/02/13
[Qemu-devel] [PATCH v12 17/24] cputlb: add tlb_flush_by_mmuidx async routines, Alex Bennée, 2017/02/13
[Qemu-devel] [PATCH v12 22/24] target-arm: ensure all cross vCPUs TLB flushes complete, Alex Bennée, 2017/02/13
[Qemu-devel] [PATCH v12 21/24] target-arm: don't generate WFE/YIELD calls for MTTCG, Alex Bennée, 2017/02/13
[Qemu-devel] [PATCH v12 23/24] hw/misc/imx6_src: defer clearing of SRC_SCR reset bits, Alex Bennée, 2017/02/13
[Qemu-devel] [PATCH v12 20/24] target-arm/powerctl: defer cpu reset work to CPU context, Alex Bennée, 2017/02/13