]> git.proxmox.com Git - mirror_qemu.git/commit
msi/msix: added API to set MSI message address and data
authorAlexey Kardashevskiy <aik@ozlabs.ru>
Thu, 19 Jul 2012 00:35:07 +0000 (10:35 +1000)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 19 Jul 2012 14:56:42 +0000 (17:56 +0300)
commit932d4a42afa28829fadf3cbfbb0507cc09aafd8b
treeaac382560039bf5e0404f6ce138db06b60e78c39
parent0ae1625177aba9ac70beb1556615530ddb18086d
msi/msix: added API to set MSI message address and data

Added (msi|msix)_set_message() function for whoever might
want to use them.

Currently msi_notify()/msix_notify() write to these vectors to
signal the guest about an interrupt so the correct values have to
written there by the guest or QEMU.

For example, POWER guest never initializes MSI/MSIX vectors, instead
it uses RTAS hypercalls. So in order to support MSIX for virtio-pci on
POWER we have to initialize MSI/MSIX message from QEMU.

Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/msi.c
hw/msi.h
hw/msix.c
hw/msix.h