qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH 08/22] exec/cpu: RFC Destroy vCPU address spaces in cpu_commo


From: Richard Henderson
Subject: Re: [PATCH 08/22] exec/cpu: RFC Destroy vCPU address spaces in cpu_common_unrealize()
Date: Fri, 29 Sep 2023 14:10:45 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1

On 9/18/23 09:02, Philippe Mathieu-Daudé wrote:
+++ b/hw/core/cpu-common.c
@@ -224,6 +224,11 @@ static void cpu_common_unrealizefn(DeviceState *dev)
/* Destroy vCPU thread */
      cpu_remove_sync(cpu);
+
+    /* Destroy CPU address space */
+    for (unsigned idx = 0; idx < cpu->num_ases; idx++) {
+        cpu_address_space_destroy(cpu, idx);
+    }


Merged with the previous patch, with the single call.


r~



reply via email to

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