Re: [PATCH 1/2] Virtio: Add CONFIG_VIRTIO_MMIO_POLL_RESET

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Sep 22, 2024 at 8:35 PM Jianguo Sun <quic_jianguos@xxxxxxxxxxx> wrote:
>
> 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@xxxxxxxxxxx>
> Signed-off-by: Anant Goel <quic_anantg@xxxxxxxxxxx>

Any reason this is not a feature but a config option?

> ---
>  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
>

Thanks






[Index of Archives]     [KVM Development]     [Libvirt Development]     [Libvirt Users]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux