virtualization.lists.linux-foundation.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] Virtio: Add CONFIG_VIRTIO_MMIO_POLL_RESET
@ 2024-09-22 12:34 Jianguo Sun
  2024-09-22 12:34 ` [PATCH 2/2] virtio: Add polling virtio-mmio device reset completion Jianguo Sun
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Jianguo Sun @ 2024-09-22 12:34 UTC (permalink / raw)
  To: mst, jasowang, xuanzhuo, eperezma, virtualization; +Cc: Jianguo Sun, Anant Goel

Add CONFIG_VIRTIO_MMIO_POLL_RESET to as an option to enable
synchronous reset for the MMIO based transport for virtio.

Change-Id: Ifa7e29b4c0cfa26922535f921c6ab69eacdc4cfc
Signed-off-by: Jianguo Sun <quic_jianguos@quicinc.com>
Signed-off-by: Anant Goel <quic_anantg@quicinc.com>
---
 drivers/virtio/Kconfig | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/drivers/virtio/Kconfig b/drivers/virtio/Kconfig
index 42a48ac763ee..fb17b1078d53 100644
--- a/drivers/virtio/Kconfig
+++ b/drivers/virtio/Kconfig
@@ -188,4 +188,12 @@ config VIRTIO_DEBUG
 
 	  If unsure, say N.
 
+config VIRTIO_MMIO_POLL_RESET
+	bool "Virti-mmio device synchronous reset support"
+	depends on VIRTIO_MMIO
+	help
+	  Say y here to enable synchronous reset for the MMIO transport based
+	  virtio device. After writing 0 to device_status, the driver must
+	  wait for a read of device_status to return 0 before reinitializing
+	  the device.
 endif # VIRTIO_MENU
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2024-09-26  6:47 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-22 12:34 [PATCH 1/2] Virtio: Add CONFIG_VIRTIO_MMIO_POLL_RESET Jianguo Sun
2024-09-22 12:34 ` [PATCH 2/2] virtio: Add polling virtio-mmio device reset completion Jianguo Sun
2024-09-24  7:40   ` Jason Wang
2024-09-26  6:46   ` Michael S. Tsirkin
2024-09-24  7:38 ` [PATCH 1/2] Virtio: Add CONFIG_VIRTIO_MMIO_POLL_RESET Jason Wang
2024-09-26  3:30   ` Jianguo Sun (QUIC)
2024-09-26  3:50     ` Jason Wang
2024-09-26  6:10       ` Michael S. Tsirkin
2024-09-26  6:46 ` Michael S. Tsirkin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).