summaryrefslogtreecommitdiff
path: root/hw/apic.c
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2012-05-16 15:41:11 -0300
committerMarcelo Tosatti <mtosatti@redhat.com>2012-05-16 18:04:44 -0300
commit08a82ac01cb5409480128f8e1f144557d99b74a3 (patch)
treec7151763bac0097f5f8ca4ef67969729281b3e8d /hw/apic.c
parent04fa27f5ae5f025424bb7b88d3453c46e8900102 (diff)
downloadqemu-08a82ac01cb5409480128f8e1f144557d99b74a3.tar.gz
pc: Enable MSI support at APIC level
Push msi_supported enabling to the APIC implementations where we can encapsulate the decision more cleanly, hiding the details from the generic code. Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'hw/apic.c')
-rw-r--r--hw/apic.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/apic.c b/hw/apic.c
index 4eeaf8801c..5fbf01c278 100644
--- a/hw/apic.c
+++ b/hw/apic.c
@@ -19,6 +19,7 @@
#include "apic_internal.h"
#include "apic.h"
#include "ioapic.h"
+#include "msi.h"
#include "host-utils.h"
#include "trace.h"
#include "pc.h"
@@ -862,6 +863,8 @@ static void apic_init(APICCommonState *s)
s->timer = qemu_new_timer_ns(vm_clock, apic_timer, s);
local_apics[s->idx] = s;
+
+ msi_supported = true;
}
static void apic_class_init(ObjectClass *klass, void *data)