Re: [Qemu-devel] [PATCH v3 3/9] virtio-9p: handle handle_9p_output() error

2016-09-26 Thread Stefan Hajnoczi
On Mon, Sep 26, 2016 at 10:34:15AM +0200, Greg Kurz wrote: > A broken guest may send a request without providing buffers for the reply > or for the request itself, and virtqueue_pop() will return an element with > either in_num == 0 or out_num == 0. > > All 9P requests are expected to start with t

[Qemu-devel] [PATCH v3 3/9] virtio-9p: handle handle_9p_output() error

2016-09-26 Thread Greg Kurz
A broken guest may send a request without providing buffers for the reply or for the request itself, and virtqueue_pop() will return an element with either in_num == 0 or out_num == 0. All 9P requests are expected to start with the following 7-byte header: uint32_t size_le;