|
| From: | Richard Henderson |
| Subject: | Re: [Qemu-devel] [PATCH v1 for-2.12 07/15] s390x: handle exceptions during s390_cpu_virt_mem_rw() correctly (TCG) |
| Date: | Wed, 29 Nov 2017 17:52:40 +0000 |
| User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 |
On 11/28/2017 08:33 PM, David Hildenbrand wrote:
> +void s390_cpu_virt_mem_handle_exc(S390CPU *cpu, uintptr_t ra)
> +{
> + /* KVM will handle the interrupt automatically, TCG has to exit the TB */
> + #ifdef CONFIG_TCG
> + if (tcg_enabled()) {
> + if (ra) {
> + cpu_restore_state(CPU(cpu), ra);
> + }
> + cpu_loop_exit(CPU(cpu));
> + }
In addition to everything else,
cpu_loop_exit_restore(CPU(cpu), ra);
r~
| [Prev in Thread] | Current Thread | [Next in Thread] |