diff options
author | Alexander Graf <agraf@suse.de> | 2012-01-10 23:33:10 +0100 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2012-01-21 05:17:01 +0100 |
commit | 06dbfc6f8833475065c9cf5fdbdb990dbb4b619b (patch) | |
tree | 03f2fff51497ef75d854bddfe7c016fd4117ead3 /hw/loader.c | |
parent | 82afa58641b0e67abbaf4da6c325ebd7c2513262 (diff) |
virtio: change memcpy to guest reads
When accessing the device specific virtio config space, we memcpy
the data into a variable in QEMU. At that point we're basically
pulling host endianness into the game which is a really bad idea.
So instead, let's use the target specific load/store helpers for
memory pointers which fetch things in target endianness. The whole
array is already populated in target endianness anyways
(see virtio-blk).
Signed-off-by: Alexander Graf <agraf@suse.de>
Reviewed-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/loader.c')
0 files changed, 0 insertions, 0 deletions