qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2 04/10] Introduce the CPU address space destruction functio


From: David Hildenbrand
Subject: Re: [PATCH v2 04/10] Introduce the CPU address space destruction function
Date: Fri, 15 Sep 2023 17:22:28 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0

On 15.09.23 16:19, Philippe Mathieu-Daudé wrote:
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().

Ah, indeed. there is the qemu_thread_join().

--
Cheers,

David / dhildenb




reply via email to

[Prev in Thread] Current Thread [Next in Thread]