mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH RESEND] VMCI: remove unused ioctl definitions
@ 2024-12-19 23:29 Alyssa Ross
  2024-12-20  6:40 ` Vishnu Dasa
  2024-12-20  7:17 ` Greg Kroah-Hartman
  0 siblings, 2 replies; 5+ messages in thread
From: Alyssa Ross @ 2024-12-19 23:29 UTC (permalink / raw)
  To: Arnd Bergmann, Greg Kroah-Hartman
  Cc: open list:VMWARE VMCI DRIVER, Bryan Tan, Vishnu Dasa,
	Broadcom internal kernel review list

IOCTL_VMCI_SOCKETS_VERSION and IOCTL_VMCI_SOCKETS_GET_AF_VALUE were
never implemented, because VSOCK ended up being implemented as a
generic mechanism with a static AF value.  Likewise,
IOCTL_VMCI_SOCKETS_GET_LOCAL_CID ended up being implemented as
IOCTL_VM_SOCKETS_GET_LOCAL_CID.

This isn't a UAPI header, so it should be fine to remove the unused
values.  I've left a comment noting IOCTL_VM_SOCKETS_GET_LOCAL_CID is
in the VMCI range to avoid unintentional reuse.

Signed-off-by: Alyssa Ross <hi@alyssa.is>
---
Hi misc maintainers!  I'm sending this version of the patch to you
because the VMWare VMCI maintainers don't seem to be around any more.
The last message on lore from either of them was in May.  Since then,
I've submitted this patch twice, and haven't heard anything in response.

 include/linux/vmw_vmci_defs.h | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/include/linux/vmw_vmci_defs.h b/include/linux/vmw_vmci_defs.h
