vhost: cross-endian support for legacy devices