mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
kvm: x86: Add user space part for in-kernel i8259
Introduce the alternative 'kvm-i8259' device model that exploits KVM in-kernel acceleration. The PIIX3 initialization code is furthermore extended by KVM specific IRQ route setup. GSI injection differs in KVM mode from the user space model. As we can dispatch ISA-range IRQs to both IOAPIC and PIC inside the kernel, we do not need to inject them separately. This is reflected by a KVM-specific GSI handler. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
This commit is contained in:
parent
680c1c6fd7
commit
10b6188275
4 changed files with 178 additions and 5 deletions
1
hw/pc.h
1
hw/pc.h
|
@ -64,6 +64,7 @@ bool parallel_mm_init(MemoryRegion *address_space,
|
|||
|
||||
extern DeviceState *isa_pic;
|
||||
qemu_irq *i8259_init(ISABus *bus, qemu_irq parent_irq);
|
||||
qemu_irq *kvm_i8259_init(ISABus *bus);
|
||||
int pic_read_irq(DeviceState *d);
|
||||
int pic_get_output(DeviceState *d);
|
||||
void pic_info(Monitor *mon);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue