]> git.proxmox.com Git - mirror_qemu.git/commit
virtiofsd: Don't assume header layout
authorDr. David Alan Gilbert <dgilbert@redhat.com>
Wed, 28 Apr 2021 11:00:36 +0000 (12:00 +0100)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Thu, 6 May 2021 18:47:44 +0000 (19:47 +0100)
commit5bf5188a116a4b7663662b1f19b2fe91ff0b5974
treee1a2382f13e97ab1edcf7228ce024856800c0ce8
parentd02a3c5a1b3d579eec0531b9453a6beb5189edad
virtiofsd: Don't assume header layout

virtiofsd incorrectly assumed a fixed set of header layout in the virt
queue; assuming that the fuse and write headers were conveniently
separated from the data;  the spec doesn't allow us to take that
convenience, so fix it up to deal with it the hard way.

Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Message-Id: <20210428110100.27757-3-dgilbert@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
tools/virtiofsd/fuse_virtio.c