index 6fb663b36f72..c2df94696593 100644
--- a/include/linux/vmw_vmci_defs.h
+++ b/include/linux/vmw_vmci_defs.h
@@ -453,9 +453,7 @@ enum {
 #define IOCTL_VMCI_CTX_GET_CPT_STATE		_IO(7, 0xb1)
 #define IOCTL_VMCI_CTX_SET_CPT_STATE		_IO(7, 0xb2)
 #define IOCTL_VMCI_GET_CONTEXT_ID		_IO(7, 0xb3)
-#define IOCTL_VMCI_SOCKETS_VERSION		_IO(7, 0xb4)
-#define IOCTL_VMCI_SOCKETS_GET_AF_VALUE		_IO(7, 0xb8)
-#define IOCTL_VMCI_SOCKETS_GET_LOCAL_CID	_IO(7, 0xb9)
+/*IOCTL_VM_SOCKETS_GET_LOCAL_CID		_IO(7, 0xb9)*/
 #define IOCTL_VMCI_SET_NOTIFY			_IO(7, 0xcb)	/* 1995 */
 /*IOCTL_VMMON_START				_IO(7, 0xd1)*/	/* 2001 */


base-commit: c33ffdb70cc6df4105160f991288e7d2567d7ffa
--
2.45.1


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

* Re: [PATCH RESEND] VMCI: remove unused ioctl definitions
  2024-12-19 23:29 [PATCH RESEND] VMCI: remove unused ioctl definitions Alyssa Ross
@ 2024-12-20  6:40 ` Vishnu Dasa
  2024-12-20  7:17 ` Greg Kroah-Hartman
  1 sibling, 0 replies; 5+ messages in thread
From: Vishnu Dasa @ 2024-12-20  6:40 UTC (permalink / raw)
  To: Alyssa Ross
  Cc: Arnd Bergmann, Greg Kroah-Hartman, open list:VMWARE VMCI DRIVER,
	Bryan Tan, Broadcom internal kernel review list

[-- Attachment #1: Type: text/plain, Size: 1992 bytes --]

On Thu, Dec 19, 2024 at 3:30 PM Alyssa Ross <hi@alyssa.is> wrote:
>
> IOCTL_VMCI_SOCKETS_VERSION and IOCTL_VMCI_SOCKETS_GET_AF_VALUE were
> never implemented, because VSOCK ended up being implemented as a
> generic mechanism with a static AF value.  Likewise,
> IOCTL_VMCI_SOCKETS_GET_LOCAL_CID ended up being implemented as
> IOCTL_VM_SOCKETS_GET_LOCAL_CID.
>
> This isn't a UAPI header, so it should be fine to remove the unused
> values.  I've left a comment noting IOCTL_VM_SOCKETS_GET_LOCAL_CID is
> in the VMCI range to avoid unintentional reuse.
>
> Signed-off-by: Alyssa Ross <hi@alyssa.is>

Acked-by: Vishnu Dasa <vishnu.dasa@broadcom.com>

> ---
> Hi misc maintainers!  I'm sending this version of the patch to you
> because the VMWare VMCI maintainers don't seem to be around any more.
> The last message on lore from either of them was in May.  Since then,
> I've submitted this patch twice, and haven't heard anything in response.
>
>  include/linux/vmw_vmci_defs.h | 4 +---
>  1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/include/linux/vmw_vmci_defs.h b/include/linux/vmw_vmci_defs.h
> index 6fb663b36f72..c2df94696593 100644
> --- a/include/linux/vmw_vmci_defs.h
> +++ b/include/linux/vmw_vmci_defs.h
> @@ -453,9 +453,7 @@ enum {
>  #define IOCTL_VMCI_CTX_GET_CPT_STATE           _IO(7, 0xb1)
>  #define IOCTL_VMCI_CTX_SET_CPT_STATE           _IO(7, 0xb2)
>  #define IOCTL_VMCI_GET_CONTEXT_ID              _IO(7, 0xb3)
> -#define IOCTL_VMCI_SOCKETS_VERSION             _IO(7, 0xb4)
> -#define IOCTL_VMCI_SOCKETS_GET_AF_VALUE                _IO(7, 0xb8)
> -#define IOCTL_VMCI_SOCKETS_GET_LOCAL_CID       _IO(7, 0xb9)
> +/*IOCTL_VM_SOCKETS_GET_LOCAL_CID               _IO(7, 0xb9)*/
>  #define IOCTL_VMCI_SET_NOTIFY                  _IO(7, 0xcb)    /* 1995 */
>  /*IOCTL_VMMON_START                            _IO(7, 0xd1)*/  /* 2001 */
>
>
> base-commit: c33ffdb70cc6df4105160f991288e7d2567d7ffa
> --
> 2.45.1
>

[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 5430 bytes --]

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

* Re: [PATCH RESEND] VMCI: remove unused ioctl definitions
  2024-12-19 23:29 [PATCH RESEND] VMCI: remove unused ioctl definitions Alyssa Ross
  2024-12-20  6:40 ` Vishnu Dasa
@ 2024-12-20  7:17 ` Greg Kroah-Hartman
  2024-12-20 11:52   ` Alyssa Ross
  1 sibling, 1 reply; 5+ messages in thread
From: Greg Kroah-Hartman @ 2024-12-20  7:17 UTC (permalink / raw)
  To: Alyssa Ross
  Cc: Arnd Bergmann, open list:VMWARE VMCI DRIVER, Bryan Tan,
	Vishnu Dasa, Broadcom internal kernel review list

On Fri, Dec 20, 2024 at 12:29:57AM +0100, Alyssa Ross wrote:
> IOCTL_VMCI_SOCKETS_VERSION and IOCTL_VMCI_SOCKETS_GET_AF_VALUE were
> never implemented, because VSOCK ended up being implemented as a
> generic mechanism with a static AF value.  Likewise,
> IOCTL_VMCI_SOCKETS_GET_LOCAL_CID ended up being implemented as
> IOCTL_VM_SOCKETS_GET_LOCAL_CID.
> 
> This isn't a UAPI header, so it should be fine to remove the unused
> values.  I've left a comment noting IOCTL_VM_SOCKETS_GET_LOCAL_CID is
> in the VMCI range to avoid unintentional reuse.
> 
> Signed-off-by: Alyssa Ross <hi@alyssa.is>
> ---
> Hi misc maintainers!  I'm sending this version of the patch to you
> because the VMWare VMCI maintainers don't seem to be around any more.
> The last message on lore from either of them was in May.  Since then,
> I've submitted this patch twice, and haven't heard anything in response.
> 
>  include/linux/vmw_vmci_defs.h | 4 +---
>  1 file changed, 1 insertion(+), 3 deletions(-)
> 
> diff --git a/include/linux/vmw_vmci_defs.h b/include/linux/vmw_vmci_defs.h
> index 6fb663b36f72..c2df94696593 100644
> --- a/include/linux/vmw_vmci_defs.h
> +++ b/include/linux/vmw_vmci_defs.h
> @@ -453,9 +453,7 @@ enum {
>  #define IOCTL_VMCI_CTX_GET_CPT_STATE		_IO(7, 0xb1)
>  #define IOCTL_VMCI_CTX_SET_CPT_STATE		_IO(7, 0xb2)
>  #define IOCTL_VMCI_GET_CONTEXT_ID		_IO(7, 0xb3)
> -#define IOCTL_VMCI_SOCKETS_VERSION		_IO(7, 0xb4)
> -#define IOCTL_VMCI_SOCKETS_GET_AF_VALUE		_IO(7, 0xb8)
> -#define IOCTL_VMCI_SOCKETS_GET_LOCAL_CID	_IO(7, 0xb9)
> +/*IOCTL_VM_SOCKETS_GET_LOCAL_CID		_IO(7, 0xb9)*/

Why is just this one left as a comment?  Shoudn't you just delet them
all?

thanks,

greg k-h

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

* Re: [PATCH RESEND] VMCI: remove unused ioctl definitions
  2024-12-20  7:17 ` Greg Kroah-Hartman
@ 2024-12-20 11:52   ` Alyssa Ross
  0 siblings, 0 replies; 5+ messages in thread
From: Alyssa Ross @ 2024-12-20 11:52 UTC (permalink / raw)
  To: Greg Kroah-Hartman
  Cc: Arnd Bergmann, open list:VMWARE VMCI DRIVER, Bryan Tan,
	Vishnu Dasa, Broadcom internal kernel review list

[-- Attachment #1: Type: text/plain, Size: 2337 bytes --]

On Fri, Dec 20, 2024 at 08:17:23AM +0100, Greg Kroah-Hartman wrote:
> On Fri, Dec 20, 2024 at 12:29:57AM +0100, Alyssa Ross wrote:
> > IOCTL_VMCI_SOCKETS_VERSION and IOCTL_VMCI_SOCKETS_GET_AF_VALUE were
> > never implemented, because VSOCK ended up being implemented as a
> > generic mechanism with a static AF value.  Likewise,
> > IOCTL_VMCI_SOCKETS_GET_LOCAL_CID ended up being implemented as
> > IOCTL_VM_SOCKETS_GET_LOCAL_CID.
> >
> > This isn't a UAPI header, so it should be fine to remove the unused
> > values.  I've left a comment noting IOCTL_VM_SOCKETS_GET_LOCAL_CID is
> > in the VMCI range to avoid unintentional reuse.
> >
> > Signed-off-by: Alyssa Ross <hi@alyssa.is>
> > ---
> > Hi misc maintainers!  I'm sending this version of the patch to you
> > because the VMWare VMCI maintainers don't seem to be around any more.
> > The last message on lore from either of them was in May.  Since then,
> > I've submitted this patch twice, and haven't heard anything in response.
> >
> >  include/linux/vmw_vmci_defs.h | 4 +---
> >  1 file changed, 1 insertion(+), 3 deletions(-)
> >
> > diff --git a/include/linux/vmw_vmci_defs.h b/include/linux/vmw_vmci_defs.h
> > index 6fb663b36f72..c2df94696593 100644
> > --- a/include/linux/vmw_vmci_defs.h
> > +++ b/include/linux/vmw_vmci_defs.h
> > @@ -453,9 +453,7 @@ enum {
> >  #define IOCTL_VMCI_CTX_GET_CPT_STATE		_IO(7, 0xb1)
> >  #define IOCTL_VMCI_CTX_SET_CPT_STATE		_IO(7, 0xb2)
> >  #define IOCTL_VMCI_GET_CONTEXT_ID		_IO(7, 0xb3)
> > -#define IOCTL_VMCI_SOCKETS_VERSION		_IO(7, 0xb4)
> > -#define IOCTL_VMCI_SOCKETS_GET_AF_VALUE		_IO(7, 0xb8)
> > -#define IOCTL_VMCI_SOCKETS_GET_LOCAL_CID	_IO(7, 0xb9)
> > +/*IOCTL_VM_SOCKETS_GET_LOCAL_CID		_IO(7, 0xb9)*/
>
> Why is just this one left as a comment?  Shoudn't you just delet them
> all?

I tried to explain this in the patch description, but I guess I didn't
communicate it clearly enuogh.  IOCTL_VMCI_SOCKETS_GET_LOCAL_CID ended
up being renamed to IOCTL_VM_SOCKETS_GET_LOCAL_CID when it was added to
the UAPI, because the VMCI sockets mechanism ended up being made
hypervisor-independent, not VMCI-specific.  However, the ioctl number
for it is still inside VMCI's range, so the comment here is to
communicate that that number is in use by an ioctl not defined here, and
so shouldn't be reused if new VMCI ioctls are added.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

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

* [PATCH RESEND] VMCI: remove unused ioctl definitions
@ 2024-11-02 10:15 Alyssa Ross
  0 siblings, 0 replies; 5+ messages in thread
From: Alyssa Ross @ 2024-11-02 10:15 UTC (permalink / raw)
  To: Bryan Tan, Vishnu Dasa, Broadcom internal kernel review list
  Cc: open list:VMWARE VMCI DRIVER

IOCTL_VMCI_SOCKETS_VERSION and IOCTL_VMCI_SOCKETS_GET_AF_VALUE were
never implemented, because VSOCK ended up being implemented as a
generic mechanism with a static AF value.  Likewise,
IOCTL_VMCI_SOCKETS_GET_LOCAL_CID ended up being implemented as
IOCTL_VM_SOCKETS_GET_LOCAL_CID.

This isn't a UAPI header, so it should be fine to remove the unused
values.  I've left a comment noting IOCTL_VM_SOCKETS_GET_LOCAL_CID is
in the VMCI range to avoid unintentional reuse.

Signed-off-by: Alyssa Ross <hi@alyssa.is>
---
 include/linux/vmw_vmci_defs.h | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/include/linux/vmw_vmci_defs.h b/include/linux/vmw_vmci_defs.h
index 6fb663b36f72..c2df94696593 100644
--- a/include/linux/vmw_vmci_defs.h
+++ b/include/linux/vmw_vmci_defs.h
@@ -453,9 +453,7 @@ enum {
 #define IOCTL_VMCI_CTX_GET_CPT_STATE		_IO(7, 0xb1)
 #define IOCTL_VMCI_CTX_SET_CPT_STATE		_IO(7, 0xb2)
 #define IOCTL_VMCI_GET_CONTEXT_ID		_IO(7, 0xb3)
-#define IOCTL_VMCI_SOCKETS_VERSION		_IO(7, 0xb4)
-#define IOCTL_VMCI_SOCKETS_GET_AF_VALUE		_IO(7, 0xb8)
-#define IOCTL_VMCI_SOCKETS_GET_LOCAL_CID	_IO(7, 0xb9)
+/*IOCTL_VM_SOCKETS_GET_LOCAL_CID		_IO(7, 0xb9)*/
 #define IOCTL_VMCI_SET_NOTIFY			_IO(7, 0xcb)	/* 1995 */
 /*IOCTL_VMMON_START				_IO(7, 0xd1)*/	/* 2001 */
 

base-commit: c33ffdb70cc6df4105160f991288e7d2567d7ffa
-- 
2.45.1


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

end of thread, other threads:[~2024-12-20 11:52 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-12-19 23:29 [PATCH RESEND] VMCI: remove unused ioctl definitions Alyssa Ross
2024-12-20  6:40 ` Vishnu Dasa
2024-12-20  7:17 ` Greg Kroah-Hartman
2024-12-20 11:52   ` Alyssa Ross
  -- strict thread matches above, loose matches on Subject: below --
2024-11-02 10:15 Alyssa Ross

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®