xen: use native disk xenbus protocol if possible
commit4ada797b05a52ac824a710c67216b37739026a64
authorJuergen Gross <jgross@suse.com>
Wed, 29 Jun 2016 15:50:48 +0000 (29 17:50 +0200)
committerStefano Stabellini <sstabellini@kernel.org>
Tue, 30 Aug 2016 22:01:01 +0000 (30 15:01 -0700)
tree27be3109cb23d8f228b32ea6ae801d88ad02ddb7
parent12d2c4184c5ab60be3428b2bdea5ae66e8d5d960
xen: use native disk xenbus protocol if possible

The qdisk implementation is using the native xenbus protocol only in
case of no protocol specified at all. As using the explicit 32- or
64-bit protocol is slower than the native one due to copying requests
not by memcpy but element for element, this is not optimal.

Correct this by using the native protocol in case word sizes of
frontend and backend match.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Anthony PERARD <anthony.perard@citrix.com>
Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
hw/block/xen_disk.c