[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-arm] [PATCH] target/aarch64: exit to main loop after handling
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-arm] [PATCH] target/aarch64: exit to main loop after handling MSR |
Date: |
Wed, 14 Jun 2017 14:16:45 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.0 |
On 14/06/2017 14:14, Alex Bennée wrote:
>> Then Emilio's patch, if a bit of a heavy hammer, is correct. After
>> aa64_daif_write needs you need an exit_tb so that arm_cpu_exec_interrupt
>> is executed again.
>
> This is a case of cpu->interrupt_request being pending but not having
> set cpu->icount_decr yet to signal the exit.
Rather than "yet", "anymore". So far it has always been an invariant
that anything that re-enabled an interrupt had to do exit_tb.
> Wouldn't another approach
> (that didn't involve futzing with each front-end) to be to check
> cpu->interrupt_request and force the exit in lookup_tb_ptr?
That would cause an unnecessary slowdown in code that runs with
interrupts disabled but does a lot of indirect jumps... ppc's SLOF
firmware probably qualifies.
Paolo
- Re: [Qemu-arm] [RFC DEBUG PATCH 3/3] translate-a64: fix lookup_tb_ptr hang (DEBUG!), (continued)
- Re: [Qemu-arm] [RFC DEBUG PATCH 3/3] translate-a64: fix lookup_tb_ptr hang (DEBUG!), Richard Henderson, 2017/06/10
- Re: [Qemu-arm] [RFC DEBUG PATCH 3/3] translate-a64: fix lookup_tb_ptr hang (DEBUG!), Emilio G. Cota, 2017/06/11
- Re: [Qemu-arm] [RFC DEBUG PATCH 3/3] translate-a64: fix lookup_tb_ptr hang (DEBUG!), Alex Bennée, 2017/06/12
- [Qemu-arm] [PATCH] target/aarch64: exit to main loop after handling MSR, Emilio G. Cota, 2017/06/13
- Re: [Qemu-arm] [Qemu-devel] [PATCH] target/aarch64: exit to main loop after handling MSR, no-reply, 2017/06/13
- Re: [Qemu-arm] [PATCH] target/aarch64: exit to main loop after handling MSR, Richard Henderson, 2017/06/14
- Re: [Qemu-arm] [PATCH] target/aarch64: exit to main loop after handling MSR, Paolo Bonzini, 2017/06/14
- Re: [Qemu-arm] [PATCH] target/aarch64: exit to main loop after handling MSR, Alex Bennée, 2017/06/14
- Re: [Qemu-arm] [PATCH] target/aarch64: exit to main loop after handling MSR, Paolo Bonzini, 2017/06/14
- Re: [Qemu-arm] [PATCH] target/aarch64: exit to main loop after handling MSR, Alex Bennée, 2017/06/14
- Re: [Qemu-arm] [PATCH] target/aarch64: exit to main loop after handling MSR,
Paolo Bonzini <=
- Re: [Qemu-arm] [PATCH] target/aarch64: exit to main loop after handling MSR, Alex Bennée, 2017/06/14
- Re: [Qemu-arm] [PATCH] target/aarch64: exit to main loop after handling MSR, Paolo Bonzini, 2017/06/14
- Re: [Qemu-arm] [PATCH] target/aarch64: exit to main loop after handling MSR, Alex Bennée, 2017/06/14