]> git.proxmox.com Git - qemu.git/commit
msix: Add simple BAR allocation MSIX setup functions
authorAlex Williamson <alex.williamson@redhat.com>
Thu, 14 Jun 2012 18:15:51 +0000 (12:15 -0600)
committerMichael S. Tsirkin <mst@robin.(none)>
Mon, 18 Jun 2012 07:21:05 +0000 (10:21 +0300)
commit53f949254ad2435bfd45cb0dee96f246a0bdd7e3
tree280a5d7b4b69818743f9023a175788f828cc9856
parent118f2c2b48b9758a3a2967868b337eb388d1531b
msix: Add simple BAR allocation MSIX setup functions

msi_init() takes over a BAR without really specifying or allowing
specification of how it does so.  Instead, let's split it into
two interfaces, one fully specified, and one trivially easy.  This
implements the latter.  msix_init_exclusive_bar() takes over
allocating and filling a PCI BAR _exclusively_ for the use of MSIX.
When used, the matching msi_uninit_exclusive_bar() should be used
to tear it down.

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