virtio-blk: use virtio wrappers to access headers
commit783d189725d937f8ed9dae68c7e35b6afa0691da
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 24 Jun 2014 17:43:44 +0000 (24 19:43 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 29 Jun 2014 16:39:42 +0000 (29 19:39 +0300)
tree9e99bf370e6bce0e8a191d82866274eccb9da838
parent8609d2a87aff1e4b45fa96f7373d9f8e07951deb
virtio-blk: use virtio wrappers to access headers

Note that st*_raw and ld*_raw are effectively replaced by st*_p and ld*_p.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Reviewed-by: Anthony Liguori <aliguori@us.ibm.com>
[ pass VirtIODevice * to memory accessors,
  Greg Kurz <gkurz@linux.vnet.ibm.com> ]
Signed-off-by: Greg Kurz <gkurz@linux.vnet.ibm.com>
Reviewed-by: Alexander Graf <agraf@suse.de>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/block/virtio-blk.c