OSDN Git Service

hpet: inverse polarity when pin above ISA_NUM_IRQS
authorLiu Ping Fan <qemulist@gmail.com>
Sun, 8 Dec 2013 09:38:16 +0000 (17:38 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 11 Dec 2013 18:11:08 +0000 (20:11 +0200)
commit0d63b2dd31464cfccc80bbeedc24e3863fe4c895
tree4c7b362d3ab3320b66898824532275877a49d42e
parent4c41425d2e79f267b2236da31abedb866777d92f
hpet: inverse polarity when pin above ISA_NUM_IRQS

According to hpet spec, hpet irq is high active. But according to
ICH spec, there is inversion before the input of ioapic. So the OS
will expect low active on this IRQ line. (On bare metal, if OS driver
claims high active on this line, spurious irq is generated)

We fold the emulation of this inversion inside the hpet logic.

Signed-off-by: Liu Ping Fan <pingfank@linux.vnet.ibm.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/timer/hpet.c