msi: Generalize msix_supported to msi_supported

Rename msix_supported to msi_supported and control MSI and MSI-X
activation this way. That was likely to original intention for this
flag, but MSI support came after MSI-X.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
This commit is contained in:
Jan Kiszka 2011-10-15 14:33:17 +02:00
parent eab70139a6
commit 60ba3cc231
5 changed files with 17 additions and 10 deletions

View file

@ -24,6 +24,8 @@
#include "qemu-common.h"
#include "pci.h"
extern bool msi_supported;
bool msi_enabled(const PCIDevice *dev);
int msi_init(struct PCIDevice *dev, uint8_t offset,
unsigned int nr_vectors, bool msi64bit, bool msi_per_vector_mask);