In legacy VirtIO drivers, the header must be PCI endianness (little) and the device-specific region is encoded in the native endian of the guest.
This patch makes the access (read/write) to VirtIO header using the little endian order. Other read and write access are native endianness. This patch also sets the device's IO region as big endian if we are in a big endian machine, otherwise little endian was assumed.