qemu-e2k/hw/i386/kvm
David Woodhouse c1bb5418e3 target/i386: Support up to 32768 CPUs without IRQ remapping
The IOAPIC has an 'Extended Destination ID' field in its RTE, which maps
to bits 11-4 of the MSI address. Since those address bits fall within a
given 4KiB page they were historically non-trivial to use on real hardware.

The Intel IOMMU uses the lowest bit to indicate a remappable format MSI,
and then the remaining 7 bits are part of the index.

Where the remappable format bit isn't set, we can actually use the other
seven to allow external (IOAPIC and MSI) interrupts to reach up to 32768
CPUs instead of just the 255 permitted on bare metal.

Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
Message-Id: <78097f9218300e63e751e077a0a5ca029b56ba46.camel@infradead.org>
[Fix UBSAN warning. - Paolo]
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
2020-12-10 12:15:00 -05:00
..
apic.c target/i386: Support up to 32768 CPUs without IRQ remapping 2020-12-10 12:15:00 -05:00
clock.c target/i386: always create kvmclock device 2020-09-30 19:11:36 +02:00
i8254.c qapi: Restrict LostTickPolicy enum to machine code 2020-09-29 15:41:35 +02:00
i8259.c Use DECLARE_*CHECKER* macros 2020-09-09 09:27:09 -04:00
ioapic.c i386/kvm: Remove IRQ routing support checks 2020-10-14 15:28:54 -04:00
meson.build meson: convert hw/arch* 2020-08-21 06:30:33 -04:00