virtio-pci: change & document virtio pci bar layout.
commit23c5e3977502a1b57fa2d8cf8cf4b5c9e45f0d1f
authorGerd Hoffmann <kraxel@redhat.com>
Thu, 4 Jun 2015 10:34:28 +0000 (4 12:34 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 10 Jun 2015 16:15:05 +0000 (10 18:15 +0200)
treedf7cdda099d8bcd60748344b61c2e86420675ecf
parent8aca0d75869f8ad0aa0032c50d8c85dcad65302f
virtio-pci: change & document virtio pci bar layout.

This patch adds variables for the pci bars (to get rid of the magic
numbers in the code) and moves the modern virtio bar to region 4 so
regions 2+3 are kept free.  virtio-vga wants use them.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
hw/virtio/virtio-pci.c