From: Yang Zhang Subject: [PATCH 0/4] Add posted interrupt supporting Date: Tue, 9 Apr 2013 14:01:27 +0800 Message-ID: <1365487291-2283-1-git-send-email-yang.z.zhang@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xen.org Cc: Yang Zhang , keir.xen@gmail.com, xiantao.zhang@intel.com, JBeulich@suse.com List-Id: xen-devel@lists.xenproject.org From: Yang Zhang The follwoing patches are adding the Posted Interrupt supporting to Xen: Posted Interrupt allows vAPIC interrupts to inject into guest directly without any vmexit. - When delivering a interrupt to guest, if target vcpu is running, update Posted-interrupt requests bitmap and send a notification event to the vcpu. Then the vcpu will handle this interrupt automatically, without any software involvemnt. - If target vcpu is not running or there already a notification event pending in the vcpu, do nothing. The interrupt will be handled by next vm entry Refer to Intel SDM vol3, 29.6 to get more information. Yang Zhang (4): VMX: Detect posted interrupt capability VMX: Turn on posted interrupt bit in vmcs VMX: Add posted interrupt supporting VMX: Use posted interrupt to deliver virutal interrupt xen/arch/x86/hvm/vioapic.c | 4 +- xen/arch/x86/hvm/vlapic.c | 19 +++++- xen/arch/x86/hvm/vmsi.c | 5 +- xen/arch/x86/hvm/vmx/vmcs.c | 18 +++++- xen/arch/x86/hvm/vmx/vmx.c | 81 ++++++++++++++++++++++++ xen/arch/x86/hvm/vmx/vpmu_core2.c | 5 +- xen/arch/x86/hvm/vpt.c | 10 ++- xen/include/asm-x86/hvm/hvm.h | 2 + xen/include/asm-x86/hvm/vlapic.h | 1 + xen/include/asm-x86/hvm/vmx/vmcs.h | 13 ++++ xen/include/asm-x86/hvm/vmx/vmx.h | 22 +++++++ xen/include/asm-x86/mach-default/irq_vectors.h | 3 +- 12 files changed, 172 insertions(+), 11 deletions(-)