Re: [PATCH v3 03/14] KVM: x86: use physical LAPIC array for logical x2APIC

Nadav Amit
2016-08-02T16:41:29Z

Radim Krčmář <rkrcmar@redhat.com> wrote:
>
> Offending LAPIC marks the logical mapping as unusable, which was
> intended. kvm_apic_map_get_logical_dest() returns false.
>
> The main problem is that SDM does not clearly forbid LAPICs in x2APIC
> mode while some xAPIC LAPICs have nonzero LDR, so we should handle it
> somewhat gracefully.
> In combination with our IR-less IOAPIC hack, this would mean that we
> would have to check both interpretations (x2 and xAPIC) of a logical
> address before delivering. Not to mention that we would also have to
> decide how to handle a case when both interpretations are valid.

My recollection of running Intel tests is that they do leave sometimes
some of the cores in the xAPIC mode while others are in x2APIC mode.
In this case, IIRC they do not generate IPIs from the xAPIC core.

IIRC they do expect broadcast interrupts to be received by all cores,
including those with xAPIC mode. However, I am unsure about this last
point.

Regards,
Nadav