From: Yang Zhang Subject: [PATCH 0/5] use eoi to track RTC interrupt delivery status Date: Fri, 15 Mar 2013 16:04:55 +0800 Message-ID: <1363334700-24507-1-git-send-email-yang.z.zhang@intel.com> Cc: gleb@redhat.com, mtosatti@redhat.com, xiantao.zhang@intel.com, avi.kivity@gmail.com, Yang Zhang To: kvm@vger.kernel.org Return-path: Received: from mga14.intel.com ([143.182.124.37]:33850 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753146Ab3COIJH (ORCPT ); Fri, 15 Mar 2013 04:09:07 -0400 Sender: kvm-owner@vger.kernel.org List-ID: From: Yang Zhang 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 need_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. Yang Zhang (5): KVM: parse ioapic entry to get destination vcpu KVM: add vcpu info to ioapic_update_eoi() KVM: introduce struct rtc_status KVM: register rtc eoi notifier KVM: use eoi to track RTC interrupt delivery status arch/x86/kvm/lapic.c | 44 +++++++++------ arch/x86/kvm/lapic.h | 4 ++ virt/kvm/ioapic.c | 143 +++++++++++++++++++++++++++++++++++++++++++++++-- virt/kvm/ioapic.h | 12 ++++- 4 files changed, 178 insertions(+), 25 deletions(-)