pci: add API to get a BAR's mapped address
authorAvi Kivity <avi@redhat.com>
Mon, 8 Aug 2011 13:08:55 +0000 (16:08 +0300)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 8 Aug 2011 15:15:52 +0000 (10:15 -0500)
commite8d9e0d58c9805b1112e3dbdbc2f93a263b39b9e
treedae8e4ca7be3621970ae085a093cdfe0d0fd0fa6
parent391d8b58f459e134e045d01d77f80fef29363a40
pci: add API to get a BAR's mapped address

Some (hacky) devices that have a back-channel to read this
address back outside the normal configuration mechanisms, such
as VMware svga.

Reviewed-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/pci.c
hw/pci.h