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

@ -36,7 +36,7 @@
#include "elf.h"
#include "multiboot.h"
#include "mc146818rtc.h"
#include "msix.h"
#include "msi.h"
#include "sysbus.h"
#include "sysemu.h"
#include "blockdev.h"
@ -896,7 +896,7 @@ static DeviceState *apic_init(void *env, uint8_t apic_id)
apic_mapped = 1;
}
msix_supported = 1;
msi_supported = true;
return dev;
}