Greg Kurz
7d82410950
virtio: add explicit big-endian support to memory accessors
...
The current memory accessors logic is:
- little endian if little_endian
- native endian (i.e. no byteswap) if !little_endian
If we want to fully support cross-endian vhost, we also need to be
able to convert to big endian.
Instead of changing the little_endian argument to some 3-value enum, this
patch changes the logic to:
- little endian if little_endian
- big endian if !little_endian
The native endian case is handled by all users with a trivial helper. This
patch doesn't change any functionality, nor it does add overhead.
Signed-off-by: Greg Kurz <gkurz@linux.vnet.ibm.com >
Signed-off-by: Michael S. Tsirkin <mst@redhat.com >
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com >
Reviewed-by: David Gibson <david@gibson.dropbear.id.au >
2015-06-01 15:48:54 +02:00
..
2015-04-22 18:33:48 +03:00
2015-04-22 09:24:55 -07:00
2015-04-22 18:33:43 +03:00
2015-04-24 09:49:37 -07:00
2015-05-09 14:59:05 -07:00
2015-04-26 13:36:02 -07:00
2015-04-15 15:51:50 -04:00
2015-04-24 09:49:37 -07:00
2015-05-08 11:22:30 -07:00
2015-04-22 08:00:41 +10:00
2015-05-08 11:53:55 +02:00
2015-04-15 09:00:47 -07:00
2015-04-23 15:16:37 -04:00
2015-04-15 16:35:22 -07:00
2015-04-24 08:23:45 -07:00
2015-04-22 08:00:42 +10:00
2015-04-17 09:03:56 -04:00
2015-04-17 09:03:53 -04:00
2015-05-04 13:09:55 -06:00
2015-04-17 08:31:12 -06:00
2015-05-12 17:21:22 -04:00
2015-05-25 00:16:07 -04:00
2015-04-15 16:35:22 -07:00
2015-04-24 08:23:45 -07:00
2015-04-15 16:35:17 -07:00
2015-05-04 17:49:51 +08:00
2015-05-04 17:49:51 +08:00
2015-05-04 17:49:51 +08:00
2015-05-28 11:05:20 +09:30
2015-04-15 16:35:22 -07:00
2015-04-15 15:05:28 -04:00
2015-04-14 20:21:54 -07:00
2015-04-21 14:47:16 +05:30
2015-04-17 23:18:53 +05:30
2015-04-26 17:22:07 -07:00
2015-05-06 23:03:23 -04:00
2015-05-14 17:55:51 -07:00
2015-05-12 14:13:20 +02:00
2015-04-15 16:35:19 -07:00
2015-04-14 20:21:54 -07:00
2015-04-21 09:42:58 -07:00
2015-04-18 12:32:59 -07:00
2015-04-15 16:35:22 -07:00
2015-04-15 16:35:20 -07:00
2015-04-21 09:44:55 -03:00
2015-04-17 09:03:55 -04:00
2015-04-23 16:52:01 +02:00
2015-04-15 16:35:17 -07:00
2015-05-13 10:19:35 +02:00
2015-04-25 16:50:14 -04:00
2015-05-14 17:55:51 -07:00
2015-04-15 16:35:18 -07:00
2015-04-17 09:04:07 -04:00
2015-04-22 09:44:36 -07:00
2015-04-15 16:35:16 -07:00
2015-04-18 11:20:31 -04:00
2015-05-12 23:22:03 -04:00
2015-04-24 20:51:40 +02:00
2015-04-21 16:16:04 -04:00
2015-04-26 17:33:59 -07:00
2015-04-23 14:36:28 -04:00
2015-05-05 17:10:11 -07:00
2015-04-14 19:35:44 -05:00
2015-04-14 19:23:24 -05:00
2015-04-24 08:46:18 -07:00
2015-04-15 16:35:19 -07:00
2015-05-06 10:47:25 -07:00
2015-04-16 13:53:32 -05:00
2015-05-29 07:39:34 +10:00
2015-04-15 16:35:23 -07:00
2015-04-15 16:35:23 -07:00
2015-05-16 18:08:26 -04:00
2015-04-15 16:35:19 -07:00
2015-04-29 14:59:16 -04:00
2015-04-27 15:49:30 +02:00
2015-04-15 09:00:47 -07:00
2015-05-20 13:51:25 +02:00
2015-04-20 09:08:49 -07:00
2015-04-16 13:58:42 -04:00
2015-04-16 19:02:04 -04:00
2015-04-15 16:35:17 -07:00
2015-04-17 09:04:07 -04:00
2015-05-22 13:46:06 -04:00
2015-05-10 19:26:37 +02:00
2015-04-15 16:35:22 -07:00
2015-05-14 17:55:51 -07:00
2015-04-28 12:48:57 +02:00
2015-05-05 17:10:11 -07:00
2015-04-14 18:06:47 -07:00
2015-06-01 15:48:54 +02:00
2015-06-01 15:48:54 +02:00
2015-04-15 12:41:14 +09:30
2015-06-01 15:48:54 +02:00
2015-04-15 16:35:20 -07:00