[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 7/9] memory: Clarify owner must not call memory_region_ref()
From: |
Akihiko Odaki |
Subject: |
[PATCH v3 7/9] memory: Clarify owner must not call memory_region_ref() |
Date: |
Mon, 08 Jul 2024 15:55:18 +0900 |
Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
---
include/exec/memory.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/exec/memory.h b/include/exec/memory.h
index 847c84c86db0..32bb430acdc4 100644
--- a/include/exec/memory.h
+++ b/include/exec/memory.h
@@ -1246,6 +1246,7 @@ void memory_region_init(MemoryRegion *mr,
* memory_region_ref: Add a reference to a memory region
*
* This function adds a reference to the owner if present.
+ * The owner must not call this function as it results in a circular reference.
* See docs/devel/memory.rst to know about owner.
*
* @mr: the #MemoryRegion
--
2.45.2
- [PATCH v3 0/9] Fix check-qtest-ppc64 sanitizer errors, Akihiko Odaki, 2024/07/08
- [PATCH v3 1/9] spapr: Free stdout path, Akihiko Odaki, 2024/07/08
- [PATCH v3 2/9] ppc/vof: Fix unaligned FDT property access, Akihiko Odaki, 2024/07/08
- [PATCH v3 3/9] migration: Free removed SaveStateEntry, Akihiko Odaki, 2024/07/08
- [PATCH v3 4/9] memory: Do not refer to "memory region's reference count", Akihiko Odaki, 2024/07/08
- [PATCH v3 5/9] memory: Refer to docs/devel/memory.rst for "owner", Akihiko Odaki, 2024/07/08
- [PATCH v3 6/9] memory: Clarify that owner may be missing, Akihiko Odaki, 2024/07/08
- [PATCH v3 7/9] memory: Clarify owner must not call memory_region_ref(),
Akihiko Odaki <=
- [PATCH v3 9/9] tests/qtest: Delete previous boot file, Akihiko Odaki, 2024/07/08
- [PATCH v3 8/9] memory: Do not create circular reference with subregion, Akihiko Odaki, 2024/07/08