Fix the documentation for vfio-user and multi-process QEMU
cover Fix the documentation for vfio-user and multi-process QEMU
This series addresses recent comments from Markus Armbruster in the "Machine x-remote property auto-shutdown" email thread.
Jagannathan Raman (2):
vfio-user: update comments
docs: fix multi-process QEMU documentation
docs/system/multi-process.rst | 2 +- hw/remote/vfio-user-obj.c | 14 +++++++++++--- 2 files changed, 12 insertions(+), 4 deletions(-)
Signature · 1 line
2.20.1
PATCH 1/2 vfio-user: update comments
Clarify the behavior of TYPE_VFU_OBJECT when TYPE_REMOTE_MACHINE enables the auto-shutdown property. Also, add notes to VFU_OBJECT_ERROR.
--- hw/remote/vfio-user-obj.c | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-)
hw/remote/vfio-user-obj.c +11 -3
@@ -30,6 +30,11 @@* * notes - x-vfio-user-server could block IO and monitor during the * initialization phase. +* +* When x-remote machine has the auto-shutdown property +* enabled (default), x-vfio-user-server terminates after the last +* client disconnects. Otherwise, it will continue running until +* explicitly killed. */ #include "qemu/osdep.h"
@@ -61,9 +66,12 @@OBJECT_DECLARE_TYPE (VfuObject, VfuObjectClass,VFU_OBJECT )/** -* VFU_OBJECT_ERROR - reports an error message. If auto_shutdown -* is set, it aborts the machine on error. Otherwise, it logs an -* error message without aborting. +* VFU_OBJECT_ERROR - reports an error message. +* +* If auto_shutdown is set, it aborts the machine on error. Otherwise, +* it logs an error message without aborting. auto_shutdown is disabled +* when the server serves clients from multiple VMs; as such, an error +* from one VM shouldn't be able to disrupt other VM's services. */#define VFU_OBJECT_ERROR (o, fmt, ...) \ { \
Signature · 1 line
2.20.1
Re: [PATCH v1 1/2] vfio-user: update comments
Quoted 30 lines · Jagannathan Raman
Clarify the behavior of
TYPE_VFU_OBJECTwhenTYPE_REMOTE_MACHINEenables the auto-shutdown property. Also, add notes toVFU_OBJECT_ERROR.Signed-off-by Jagannathan Raman <[email protected]>--- hw/remote/vfio-user-obj.c | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-)hw/remote/vfio-user-obj.c +5
-2@@ -30,6 +30,11 @@* * notes - x-vfio-user-server could block IO and monitor during the * initialization phase. +* +* When x-remote machine has the auto-shutdown property +* enabled (default), x-vfio-user-server terminates after the last +* client disconnects. Otherwise, it will continue running until +* explicitly killed. */ #include "qemu/osdep.h" @@ -61,9 +66,12 @@OBJECT_DECLARE_TYPE (VfuObject, VfuObjectClass,VFU_OBJECT )/** -* VFU_OBJECT_ERROR - reports an error message. If auto_shutdown -* is set, it aborts the machine on error. Otherwise, it logs an
hw/remote/vfio-user-obj.c line 77
Quoted 10 lines
hw/remote/vfio-user-obj.c +6
-1-* error message without aborting. +* VFU_OBJECT_ERROR - reports an error message. +* +* If auto_shutdown is set, it aborts the machine on error. Otherwise, +* it logs an error message without aborting. auto_shutdown is disabled +* when the server serves clients from multiple VMs; as such, an error +* from one VM shouldn't be able to disrupt other VM's services. */ #define VFU_OBJECT_ERROR (o, fmt, ...) \ { \
I still very much doubt an error can be severe enough to justify abort() in one configuration, yet harmless enough to permit carrying on in another configuration. But this patch merely documents what the code does, so
Re: [PATCH v1 1/2] vfio-user: update comments
Quoted 39 lines · Markus Armbruster
Quoted 37 lines · Jagannathan Raman
Clarify the behavior of
TYPE_VFU_OBJECTwhenTYPE_REMOTE_MACHINEenables the auto-shutdown property. Also, add notes toVFU_OBJECT_ERROR.Signed-off-by Jagannathan Raman <[email protected]>--- hw/remote/vfio-user-obj.c | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-)hw/remote/vfio-user-obj.c +11
-3@@ -30,6 +30,11 @@* * notes - x-vfio-user-server could block IO and monitor during the * initialization phase. +* +* When x-remote machine has the auto-shutdown property +* enabled (default), x-vfio-user-server terminates after the last +* client disconnects. Otherwise, it will continue running until +* explicitly killed. */ #include "qemu/osdep.h" @@ -61,9 +66,12 @@OBJECT_DECLARE_TYPE (VfuObject, VfuObjectClass,VFU_OBJECT )/** -* VFU_OBJECT_ERROR - reports an error message. If auto_shutdown -* is set, it aborts the machine on error. Otherwise, it logs an -* error message without aborting. +* VFU_OBJECT_ERROR - reports an error message. +* +* If auto_shutdown is set, it aborts the machine on error. Otherwise, +* it logs an error message without aborting. auto_shutdown is disabled +* when the server serves clients from multiple VMs; as such, an error +* from one VM shouldn't be able to disrupt other VM's services.
Quoted 8 lines
hw/remote/vfio-user-obj.c line 77
Quoted 3 lines
hw/remote/vfio-user-obj.c +0
-0*/ #define VFU_OBJECT_ERROR (o, fmt, ...) \ { \I still very much doubt an error can be severe enough to justify
abort()in one configuration, yet harmless enough to permit carrying on in another configuration. But this patch merely documents what the code does, so
In both cases this vfio-user device is broken after the error occurs. The difference in behavior is that in a multi-device server the other devices should not be disrupted when one of them breaks.
Stefan
PATCH 2/2 docs: fix multi-process QEMU documentation
In reply to Jagannathan RamanFix a typo in the system documentation for multi-process QEMU.
--- docs/system/multi-process.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
docs/system/multi-process.rst +1 -1
@@ -4,7 +4,7 @@ Multi-process QEMU ================== This document describes how to configure and use multi-process qemu. -For the design document refer to docs/devel/qemu-multiprocess. +For the design document refer to docs/devel/multi-process.rst. 1) Configuration ----------------
Signature · 1 line
2.20.1
Re: [PATCH v1 2/2] docs: fix multi-process QEMU documentation
Quoted 12 lines · Jagannathan Raman
Fix a typo in the system documentation for multi-process QEMU.
Signed-off-by Jagannathan Raman <[email protected]>--- docs/system/multi-process.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)docs/system/multi-process.rst +0
-0
docs/system/multi-process.rst Multi-process QEMU · line 10
Quoted 8 lines
docs/system/multi-process.rst +1
-1@@ -4,7 +4,7 @@ Multi-process QEMU ================== This document describes how to configure and use multi-process qemu. -For the design document refer to docs/devel/qemu-multiprocess. +For the design document refer to docs/devel/multi-process.rst. 1) Configuration ----------------
Quoted 14 lines · Jagannathan Raman
This series addresses recent comments from Markus Armbruster in the "Machine x-remote property auto-shutdown" email thread.
Jagannathan Raman (2):
vfio-user: update comments
docs: fix multi-process QEMU documentationdocs/system/multi-process.rst | 2 +- hw/remote/vfio-user-obj.c | 14 +++++++++++--- 2 files changed, 12 insertions(+), 4 deletions(-)Signature · 1 line
2.20.1