Re: [virtio-dev] [RFC PATCH 1/1] VirtIO: Add platform bus driver for loopback virtio device

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

 



On 12/4/24 07:38, t.ampelikiotis@xxxxxxxxxxxxxxxxxxxxxx wrote:
> From: Timos Ampelikiotis <t.ampelikiotis@xxxxxxxxxxxxxxxxxxxxxx>
> 
> This commit, is based on virtio MMIO driver, adds support
> for dynamic allocated (platform) virtio devices. This
> allows applications running in native environments to use
> virtio drivers as a HAL and eventually communicate with
> user-space drivers (implementing the vhost-user protocol).
> 
> Signed-off-by: Timos Ampelikiotis <t.ampelikiotis@xxxxxxxxxxxxxxxxxxxxxx>
> ---
>  MAINTAINERS                                |  10 +
>  drivers/virtio/Kconfig                     |  20 +
>  drivers/virtio/Makefile                    |   2 +
>  drivers/virtio/virtio_loopback.c           | 780 +++++++++++++++++
>  drivers/virtio/virtio_loopback_transport.c | 924 +++++++++++++++++++++
>  include/uapi/linux/virtio_loopback.h       | 259 ++++++
>  6 files changed, 1995 insertions(+)
>  create mode 100644 drivers/virtio/virtio_loopback.c
>  create mode 100644 drivers/virtio/virtio_loopback_transport.c
>  create mode 100644 include/uapi/linux/virtio_loopback.h

...

> diff --git a/drivers/virtio/virtio_loopback.c b/drivers/virtio/virtio_loopback.c
> new file mode 100644
> index 000000000000..a3013f0e1109
> --- /dev/null
> +++ b/drivers/virtio/virtio_loopback.c
> @@ -0,0 +1,780 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> +/*
> + * Virtio loopback device driver
> + *
> + * Copyright 2022-2024 Virtual Open Systems SAS
> + *
> + * Authors:
> + *  Timos Ampelikiotis <t.ampelikiotis@xxxxxxxxxxxxxxxxxxxxxx>
> + *  Anna Panagopoulou <anna@xxxxxxxxxxxxxxxxxxxxxx>
> + *  Alvise Rigo <a.rigo@xxxxxxxxxxxxxxxxxxxxxx>
> + *
> + * This module allows virtio devices to be used in a non-virtualized
> + * environment, coupled with vhost-user device (user-space drivers).
> + *
> + * This module is responsible to assign the virtio-loopback transport driver
> + * to a group of virtio drivers in order to be able to share notifications and
> + * the vrings (without copies) with the corresponding vhost-user devices in
> + * the user-space.
> + *
> + * This program is free software; you can redistribute it and/or modify
> + * it under the terms of the GNU General Public License as published by
> + * the Free Software Foundation; either version 2 of the License, or
> + * (at your option) any later version.
> + *
> + * This program is distributed in the hope that it will be useful,
> + * but WITHOUT ANY WARRANTY; without even the implied warranty of
> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
> + * GNU General Public License for more details.
> + */
> +
> +#define pr_fmt(fmt) "virtio-loopback: " fmt
> +
> +/* Loopback header file */
> +#include <uapi/linux/virtio_loopback.h>
> +
> +/* Features */
> +MODULE_LICENSE("GPL");

Since commit 1fffe7a34c89 ("script: modpost: emit a warning when the
description is missing"), a module without a MODULE_DESCRIPTION() will
result in a warning with make W=1. Not sure if this issue is applicable
to virtio, but if so, please add a MODULE_DESCRIPTION().

/jeff




[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