KVM: Use eoi to track RTC interrupt delivery status
authorYang Zhang <yang.z.zhang@Intel.com>
Thu, 11 Apr 2013 11:21:41 +0000 (19:21 +0800)
committerMarcelo Tosatti <mtosatti@redhat.com>
Tue, 16 Apr 2013 02:20:35 +0000 (23:20 -0300)
commit2c2bf01136971c33e3b3fabce23925f372c1017e
tree74a9cf21e9b520eb48fa0dab95d46c253a435818
parentaa2fbe6d44892070d78995f0df875ce930904e29
KVM: Use eoi to track RTC interrupt delivery status

Current interrupt coalescing logci which only used by RTC has conflict
with Posted Interrupt.
This patch introduces a new mechinism to use eoi to track interrupt:
When delivering an interrupt to vcpu, the pending_eoi set to number of
vcpu that received the interrupt. And decrease it when each vcpu writing
eoi. No subsequent RTC interrupt can deliver to vcpu until all vcpus
write eoi.

Signed-off-by: Yang Zhang <yang.z.zhang@Intel.com>
Reviewed-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
virt/kvm/ioapic.c