Re: [Qemu-devel] [PATCH] 9pfs: proxy: assert if unmarshal fails

2017-02-11 Thread Greg Kurz
On Sat, 11 Feb 2017 01:25:17 -0300 Philippe Mathieu-Daudé wrote: > Hi Greg, > Hi Philippe, > On 02/06/2017 02:20 PM, Greg Kurz wrote: > > Replies from the virtfs proxy are made up of a fixed-size header (8 bytes) > > and a payload of variable size (maximum 64kb). When receiving a reply, > > th

Re: [Qemu-devel] [PATCH] 9pfs: proxy: assert if unmarshal fails

2017-02-10 Thread Philippe Mathieu-Daudé
Hi Greg, On 02/06/2017 02:20 PM, Greg Kurz wrote: Replies from the virtfs proxy are made up of a fixed-size header (8 bytes) and a payload of variable size (maximum 64kb). When receiving a reply, the proxy backend first reads the whole header and then unmarshals it. If the header is okay, it the

[Qemu-devel] [PATCH] 9pfs: proxy: assert if unmarshal fails

2017-02-06 Thread Greg Kurz
Replies from the virtfs proxy are made up of a fixed-size header (8 bytes) and a payload of variable size (maximum 64kb). When receiving a reply, the proxy backend first reads the whole header and then unmarshals it. If the header is okay, it then does the same operation with the payload. Since th