xen: fix qdisk BLKIF_OP_DISCARD for 32/64 word size mix
authorJuergen Gross <jgross@suse.com>
Mon, 20 Jun 2016 07:55:43 +0000 (09:55 +0200)
committerStefano Stabellini <sstabellini@kernel.org>
Wed, 22 Jun 2016 10:28:17 +0000 (11:28 +0100)
commit16246018d3097dc9ce15d07a54360dad03e9a7a6
tree6119e8c4b5751e24a38444c40349da57a70f51cf
parent0d8e58942a0b0b616bf26c816873102e6d059dc7
xen: fix qdisk BLKIF_OP_DISCARD for 32/64 word size mix

In case the word size of the domU and qemu running the qdisk backend
differ BLKIF_OP_DISCARD will not work reliably, as the request
structure in the ring have different layouts for different word size.

Correct this by copying the request structure in case of different
word size element by element in the BLKIF_OP_DISCARD case, too.

Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
hw/block/xen_blkif.h