diff options
author | Jan Kiszka <jan.kiszka@siemens.com> | 2012-05-16 15:41:11 -0300 |
---|---|---|
committer | Marcelo Tosatti <mtosatti@redhat.com> | 2012-05-16 18:04:44 -0300 |
commit | 08a82ac01cb5409480128f8e1f144557d99b74a3 (patch) | |
tree | c7151763bac0097f5f8ca4ef67969729281b3e8d /hw/xen_apic.c | |
parent | 04fa27f5ae5f025424bb7b88d3453c46e8900102 (diff) |
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/xen_apic.c')
-rw-r--r-- | hw/xen_apic.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/hw/xen_apic.c b/hw/xen_apic.c index 1725ff67dd..a9e101f315 100644 --- a/hw/xen_apic.c +++ b/hw/xen_apic.c @@ -40,6 +40,11 @@ static void xen_apic_init(APICCommonState *s) { memory_region_init_io(&s->io_memory, &xen_apic_io_ops, s, "xen-apic-msi", MSI_SPACE_SIZE); + +#if defined(CONFIG_XEN_CTRL_INTERFACE_VERSION) \ + && CONFIG_XEN_CTRL_INTERFACE_VERSION >= 420 + msi_supported = true; +#endif } static void xen_apic_set_base(APICCommonState *s, uint64_t val) |