diff options
| author | Bui Quang Minh <minhquangbui99@gmail.com> | 2024-01-11 22:43:59 +0700 |
|---|---|---|
| committer | Michael S. Tsirkin <mst@redhat.com> | 2024-02-14 06:09:32 -0500 |
| commit | b5ee0468e9d28c6bd47cce70f90b5032dd10ecc2 (patch) | |
| tree | c423b901c9b931ba9f44c69524fb5c11dc65b4a0 /include/hw/i386/apic.h | |
| parent | b2101358e591c9f0a93739dd3aee72935a79af80 (diff) | |
| download | focaccia-qemu-b5ee0468e9d28c6bd47cce70f90b5032dd10ecc2.tar.gz focaccia-qemu-b5ee0468e9d28c6bd47cce70f90b5032dd10ecc2.zip | |
apic: add support for x2APIC mode
This commit extends the APIC ID to 32-bit long and remove the 255 max APIC ID limit in userspace APIC. The array that manages local APICs is now dynamically allocated based on the max APIC ID of created x86 machine. Also, new x2APIC IPI destination determination scheme, self IPI and x2APIC mode register access are supported. Signed-off-by: Bui Quang Minh <minhquangbui99@gmail.com> Message-Id: <20240111154404.5333-3-minhquangbui99@gmail.com> Acked-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include/hw/i386/apic.h')
| -rw-r--r-- | include/hw/i386/apic.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/hw/i386/apic.h b/include/hw/i386/apic.h index ddea4213db..c8ca41ab44 100644 --- a/include/hw/i386/apic.h +++ b/include/hw/i386/apic.h @@ -3,8 +3,7 @@ /* apic.c */ -void apic_deliver_irq(uint8_t dest, uint8_t dest_mode, uint8_t delivery_mode, - uint8_t vector_num, uint8_t trigger_mode); +void apic_set_max_apic_id(uint32_t max_apic_id); int apic_accept_pic_intr(DeviceState *s); void apic_deliver_pic_intr(DeviceState *s, int level); void apic_deliver_nmi(DeviceState *d); |