* [Qemu-devel] [Bug 1834051] [NEW] IRQ2 ignored under KVM when using IOAPIC
@ 2019-06-24 15:04 roblabla
2019-06-24 15:20 ` [Qemu-devel] [Bug 1834051] " roblabla
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: roblabla @ 2019-06-24 15:04 UTC (permalink / raw)
To: qemu-devel
Public bug reported:
When using KVM, and an OS that supports the IOAPIC, interrupts mapped on
IRQ2 (for instance, routing an HPET timer on interrupt 2) will cause the
interrupts to never be delivered. This is because QEmu, when setting up
the KVM interrupt routes, will not set one up for IRQ2[0]. When running
without KVM, IRQ2 is identity-mapped to GSI2.
My understanding is that IRQs should be identity mapped to their
equivalent GSI unless a redirection entry is present in the MADT. This
is supported by ACPI 6.2 spec[1], 5.2.12.5 Interrupt Source Override
Structure, which claims: "It is assumed that the ISA interrupts will be
identity-mapped into the first I/O APIC sources.".
I stumbled across this while working on my own custom OS, got very
confused why the HPET wasn't triggering any interruption - and even more
confused why the behavior only happened in KVM and not in non-KVM.
[0]:
https://github.com/qemu/qemu/blob/37560c259d7a0d6aceb96e9d6903ee002f4e5e0c/hw/i386/kvm/ioapic.c#L40
[1]: https://uefi.org/sites/default/files/resources/ACPI_6_2.pdf
** Affects: qemu
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1834051
Title:
IRQ2 ignored under KVM when using IOAPIC
Status in QEMU:
New
Bug description:
When using KVM, and an OS that supports the IOAPIC, interrupts mapped
on IRQ2 (for instance, routing an HPET timer on interrupt 2) will
cause the interrupts to never be delivered. This is because QEmu, when
setting up the KVM interrupt routes, will not set one up for IRQ2[0].
When running without KVM, IRQ2 is identity-mapped to GSI2.
My understanding is that IRQs should be identity mapped to their
equivalent GSI unless a redirection entry is present in the MADT. This
is supported by ACPI 6.2 spec[1], 5.2.12.5 Interrupt Source Override
Structure, which claims: "It is assumed that the ISA interrupts will
be identity-mapped into the first I/O APIC sources.".
I stumbled across this while working on my own custom OS, got very
confused why the HPET wasn't triggering any interruption - and even
more confused why the behavior only happened in KVM and not in non-
KVM.
[0]:
https://github.com/qemu/qemu/blob/37560c259d7a0d6aceb96e9d6903ee002f4e5e0c/hw/i386/kvm/ioapic.c#L40
[1]: https://uefi.org/sites/default/files/resources/ACPI_6_2.pdf
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1834051/+subscriptions
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Qemu-devel] [Bug 1834051] Re: IRQ2 ignored under KVM when using IOAPIC
2019-06-24 15:04 [Qemu-devel] [Bug 1834051] [NEW] IRQ2 ignored under KVM when using IOAPIC roblabla
@ 2019-06-24 15:20 ` roblabla
2019-06-24 15:48 ` roblabla
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: roblabla @ 2019-06-24 15:20 UTC (permalink / raw)
To: qemu-devel
** Description changed:
When using KVM, and an OS that supports the IOAPIC, interrupts mapped on
IRQ2 (for instance, routing an HPET timer on interrupt 2) will cause the
interrupts to never be delivered. This is because QEmu, when setting up
the KVM interrupt routes, will not set one up for IRQ2[0]. When running
without KVM, IRQ2 is identity-mapped to GSI2.
My understanding is that IRQs should be identity mapped to their
equivalent GSI unless a redirection entry is present in the MADT. This
is supported by ACPI 6.2 spec[1], 5.2.12.5 Interrupt Source Override
Structure, which claims: "It is assumed that the ISA interrupts will be
identity-mapped into the first I/O APIC sources.".
I stumbled across this while working on my own custom OS, got very
confused why the HPET wasn't triggering any interruption - and even more
confused why the behavior only happened in KVM and not in non-KVM.
+ Version tested: QEMU emulator version 4.0.50
+ (v4.0.0-226-g8482ff2eb3-dirty)
+
[0]:
https://github.com/qemu/qemu/blob/37560c259d7a0d6aceb96e9d6903ee002f4e5e0c/hw/i386/kvm/ioapic.c#L40
[1]: https://uefi.org/sites/default/files/resources/ACPI_6_2.pdf
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1834051
Title:
IRQ2 ignored under KVM when using IOAPIC
Status in QEMU:
New
Bug description:
When using KVM, and an OS that supports the IOAPIC, interrupts mapped
on IRQ2 (for instance, routing an HPET timer on interrupt 2) will
cause the interrupts to never be delivered. This is because QEmu, when
setting up the KVM interrupt routes, will not set one up for IRQ2[0].
When running without KVM, IRQ2 is identity-mapped to GSI2.
My understanding is that IRQs should be identity mapped to their
equivalent GSI unless a redirection entry is present in the MADT. This
is supported by ACPI 6.2 spec[1], 5.2.12.5 Interrupt Source Override
Structure, which claims: "It is assumed that the ISA interrupts will
be identity-mapped into the first I/O APIC sources.".
I stumbled across this while working on my own custom OS, got very
confused why the HPET wasn't triggering any interruption - and even
more confused why the behavior only happened in KVM and not in non-
KVM.
Version tested: QEMU emulator version 4.0.50
(v4.0.0-226-g8482ff2eb3-dirty)
[0]:
https://github.com/qemu/qemu/blob/37560c259d7a0d6aceb96e9d6903ee002f4e5e0c/hw/i386/kvm/ioapic.c#L40
[1]: https://uefi.org/sites/default/files/resources/ACPI_6_2.pdf
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1834051/+subscriptions
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Qemu-devel] [Bug 1834051] Re: IRQ2 ignored under KVM when using IOAPIC
2019-06-24 15:04 [Qemu-devel] [Bug 1834051] [NEW] IRQ2 ignored under KVM when using IOAPIC roblabla
2019-06-24 15:20 ` [Qemu-devel] [Bug 1834051] " roblabla
@ 2019-06-24 15:48 ` roblabla
2019-06-24 15:56 ` roblabla
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: roblabla @ 2019-06-24 15:48 UTC (permalink / raw)
To: qemu-devel
** Description changed:
When using KVM, and an OS that supports the IOAPIC, interrupts mapped on
IRQ2 (for instance, routing an HPET timer on interrupt 2) will cause the
interrupts to never be delivered. This is because QEmu, when setting up
the KVM interrupt routes, will not set one up for IRQ2[0]. When running
without KVM, IRQ2 is identity-mapped to GSI2.
My understanding is that IRQs should be identity mapped to their
equivalent GSI unless a redirection entry is present in the MADT. This
is supported by ACPI 6.2 spec[1], 5.2.12.5 Interrupt Source Override
Structure, which claims: "It is assumed that the ISA interrupts will be
identity-mapped into the first I/O APIC sources.".
I stumbled across this while working on my own custom OS, got very
confused why the HPET wasn't triggering any interruption - and even more
confused why the behavior only happened in KVM and not in non-KVM.
- Version tested: QEMU emulator version 4.0.50
- (v4.0.0-226-g8482ff2eb3-dirty)
+ EDIT: Interestingly, the HPET only supports IRQ2 under qemu, which,
+ combined with this bug, makes it completely unusable.
[0]:
https://github.com/qemu/qemu/blob/37560c259d7a0d6aceb96e9d6903ee002f4e5e0c/hw/i386/kvm/ioapic.c#L40
[1]: https://uefi.org/sites/default/files/resources/ACPI_6_2.pdf
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1834051
Title:
IRQ2 ignored under KVM when using IOAPIC
Status in QEMU:
New
Bug description:
When using KVM, and an OS that supports the IOAPIC, interrupts mapped
on IRQ2 (for instance, routing an HPET timer on interrupt 2) will
cause the interrupts to never be delivered. This is because QEmu, when
setting up the KVM interrupt routes, will not set one up for IRQ2[0].
When running without KVM, IRQ2 is identity-mapped to GSI2.
My understanding is that IRQs should be identity mapped to their
equivalent GSI unless a redirection entry is present in the MADT. This
is supported by ACPI 6.2 spec[1], 5.2.12.5 Interrupt Source Override
Structure, which claims: "It is assumed that the ISA interrupts will
be identity-mapped into the first I/O APIC sources.".
I stumbled across this while working on my own custom OS, got very
confused why the HPET wasn't triggering any interruption - and even
more confused why the behavior only happened in KVM and not in non-
KVM.
EDIT: Interestingly, the HPET only supports IRQ2 when using the
default PIIX chipset, which, combined with this bug, makes it
completely unusable.
[0]:
https://github.com/qemu/qemu/blob/37560c259d7a0d6aceb96e9d6903ee002f4e5e0c/hw/i386/kvm/ioapic.c#L40
[1]: https://uefi.org/sites/default/files/resources/ACPI_6_2.pdf
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1834051/+subscriptions
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Qemu-devel] [Bug 1834051] Re: IRQ2 ignored under KVM when using IOAPIC
2019-06-24 15:04 [Qemu-devel] [Bug 1834051] [NEW] IRQ2 ignored under KVM when using IOAPIC roblabla
2019-06-24 15:20 ` [Qemu-devel] [Bug 1834051] " roblabla
2019-06-24 15:48 ` roblabla
@ 2019-06-24 15:56 ` roblabla
2021-04-22 6:54 ` Thomas Huth
2021-06-22 4:18 ` Launchpad Bug Tracker
4 siblings, 0 replies; 6+ messages in thread
From: roblabla @ 2019-06-24 15:56 UTC (permalink / raw)
To: qemu-devel
** Description changed:
When using KVM, and an OS that supports the IOAPIC, interrupts mapped on
IRQ2 (for instance, routing an HPET timer on interrupt 2) will cause the
interrupts to never be delivered. This is because QEmu, when setting up
the KVM interrupt routes, will not set one up for IRQ2[0]. When running
without KVM, IRQ2 is identity-mapped to GSI2.
My understanding is that IRQs should be identity mapped to their
equivalent GSI unless a redirection entry is present in the MADT. This
is supported by ACPI 6.2 spec[1], 5.2.12.5 Interrupt Source Override
Structure, which claims: "It is assumed that the ISA interrupts will be
identity-mapped into the first I/O APIC sources.".
I stumbled across this while working on my own custom OS, got very
confused why the HPET wasn't triggering any interruption - and even more
confused why the behavior only happened in KVM and not in non-KVM.
- EDIT: Interestingly, the HPET only supports IRQ2 under qemu, which,
- combined with this bug, makes it completely unusable.
+ EDIT: Interestingly, the HPET only supports IRQ2 when using the default
+ PIIX chipset, which, combined with this bug, makes it completely
+ unusable.
[0]:
https://github.com/qemu/qemu/blob/37560c259d7a0d6aceb96e9d6903ee002f4e5e0c/hw/i386/kvm/ioapic.c#L40
[1]: https://uefi.org/sites/default/files/resources/ACPI_6_2.pdf
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1834051
Title:
IRQ2 ignored under KVM when using IOAPIC
Status in QEMU:
New
Bug description:
When using KVM, and an OS that supports the IOAPIC, interrupts mapped
on IRQ2 (for instance, routing an HPET timer on interrupt 2) will
cause the interrupts to never be delivered. This is because QEmu, when
setting up the KVM interrupt routes, will not set one up for IRQ2[0].
When running without KVM, IRQ2 is identity-mapped to GSI2.
My understanding is that IRQs should be identity mapped to their
equivalent GSI unless a redirection entry is present in the MADT. This
is supported by ACPI 6.2 spec[1], 5.2.12.5 Interrupt Source Override
Structure, which claims: "It is assumed that the ISA interrupts will
be identity-mapped into the first I/O APIC sources.".
I stumbled across this while working on my own custom OS, got very
confused why the HPET wasn't triggering any interruption - and even
more confused why the behavior only happened in KVM and not in non-
KVM.
EDIT: Interestingly, the HPET only supports IRQ2 when using the
default PIIX chipset, which, combined with this bug, makes it
completely unusable.
[0]:
https://github.com/qemu/qemu/blob/37560c259d7a0d6aceb96e9d6903ee002f4e5e0c/hw/i386/kvm/ioapic.c#L40
[1]: https://uefi.org/sites/default/files/resources/ACPI_6_2.pdf
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1834051/+subscriptions
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug 1834051] Re: IRQ2 ignored under KVM when using IOAPIC
2019-06-24 15:04 [Qemu-devel] [Bug 1834051] [NEW] IRQ2 ignored under KVM when using IOAPIC roblabla
` (2 preceding siblings ...)
2019-06-24 15:56 ` roblabla
@ 2021-04-22 6:54 ` Thomas Huth
2021-06-22 4:18 ` Launchpad Bug Tracker
4 siblings, 0 replies; 6+ messages in thread
From: Thomas Huth @ 2021-04-22 6:54 UTC (permalink / raw)
To: qemu-devel
The QEMU project is currently considering to move its bug tracking to
another system. For this we need to know which bugs are still valid
and which could be closed already. Thus we are setting older bugs to
"Incomplete" now.
If you still think this bug report here is valid, then please switch
the state back to "New" within the next 60 days, otherwise this report
will be marked as "Expired". Or please mark it as "Fix Released" if
the problem has been solved with a newer version of QEMU already.
Thank you and sorry for the inconvenience.
** Changed in: qemu
Status: New => Incomplete
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1834051
Title:
IRQ2 ignored under KVM when using IOAPIC
Status in QEMU:
Incomplete
Bug description:
When using KVM, and an OS that supports the IOAPIC, interrupts mapped
on IRQ2 (for instance, routing an HPET timer on interrupt 2) will
cause the interrupts to never be delivered. This is because QEmu, when
setting up the KVM interrupt routes, will not set one up for IRQ2[0].
When running without KVM, IRQ2 is identity-mapped to GSI2.
My understanding is that IRQs should be identity mapped to their
equivalent GSI unless a redirection entry is present in the MADT. This
is supported by ACPI 6.2 spec[1], 5.2.12.5 Interrupt Source Override
Structure, which claims: "It is assumed that the ISA interrupts will
be identity-mapped into the first I/O APIC sources.".
I stumbled across this while working on my own custom OS, got very
confused why the HPET wasn't triggering any interruption - and even
more confused why the behavior only happened in KVM and not in non-
KVM.
EDIT: Interestingly, the HPET only supports IRQ2 when using the
default PIIX chipset, which, combined with this bug, makes it
completely unusable.
[0]:
https://github.com/qemu/qemu/blob/37560c259d7a0d6aceb96e9d6903ee002f4e5e0c/hw/i386/kvm/ioapic.c#L40
[1]: https://uefi.org/sites/default/files/resources/ACPI_6_2.pdf
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1834051/+subscriptions
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug 1834051] Re: IRQ2 ignored under KVM when using IOAPIC
2019-06-24 15:04 [Qemu-devel] [Bug 1834051] [NEW] IRQ2 ignored under KVM when using IOAPIC roblabla
` (3 preceding siblings ...)
2021-04-22 6:54 ` Thomas Huth
@ 2021-06-22 4:18 ` Launchpad Bug Tracker
4 siblings, 0 replies; 6+ messages in thread
From: Launchpad Bug Tracker @ 2021-06-22 4:18 UTC (permalink / raw)
To: qemu-devel
[Expired for QEMU because there has been no activity for 60 days.]
** Changed in: qemu
Status: Incomplete => Expired
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1834051
Title:
IRQ2 ignored under KVM when using IOAPIC
Status in QEMU:
Expired
Bug description:
When using KVM, and an OS that supports the IOAPIC, interrupts mapped
on IRQ2 (for instance, routing an HPET timer on interrupt 2) will
cause the interrupts to never be delivered. This is because QEmu, when
setting up the KVM interrupt routes, will not set one up for IRQ2[0].
When running without KVM, IRQ2 is identity-mapped to GSI2.
My understanding is that IRQs should be identity mapped to their
equivalent GSI unless a redirection entry is present in the MADT. This
is supported by ACPI 6.2 spec[1], 5.2.12.5 Interrupt Source Override
Structure, which claims: "It is assumed that the ISA interrupts will
be identity-mapped into the first I/O APIC sources.".
I stumbled across this while working on my own custom OS, got very
confused why the HPET wasn't triggering any interruption - and even
more confused why the behavior only happened in KVM and not in non-
KVM.
EDIT: Interestingly, the HPET only supports IRQ2 when using the
default PIIX chipset, which, combined with this bug, makes it
completely unusable.
[0]:
https://github.com/qemu/qemu/blob/37560c259d7a0d6aceb96e9d6903ee002f4e5e0c/hw/i386/kvm/ioapic.c#L40
[1]: https://uefi.org/sites/default/files/resources/ACPI_6_2.pdf
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1834051/+subscriptions
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2021-06-22 4:56 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-24 15:04 [Qemu-devel] [Bug 1834051] [NEW] IRQ2 ignored under KVM when using IOAPIC roblabla
2019-06-24 15:20 ` [Qemu-devel] [Bug 1834051] " roblabla
2019-06-24 15:48 ` roblabla
2019-06-24 15:56 ` roblabla
2021-04-22 6:54 ` Thomas Huth
2021-06-22 4:18 ` Launchpad Bug Tracker
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.