[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 11/22] i8259: Update IRQ state after reset
From: |
Blue Swirl |
Subject: |
Re: [Qemu-devel] [PATCH 11/22] i8259: Update IRQ state after reset |
Date: |
Thu, 29 Sep 2011 19:45:41 +0000 |
On Wed, Sep 28, 2011 at 9:18 PM, Jan Kiszka <address@hidden> wrote:
> On 2011-09-28 20:01, Blue Swirl wrote:
>>
>> On Wed, Sep 28, 2011 at 11:00 AM, Jan Kiszka<address@hidden>
>> wrote:
>>>
>>> As we clearly modify the PIC state on pic_reset, we also have to update
>>> the IRQ output. This only happened on init so far. Apply this
>>> consistently.
>>
>> Nack, IRQ lines shouldn't be touched on reset. The other side may not
>> be ready for receiving the interrupt change and qemu_irqs are
>> stateless anyway.
>
> Sorry, but failing to clear the line (this is what pic_update_irq will
> effectively do) is a clear bug in the current code. This patch is 100%
> analogue to what, e.g. the PCI layer does on reset. Please re-read.
Reset will happen also when the devices are created. At that time,
qemu_irq callback triggered by changing of the state may produce
undesired effects on the other side. There have been bugs earlier, see
bc26e55a6615dc594be425d293db40d5cdcdb84b and
42f1ced228c9b616cfa2b69846025271618e4ef5 and discussion in
http://lists.nongnu.org/archive/html/qemu-devel/2009-06/msg01024.html.
- [Qemu-devel] [PATCH 17/22] i8259: Eliminate PicState2, (continued)
- Re: [Qemu-devel] [PATCH 11/22] i8259: Update IRQ state after reset, Jan Kiszka, 2011/09/28
- Re: [Qemu-devel] [PATCH 11/22] i8259: Update IRQ state after reset,
Blue Swirl <=
- Re: [Qemu-devel] [PATCH 11/22] i8259: Update IRQ state after reset, Jan Kiszka, 2011/09/30
- Re: [Qemu-devel] [PATCH 11/22] i8259: Update IRQ state after reset, Peter Maydell, 2011/09/30
- Re: [Qemu-devel] [PATCH 11/22] i8259: Update IRQ state after reset, Blue Swirl, 2011/09/30
- Re: [Qemu-devel] [PATCH 11/22] i8259: Update IRQ state after reset, Blue Swirl, 2011/09/30
[Qemu-devel] [PATCH 15/22] i8259: PREP: Replace pic_intack_read with pic_read_irq, Jan Kiszka, 2011/09/28
[Qemu-devel] [PATCH 09/22] i8259: Do not update IRQ output after spurious pic_poll_read, Jan Kiszka, 2011/09/28
[Qemu-devel] [PATCH 02/22] pc: Generalize ISA IRQs to GSIs, Jan Kiszka, 2011/09/28
[Qemu-devel] [PATCH 13/22] i8259: Fix poll command, Jan Kiszka, 2011/09/28
[Qemu-devel] [PATCH 12/22] i8259: Switch to per-PIC IRQ update, Jan Kiszka, 2011/09/28