|
From: | Philippe Mathieu-Daudé |
Subject: | Re: [PATCH v2 04/10] Introduce the CPU address space destruction function |
Date: | Fri, 15 Sep 2023 16:19:03 +0200 |
User-agent: | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 |
On 15/9/23 10:07, David Hildenbrand wrote:
The CPU implementation end up call qemu_init_vcpu() in their realize function; there should be something like qemu_destroy_vcpu() on the unrealize path that takes care of undoing any cpu_address_space_init().We seem to have cpu_common_unrealizefn()->cpu_exec_unrealizefn() but that doesn't take care of address spaces.Also, in qemu_init_vcpu() we do a cpus_accel->create_vcpu_thread(cpu). I'm, curious if we destroy that thread somehow.
Implicitly in cpu_remove_sync().
[Prev in Thread] | Current Thread | [Next in Thread] |