]> git.baikalelectronics.ru Git - kernel.git/commit
VSOCK: Handle changes to the VMCI context ID.
authorReilly Grant <grantr@vmware.com>
Mon, 1 Apr 2013 18:41:52 +0000 (11:41 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 Apr 2013 18:39:17 +0000 (14:39 -0400)
commitdb34861cce7b798935e586b6c15db96a9e36af06
treebf5f8ac3ed45b6a2e50225496d099c6d1059a56c
parent0260ae0c246e627a06d487d3a52e7fdb5eb23f2c
VSOCK: Handle changes to the VMCI context ID.

The VMCI context ID of a virtual machine may change at any time. There
is a VMCI event which signals this but datagrams may be processed before
this is handled. It is therefore necessary to be flexible about the
destination context ID of any datagrams received. (It can be assumed to
be correct because it is provided by the hypervisor.) The context ID on
existing sockets should be updated to reflect how the hypervisor is
currently referring to the system.

Signed-off-by: Reilly Grant <grantr@vmware.com>
Acked-by: Andy King <acking@vmware.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/vmw_vsock/af_vsock.c
net/vmw_vsock/vmci_transport.c
net/vmw_vsock/vsock_addr.c
net/vmw_vsock/vsock_addr.h