mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] vhost: fix VHOST_*_OWNER documentation
@ 2025-03-03  8:52 Stefano Garzarella
  2025-03-03  9:28 ` Eugenio Perez Martin
  0 siblings, 1 reply; 3+ messages in thread
From: Stefano Garzarella @ 2025-03-03  8:52 UTC (permalink / raw)
  To: virtualization
  Cc: linux-kernel, netdev, Michael S. Tsirkin, Jason Wang, kvm,
	Eugenio Pérez, Stefano Garzarella

VHOST_OWNER_SET and VHOST_OWNER_RESET are used in the documentation
instead of VHOST_SET_OWNER and VHOST_RESET_OWNER respectively.

To avoid confusion, let's use the right names in the documentation.
No change to the API, only the documentation is involved.

Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
---
 include/uapi/linux/vhost.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/uapi/linux/vhost.h b/include/uapi/linux/vhost.h
index b95dd84eef2d..d4b3e2ae1314 100644
--- a/include/uapi/linux/vhost.h
+++ b/include/uapi/linux/vhost.h
@@ -28,10 +28,10 @@
 
 /* Set current process as the (exclusive) owner of this file descriptor.  This
  * must be called before any other vhost command.  Further calls to
- * VHOST_OWNER_SET fail until VHOST_OWNER_RESET is called. */
+ * VHOST_SET_OWNER fail until VHOST_RESET_OWNER is called. */
 #define VHOST_SET_OWNER _IO(VHOST_VIRTIO, 0x01)
 /* Give up ownership, and reset the device to default values.
- * Allows subsequent call to VHOST_OWNER_SET to succeed. */
+ * Allows subsequent call to VHOST_SET_OWNER to succeed. */
 #define VHOST_RESET_OWNER _IO(VHOST_VIRTIO, 0x02)
 
 /* Set up/modify memory layout */
-- 
2.48.1


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

* Re: [PATCH] vhost: fix VHOST_*_OWNER documentation
  2025-03-03  8:52 [PATCH] vhost: fix VHOST_*_OWNER documentation Stefano Garzarella
@ 2025-03-03  9:28 ` Eugenio Perez Martin
  2025-03-05  4:08   ` Jason Wang
  0 siblings, 1 reply; 3+ messages in thread
From: Eugenio Perez Martin @ 2025-03-03  9:28 UTC (permalink / raw)
  To: Stefano Garzarella
  Cc: virtualization, linux-kernel, netdev, Michael S. Tsirkin,
	Jason Wang, kvm

On Mon, Mar 3, 2025 at 9:52 AM Stefano Garzarella <sgarzare@redhat.com> wrote:
>
> VHOST_OWNER_SET and VHOST_OWNER_RESET are used in the documentation
> instead of VHOST_SET_OWNER and VHOST_RESET_OWNER respectively.
>
> To avoid confusion, let's use the right names in the documentation.
> No change to the API, only the documentation is involved.
>

Reviewed-by: Eugenio Pérez <eperezma@redhat.com>

> Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
> ---
>  include/uapi/linux/vhost.h | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/include/uapi/linux/vhost.h b/include/uapi/linux/vhost.h
> index b95dd84eef2d..d4b3e2ae1314 100644
> --- a/include/uapi/linux/vhost.h
> +++ b/include/uapi/linux/vhost.h
> @@ -28,10 +28,10 @@
>
>  /* Set current process as the (exclusive) owner of this file descriptor.  This
>   * must be called before any other vhost command.  Further calls to
> - * VHOST_OWNER_SET fail until VHOST_OWNER_RESET is called. */
> + * VHOST_SET_OWNER fail until VHOST_RESET_OWNER is called. */
>  #define VHOST_SET_OWNER _IO(VHOST_VIRTIO, 0x01)
>  /* Give up ownership, and reset the device to default values.
> - * Allows subsequent call to VHOST_OWNER_SET to succeed. */
> + * Allows subsequent call to VHOST_SET_OWNER to succeed. */
>  #define VHOST_RESET_OWNER _IO(VHOST_VIRTIO, 0x02)
>
>  /* Set up/modify memory layout */
> --
> 2.48.1
>


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

* Re: [PATCH] vhost: fix VHOST_*_OWNER documentation
  2025-03-03  9:28 ` Eugenio Perez Martin
@ 2025-03-05  4:08   ` Jason Wang
  0 siblings, 0 replies; 3+ messages in thread
From: Jason Wang @ 2025-03-05  4:08 UTC (permalink / raw)
  To: Eugenio Perez Martin
  Cc: Stefano Garzarella, virtualization, linux-kernel, netdev,
	Michael S. Tsirkin, kvm

On Mon, Mar 3, 2025 at 5:29 PM Eugenio Perez Martin <eperezma@redhat.com> wrote:
>
> On Mon, Mar 3, 2025 at 9:52 AM Stefano Garzarella <sgarzare@redhat.com> wrote:
> >
> > VHOST_OWNER_SET and VHOST_OWNER_RESET are used in the documentation
> > instead of VHOST_SET_OWNER and VHOST_RESET_OWNER respectively.
> >
> > To avoid confusion, let's use the right names in the documentation.
> > No change to the API, only the documentation is involved.
> >
>
> Reviewed-by: Eugenio Pérez <eperezma@redhat.com>
>

Acked-by: Jason Wang <jasowang@redhat.com>

Thanks


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

end of thread, other threads:[~2025-03-05  4:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-03-03  8:52 [PATCH] vhost: fix VHOST_*_OWNER documentation Stefano Garzarella
2025-03-03  9:28 ` Eugenio Perez Martin
2025-03-05  4:08   ` Jason Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®