]> git.ipfire.org Git - thirdparty/qemu.git/commit
include/system/memory.h: Clarify address_space_destroy() behaviour
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 29 Sep 2025 14:42:26 +0000 (15:42 +0100)
committerMichael Tokarev <mjt@tls.msk.ru>
Sun, 5 Oct 2025 06:40:23 +0000 (09:40 +0300)
commit977ffc7abcb06568773c724f6cd7aab48d2e490e
tree43431adaf95b58b80b19b388b61ef4ad5ce106f6
parent109f336448e7fa09f3aee6e1dab2648e2a2d4568
include/system/memory.h: Clarify address_space_destroy() behaviour

address_space_destroy() doesn't actually immediately destroy the AS;
it queues it to be destroyed via RCU. This means you can't g_free()
the memory the AS struct is in until that has happened.

Clarify this in the documentation.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: David Hildenbrand <david@redhat.com>
Link: https://lore.kernel.org/r/20250929144228.1994037-2-peter.maydell@linaro.org
Signed-off-by: Peter Xu <peterx@redhat.com>
(cherry picked from commit 9e7bfda4909cc688dd0327e17985019f08a78d5d)
(Mjt: this is just a comment fix, but it makes subsequent changes to apply c
leanly)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
include/system/memory.h