]> git.proxmox.com Git - mirror_qemu.git/commit
virtio: add modern config accessors
authorMichael S. Tsirkin <mst@redhat.com>
Thu, 4 Jun 2015 10:34:24 +0000 (12:34 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 10 Jun 2015 16:15:05 +0000 (18:15 +0200)
commitadfb743c90c7aa5e92907ce875e4f35747ee1963
tree520758a3525d5482cff188a746dfa3c9f0b0c90c
parentb8f059081d93f1802480059d1d49fe5c1d32f60c
virtio: add modern config accessors

virtio 1.0 defines config space as LE,
as opposed to pre-1.0 which was native endian.

Add API for transports to execute word/dword accesses in
little endian format - will be useful for mmio
and pci (byte access is also wrapped, for completeness).

For simplicity, we still keep config in host native
endian format, byteswap to LE on guest access.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
hw/virtio/virtio.c
include/hw/virtio/virtio.h