]> git.proxmox.com Git - mirror_qemu.git/commit
libqos: Add 64-bit PCI IO accessors
authorDavid Gibson <david@gibson.dropbear.id.au>
Wed, 19 Oct 2016 04:00:21 +0000 (15:00 +1100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Thu, 27 Oct 2016 22:38:27 +0000 (09:38 +1100)
commitf775f45ab866f8e2d26720de9cb3c8f0ba5684d3
tree2bf82d643d259dc9c9c7ac14d75c2762d57bb678
parent9c268f8ae84ae18679ba2c3b16394e1828e9a006
libqos: Add 64-bit PCI IO accessors

Currently the libqos PCI layer includes accessor helpers for 8, 16 and 32
bit reads and writes.  It's likely that we'll want 64-bit accesses in the
future (plenty of modern peripherals will have 64-bit reigsters).  This
adds them.

For PIO (not MMIO) accesses on the PC backend, this is implemented as two
32-bit ins or outs.  That's not ideal but AFAICT x86 doesn't have 64-bit
versions of in and out.

This patch also converts the single current user of 64-bit accesses -
virtio-pci.c to use the new mechanism, rather than a sequence of 8 byte
reads.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Laurent Vivier <lvivier@redhat.com>
Reviewed-by: Greg Kurz <groug@kaod.org>
tests/libqos/pci-pc.c
tests/libqos/pci-spapr.c
tests/libqos/pci.c
tests/libqos/pci.h
tests/libqos/virtio-pci.c