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