[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v4 4/8] vhost-user.rst: Introduce suspended state
From: |
Hanna Czenczek |
Subject: |
[PATCH v4 4/8] vhost-user.rst: Introduce suspended state |
Date: |
Wed, 4 Oct 2023 14:59:00 +0200 |
In vDPA, GET_VRING_BASE does not stop the queried vring, which is why
SUSPEND was introduced so that the returned index would be stable. In
vhost-user, it does stop the vring, so under the same reasoning, it can
get away without SUSPEND.
Still, we do want to clarify that if the device is completely stopped,
i.e. all vrings are stopped, the back-end should cease to modify any
state relating to the guest. Do this by calling it "suspended".
Suggested-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Hanna Czenczek <hreitz@redhat.com>
---
docs/interop/vhost-user.rst | 20 +++++++++++++++++++-
1 file changed, 19 insertions(+), 1 deletion(-)
diff --git a/docs/interop/vhost-user.rst b/docs/interop/vhost-user.rst
index 9f4940a036..d282155562 100644
--- a/docs/interop/vhost-user.rst
+++ b/docs/interop/vhost-user.rst
@@ -426,6 +426,19 @@ back-end must enable all rings immediately.
While processing the rings (whether they are enabled or not), the back-end
must support changing some configuration aspects on the fly.
+.. _suspended_device_state:
+
+Suspended device state
+^^^^^^^^^^^^^^^^^^^^^^
+
+While all vrings are stopped, the device is *suspended*. In addition to
+not processing any vring (because they are stopped), the device must:
+
+* not write to any guest memory regions,
+* not send any notifications to the guest,
+* not send any messages to the front-end,
+* still process and reply to messages from the front-end.
+
Multiple queue support
----------------------
@@ -513,7 +526,8 @@ ancillary data, it may be used to inform the front-end that
the log has
been modified.
Once the source has finished migration, rings will be stopped by the
-source. No further update must be done before rings are restarted.
+source (:ref:`Suspended device state <suspended_device_state>`). No
+further update must be done before rings are restarted.
In postcopy migration the back-end is started before all the memory has
been received from the source host, and care must be taken to avoid
@@ -1101,6 +1115,10 @@ Front-end message types
(*a vring descriptor index for split virtqueues* vs. *vring descriptor
indices for packed virtqueues*).
+ When and as long as all of a device’s vrings are stopped, it is
+ *suspended*, see :ref:`Suspended device state
+ <suspended_device_state>`.
+
The request payload’s *num* field is currently reserved and must be
set to 0.
--
2.41.0
- Re: [Virtio-fs] (no subject), (continued)
- Re: [Virtio-fs] (no subject), Hanna Czenczek, 2023/10/10
- Re: [Virtio-fs] (no subject), Alex Bennée, 2023/10/10
- Re: [Virtio-fs] (no subject), Hanna Czenczek, 2023/10/10
- Re: [Virtio-fs] (no subject), Alex Bennée, 2023/10/13
- Re: [Virtio-fs] (no subject), Hanna Czenczek, 2023/10/13
- Re: [Virtio-fs] (no subject), Viresh Kumar, 2023/10/17
- Re: [Virtio-fs] (no subject), Hanna Czenczek, 2023/10/17
- Re: [Virtio-fs] (no subject), German Maglione, 2023/10/09
- Re: [Virtio-fs] (no subject), Yajun Wu, 2023/10/09
- Re: [Virtio-fs] (no subject), German Maglione, 2023/10/10
[PATCH v4 4/8] vhost-user.rst: Introduce suspended state,
Hanna Czenczek <=
[PATCH v4 5/8] vhost-user.rst: Migrating back-end-internal state, Hanna Czenczek, 2023/10/04
[PATCH v4 2/8] vhost-user.rst: Improve [GS]ET_VRING_BASE doc, Hanna Czenczek, 2023/10/04
- Re: [PATCH v4 2/8] vhost-user.rst: Improve [GS]ET_VRING_BASE doc, Stefan Hajnoczi, 2023/10/05
- Re: [Virtio-fs] [PATCH v4 2/8] vhost-user.rst: Improve [GS]ET_VRING_BASE doc, Hanna Czenczek, 2023/10/06
- Re: [Virtio-fs] [PATCH v4 2/8] vhost-user.rst: Improve [GS]ET_VRING_BASE doc, Michael S. Tsirkin, 2023/10/06
- Re: [Virtio-fs] [PATCH v4 2/8] vhost-user.rst: Improve [GS]ET_VRING_BASE doc, Hanna Czenczek, 2023/10/06
- Re: [Virtio-fs] [PATCH v4 2/8] vhost-user.rst: Improve [GS]ET_VRING_BASE doc, Hanna Czenczek, 2023/10/06
- Re: [Virtio-fs] [PATCH v4 2/8] vhost-user.rst: Improve [GS]ET_VRING_BASE doc, Michael S. Tsirkin, 2023/10/07