[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20160413133844.GE9272@stefanha-x1.localdomain>
Date: Wed, 13 Apr 2016 14:38:44 +0100
From: Stefan Hajnoczi <stefanha@...hat.com>
To: Ian Campbell <ian.campbell@...ker.com>
Cc: "Michael S. Tsirkin" <mst@...hat.com>,
Stefan Hajnoczi <stefanha@...il.com>, kvm@...r.kernel.org,
netdev@...r.kernel.org, Matt Benjamin <mbenjamin@...hat.com>,
Christoffer Dall <christoffer.dall@...aro.org>,
Alex Bennée <alex.bennee@...aro.org>,
marius vlad <marius.vlad0@...il.com>, areis@...hat.com,
Claudio Imbrenda <imbrenda@...ux.vnet.ibm.com>,
Greg Kurz <gkurz@...ux.vnet.ibm.com>,
virtualization@...ts.linux-foundation.org, ijc@...lion.org.uk
Subject: Re: [RFC v5 0/5] Add virtio transport for AF_VSOCK
On Tue, Apr 12, 2016 at 05:37:54PM +0100, Ian Campbell wrote:
> Perhaps the guest end is turning shutdown(foo) directly into a vsock
> message without or-ing in the current state?
Yes, you are right:
lock_sock(sk);
sk->sk_shutdown |= mode;
sk->sk_state_change(sk);
release_sock(sk);
if (sk->sk_type == SOCK_STREAM) {
sock_reset_flag(sk, SOCK_DONE);
vsock_send_shutdown(sk, mode);
Although sk_shutdown is ORed correctly, vsock_send_shutdown() is called with
just the shutdown() argument.
Download attachment "signature.asc" of type "application/pgp-signature" (474 bytes)
Powered by blists - more mailing lists