msix: Allow full specification of MSIX layout
commit5a2c20298196e1eea212ca0fb6d0f68869a1b86d
authorAlex Williamson <alex.williamson@redhat.com>
Thu, 14 Jun 2012 18:16:47 +0000 (14 12:16 -0600)
committerMichael S. Tsirkin <mst@robin.(none)>
Mon, 18 Jun 2012 07:21:11 +0000 (18 10:21 +0300)
tree4b98d41ac1f587f2de959a0db28c9eadb1068e07
parentd35e428c8400f9ddc07e5a15ff19622c869b9ba0
msix: Allow full specification of MSIX layout

Finally, complete the fully specified interface.  msix_add_config()
gets folded into msix_init() because we now have quite a few parameters
to pass and rolling it in let's us error earlier, avoiding the ugly
unwind exit path.  msix_mmio_setup() also gets rolled in, just because
it's redundant to rediscover offsets when we already have them for
such a tiny function.

Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/msix.c
hw/msix.h