public inbox for virtio-dev@lists.linux.dev
 help / color / mirror / Atom feed
* VIRTIO_VSOCK_OP_REQUEST with the same src_port from a guest
@ 2024-07-01 17:35 Roman Kiryanov
  2024-07-01 18:44 ` Michael S. Tsirkin
  0 siblings, 1 reply; 6+ messages in thread
From: Roman Kiryanov @ 2024-07-01 17:35 UTC (permalink / raw)
  To: virtio-dev; +Cc: JP Cottin

Hi virtio-dev,

we (Android Studio Emulator) have our own implementation of
virtio-vsock and we recently found that the virtio spec does not cover
the situation if a guest sends a VIRTIO_VSOCK_OP_REQUEST packet with
the same src_port that is already registered on the device side.

This sounds like an error to me and I don't think I ever saw this
happening, but it would be nice if the spec explicitly mentioned how
this situation should be handled on the device side.

The spec does mention "A VIRTIO_VSOCK_OP_RST reply is sent if ... the
destination has insufficient resources to establish the connection",
but I am not sure if this includes the duplicate src_port case. I
think this means the previously established connection will be broken.

Thank you.

Regards,
Roman.

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

end of thread, other threads:[~2024-07-01 21:01 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-01 17:35 VIRTIO_VSOCK_OP_REQUEST with the same src_port from a guest Roman Kiryanov
2024-07-01 18:44 ` Michael S. Tsirkin
2024-07-01 19:16   ` Roman Kiryanov
2024-07-01 19:40     ` Michael S. Tsirkin
2024-07-01 19:55       ` Roman Kiryanov
2024-07-01 21:01         ` 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