X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fdevices%2Fapic.c;h=0ce5c7720d6e1a01522694ed53a3fc57b4e5cb37;hb=af7fc8afd1fe80621923faa0c065c0ae89f768ac;hp=cb588233fd784a6153c52b2fa343a01b9de82a1b;hpb=4bc3ee757b44d3e466fd89e348106c47fa5511ee;p=palacios.git diff --git a/palacios/src/devices/apic.c b/palacios/src/devices/apic.c index cb58823..0ce5c77 100644 --- a/palacios/src/devices/apic.c +++ b/palacios/src/devices/apic.c @@ -289,6 +289,12 @@ static int apic_do_eoi(struct apic_state * apic) { uchar_t flag = 0x1 << j; if ((*svc_major) & flag) { *svc_major &= ~flag; + +#ifdef CRAY_XT + if (((i * 8) + j) == 238) { + V3_ACK_IRQ(238); + } +#endif return 0; } } @@ -807,6 +813,16 @@ static int apic_get_intr_number(void * private_data) { } static int apic_raise_intr(void * private_data, int irq) { +#ifdef CRAY_XT + // The Seastar is connected directly to the LAPIC via LINT0 on the ICC bus + + if (irq == 238) { + struct vm_device * dev = (struct vm_device *)private_data; + struct apic_state * apic = (struct apic_state *)dev->private_data; + + return activate_apic_irq(apic, irq); + } +#endif return 0; }