]> 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)
commit912e8f4eec7d074e63b034b7db05db00fccabfe5
treebf5f8ac3ed45b6a2e50225496d099c6d1059a56c
parent44dcc024e117f7e4ea23e6cbe3d2c8f404805e8c
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