[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 4/6] Add the aehd-ioapic device type.
From: |
Philippe Mathieu-Daudé |
Subject: |
Re: [PATCH 4/6] Add the aehd-ioapic device type. |
Date: |
Fri, 3 Mar 2023 11:03:25 +0100 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 |
On 3/3/23 03:26, Haitao Shan wrote:
The aehd-ioapic device type represents the AEHD in kernel IO-APIC.
The irqchips should be always in kernel when AEHD is used.
Signed-off-by: Haitao Shan <hshan@google.com>
---
hw/i386/aehd/ioapic.c | 164 ++++++++++++++++++++++++++++++++++++
hw/i386/aehd/meson.build | 1 +
hw/i386/pc.c | 3 +
hw/i386/x86.c | 3 +
include/hw/intc/ioapic.h | 1 +
include/sysemu/aehd.h | 4 +
target/i386/aehd/aehd-all.c | 14 +++
7 files changed, 190 insertions(+)
create mode 100644 hw/i386/aehd/ioapic.c
+static const TypeInfo aehd_ioapic_info = {
+ .name = TYPE_AEHD_IOAPIC,
+ .parent = TYPE_IOAPIC_COMMON,
Instead of duplicating TYPE_KVM_IOAPIC, as a first step we should
extract the common code in an abstract TYPE_INKERNEL_IOAPIC object,
then TYPE_AEHD_IOAPIC inherits it.
+ .instance_size = sizeof(AEHDIOAPICState),
+ .class_init = aehd_ioapic_class_init,
+};
- [PATCH 1/6] Add the Android Emulator hypervisor driver (AEHD) accelerator., Haitao Shan, 2023/03/02
- [PATCH 2/6] Add a few AEHD headers., Haitao Shan, 2023/03/02
- [PATCH 3/6] Add the aehd-apic device type., Haitao Shan, 2023/03/02
- [PATCH 4/6] Add the aehd-ioapic device type., Haitao Shan, 2023/03/02
- Re: [PATCH 4/6] Add the aehd-ioapic device type.,
Philippe Mathieu-Daudé <=
- [PATCH 5/6] Add the aehd-i8259 device type., Haitao Shan, 2023/03/02
- [PATCH 6/6] Add the AEHD implementation., Haitao Shan, 2023/03/02
- Re: [PATCH 1/6] Add the Android Emulator hypervisor driver (AEHD) accelerator., Michael S. Tsirkin, 2023/03/03