]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbfa8e3d393767f7d1cdee4f6d1d853ab57a8863e
tree74a9cf21e9b520eb48fa0dab95d46c253a435818
parentc28e5da5eab1b0ace9f941ff8a6bc6f4cefd59b1
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