[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v3 4/6] docs: mention shared state protect for OOB
From: |
Peter Xu |
Subject: |
[Qemu-devel] [PATCH v3 4/6] docs: mention shared state protect for OOB |
Date: |
Fri, 15 Jun 2018 09:42:47 +0800 |
Out-Of-Band handlers need to protect shared state if there is any.
Mention it in the document.
Suggested-by: Markus Armbruster <address@hidden>
Signed-off-by: Peter Xu <address@hidden>
---
docs/devel/qapi-code-gen.txt | 3 +++
1 file changed, 3 insertions(+)
diff --git a/docs/devel/qapi-code-gen.txt b/docs/devel/qapi-code-gen.txt
index 1366228b2a..bee9de35df 100644
--- a/docs/devel/qapi-code-gen.txt
+++ b/docs/devel/qapi-code-gen.txt
@@ -680,6 +680,9 @@ OOB command handlers must satisfy the following conditions:
- It does not invoke system calls that may block,
- It does not access guest RAM that may block when userfaultfd is
enabled for postcopy live migration.
+- It needs to protect any shared state, since as long as a command
+ supports Out-Of-Band it means the handler can be run in parallel
+ with the same handler running in the other thread.
If in doubt, do not implement OOB execution support.
--
2.17.1
- [Qemu-devel] [PATCH v3 0/6] monitor: enable OOB by default, Peter Xu, 2018/06/14
- [Qemu-devel] [PATCH v3 1/6] chardev: comment details for CLOSED event, Peter Xu, 2018/06/14
- [Qemu-devel] [PATCH v3 2/6] monitor: flush qmp responses when CLOSED, Peter Xu, 2018/06/14
- [Qemu-devel] [PATCH v3 3/6] tests: iotests: drop some stderr line, Peter Xu, 2018/06/14
- [Qemu-devel] [PATCH v3 4/6] docs: mention shared state protect for OOB,
Peter Xu <=
- [Qemu-devel] [PATCH v3 5/6] monitor: remove "x-oob", turn oob on by default, Peter Xu, 2018/06/14
- [Qemu-devel] [PATCH v3 6/6] Revert "tests: Add parameter to qtest_init_without_qmp_handshake", Peter Xu, 2018/06/14