* [Qemu-devel] [RFC][PATCH] disable special ioapic inti0 routing
@ 2009-02-06 23:30 Jan Kiszka
2009-02-06 23:51 ` Anthony Liguori
0 siblings, 1 reply; 5+ messages in thread
From: Jan Kiszka @ 2009-02-06 23:30 UTC (permalink / raw)
To: qemu-devel; +Cc: Anthony Liguori, Beth Kon, Avi Kivity
This patch comes from the kvm tree and fixes the timer IRQ routing for
me which is broken from the POV of certain Linux guest kernels. As I'm
not up-to-date with the development around that problematic hunk, I'm
leaving it to someone more deeply involved to sign this off. But please
commit some fix.
Thanks,
Jan
------->
From: Avi Kivity <avi@redhat.com>
we don't support it yet (need bios support, and modifications to kernel
irq routing).
---
qemu/hw/apic.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/qemu/hw/apic.c b/qemu/hw/apic.c
index df80444..f9ef995 100644
--- a/qemu/hw/apic.c
+++ b/qemu/hw/apic.c
@@ -1055,12 +1055,14 @@ void ioapic_set_irq(void *opaque, int vector, int level)
{
IOAPICState *s = opaque;
+#if 0
/* ISA IRQs map to GSI 1-1 except for IRQ0 which maps
* to GSI 2. GSI maps to ioapic 1-1. This is not
* the cleanest way of doing it but it should work. */
if (vector == 0)
vector = 2;
+#endif
if (vector >= 0 && vector < IOAPIC_NUM_PINS) {
uint32_t mask = 1 << vector;
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] [RFC][PATCH] disable special ioapic inti0 routing
2009-02-06 23:30 [Qemu-devel] [RFC][PATCH] disable special ioapic inti0 routing Jan Kiszka
@ 2009-02-06 23:51 ` Anthony Liguori
2009-02-07 0:07 ` [Qemu-devel] " Jan Kiszka
0 siblings, 1 reply; 5+ messages in thread
From: Anthony Liguori @ 2009-02-06 23:51 UTC (permalink / raw)
To: qemu-devel; +Cc: Anthony Liguori, Beth Kon, Avi Kivity
Jan Kiszka wrote:
> This patch comes from the kvm tree and fixes the timer IRQ routing for
> me which is broken from the POV of certain Linux guest kernels. As I'm
> not up-to-date with the development around that problematic hunk, I'm
> leaving it to someone more deeply involved to sign this off. But please
> commit some fix.
>
Are you using an old bios by chance? The reason this fixes KVM has
nothing to do with QEMU FWIW so if this fixes something for you, it's
just a coincidence.
Regards,
Anthony Liguroi
> Thanks,
> Jan
>
> ------->
>
> From: Avi Kivity <avi@redhat.com>
>
> we don't support it yet (need bios support, and modifications to kernel
> irq routing).
>
> ---
> qemu/hw/apic.c | 2 ++
> 1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/qemu/hw/apic.c b/qemu/hw/apic.c
> index df80444..f9ef995 100644
> --- a/qemu/hw/apic.c
> +++ b/qemu/hw/apic.c
> @@ -1055,12 +1055,14 @@ void ioapic_set_irq(void *opaque, int vector, int level)
> {
> IOAPICState *s = opaque;
>
> +#if 0
> /* ISA IRQs map to GSI 1-1 except for IRQ0 which maps
> * to GSI 2. GSI maps to ioapic 1-1. This is not
> * the cleanest way of doing it but it should work. */
>
> if (vector == 0)
> vector = 2;
> +#endif
>
> if (vector >= 0 && vector < IOAPIC_NUM_PINS) {
> uint32_t mask = 1 << vector;
>
>
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Qemu-devel] Re: [RFC][PATCH] disable special ioapic inti0 routing
2009-02-06 23:51 ` Anthony Liguori
@ 2009-02-07 0:07 ` Jan Kiszka
2009-02-07 1:30 ` Anthony Liguori
0 siblings, 1 reply; 5+ messages in thread
From: Jan Kiszka @ 2009-02-07 0:07 UTC (permalink / raw)
To: qemu-devel; +Cc: Anthony Liguori, Beth Kon, Avi Kivity
[-- Attachment #1: Type: text/plain, Size: 1638 bytes --]
Anthony Liguori wrote:
> Jan Kiszka wrote:
>> This patch comes from the kvm tree and fixes the timer IRQ routing for
>> me which is broken from the POV of certain Linux guest kernels. As I'm
>> not up-to-date with the development around that problematic hunk, I'm
>> leaving it to someone more deeply involved to sign this off. But please
>> commit some fix.
>>
>
> Are you using an old bios by chance? The reason this fixes KVM has
> nothing to do with QEMU FWIW so if this fixes something for you, it's
> just a coincidence.
My first thought as well, but the binary bios from latest svn made no
difference.
Jan
>
> Regards,
>
> Anthony Liguroi
>
>> Thanks,
>> Jan
>>
>> ------->
>>
>> From: Avi Kivity <avi@redhat.com>
>>
>> we don't support it yet (need bios support, and modifications to kernel
>> irq routing).
>>
>> ---
>> qemu/hw/apic.c | 2 ++
>> 1 files changed, 2 insertions(+), 0 deletions(-)
>>
>> diff --git a/qemu/hw/apic.c b/qemu/hw/apic.c
>> index df80444..f9ef995 100644
>> --- a/qemu/hw/apic.c
>> +++ b/qemu/hw/apic.c
>> @@ -1055,12 +1055,14 @@ void ioapic_set_irq(void *opaque, int vector,
>> int level)
>> {
>> IOAPICState *s = opaque;
>>
>> +#if 0
>> /* ISA IRQs map to GSI 1-1 except for IRQ0 which maps
>> * to GSI 2. GSI maps to ioapic 1-1. This is not
>> * the cleanest way of doing it but it should work. */
>>
>> if (vector == 0)
>> vector = 2;
>> +#endif
>>
>> if (vector >= 0 && vector < IOAPIC_NUM_PINS) {
>> uint32_t mask = 1 << vector;
>>
>>
>>
>>
>
>
>
>
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 257 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Qemu-devel] Re: [RFC][PATCH] disable special ioapic inti0 routing
2009-02-07 0:07 ` [Qemu-devel] " Jan Kiszka
@ 2009-02-07 1:30 ` Anthony Liguori
2009-02-07 2:09 ` Jan Kiszka
0 siblings, 1 reply; 5+ messages in thread
From: Anthony Liguori @ 2009-02-07 1:30 UTC (permalink / raw)
To: Jan Kiszka; +Cc: Beth Kon, qemu-devel, Avi Kivity
Jan Kiszka wrote:
> Anthony Liguori wrote:
>
>> Jan Kiszka wrote:
>>
>>> This patch comes from the kvm tree and fixes the timer IRQ routing for
>>> me which is broken from the POV of certain Linux guest kernels. As I'm
>>> not up-to-date with the development around that problematic hunk, I'm
>>> leaving it to someone more deeply involved to sign this off. But please
>>> commit some fix.
>>>
>>>
>> Are you using an old bios by chance? The reason this fixes KVM has
>> nothing to do with QEMU FWIW so if this fixes something for you, it's
>> just a coincidence.
>>
>
> My first thought as well, but the binary bios from latest svn made no
> difference.
>
What linux guests broke?
Regards,
Anthony Liguori
> Jan
>
>
>> Regards,
>>
>> Anthony Liguroi
>>
>>
>>> Thanks,
>>> Jan
>>>
>>> ------->
>>>
>>> From: Avi Kivity <avi@redhat.com>
>>>
>>> we don't support it yet (need bios support, and modifications to kernel
>>> irq routing).
>>>
>>> ---
>>> qemu/hw/apic.c | 2 ++
>>> 1 files changed, 2 insertions(+), 0 deletions(-)
>>>
>>> diff --git a/qemu/hw/apic.c b/qemu/hw/apic.c
>>> index df80444..f9ef995 100644
>>> --- a/qemu/hw/apic.c
>>> +++ b/qemu/hw/apic.c
>>> @@ -1055,12 +1055,14 @@ void ioapic_set_irq(void *opaque, int vector,
>>> int level)
>>> {
>>> IOAPICState *s = opaque;
>>>
>>> +#if 0
>>> /* ISA IRQs map to GSI 1-1 except for IRQ0 which maps
>>> * to GSI 2. GSI maps to ioapic 1-1. This is not
>>> * the cleanest way of doing it but it should work. */
>>>
>>> if (vector == 0)
>>> vector = 2;
>>> +#endif
>>>
>>> if (vector >= 0 && vector < IOAPIC_NUM_PINS) {
>>> uint32_t mask = 1 << vector;
>>>
>>>
>>>
>>>
>>>
>>
>>
>>
>
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Qemu-devel] Re: [RFC][PATCH] disable special ioapic inti0 routing
2009-02-07 1:30 ` Anthony Liguori
@ 2009-02-07 2:09 ` Jan Kiszka
0 siblings, 0 replies; 5+ messages in thread
From: Jan Kiszka @ 2009-02-07 2:09 UTC (permalink / raw)
To: Anthony Liguori; +Cc: Beth Kon, qemu-devel, Avi Kivity
[-- Attachment #1: Type: text/plain, Size: 1108 bytes --]
Anthony Liguori wrote:
> Jan Kiszka wrote:
>> Anthony Liguori wrote:
>>
>>> Jan Kiszka wrote:
>>>
>>>> This patch comes from the kvm tree and fixes the timer IRQ routing for
>>>> me which is broken from the POV of certain Linux guest kernels. As I'm
>>>> not up-to-date with the development around that problematic hunk, I'm
>>>> leaving it to someone more deeply involved to sign this off. But please
>>>> commit some fix.
>>>>
>>> Are you using an old bios by chance? The reason this fixes KVM has
>>> nothing to do with QEMU FWIW so if this fixes something for you, it's
>>> just a coincidence.
>>>
>>
>> My first thought as well, but the binary bios from latest svn made no
>> difference.
>>
>
> What linux guests broke?
An old 32-bit customized one. And it turned out that it had, for some
reasons I don't recall anymore, ACPI disabled. So it missed the timer
IRQ pin moving QEMU is doing. At the same time, some very similar kernel
with ACPI enabled boots fine. Think I should delete the former from my
test image...
Sorry for the noise,
Jan
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 257 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2009-02-07 2:09 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-06 23:30 [Qemu-devel] [RFC][PATCH] disable special ioapic inti0 routing Jan Kiszka
2009-02-06 23:51 ` Anthony Liguori
2009-02-07 0:07 ` [Qemu-devel] " Jan Kiszka
2009-02-07 1:30 ` Anthony Liguori
2009-02-07 2:09 ` Jan Kiszka
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).