From: Keir Fraser Subject: Re: [PATCH v2 0/5] Add posted interrupt supporting Date: Wed, 17 Apr 2013 08:04:47 +0100 Message-ID: References: <1366181462-3537-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: In-Reply-To: <1366181462-3537-1-git-send-email-yang.z.zhang@intel.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Yang Zhang , xen-devel@lists.xen.org Cc: jun.nakajima@intel.com, xiantao.zhang@intel.com, JBeulich@suse.com List-Id: xen-devel@lists.xenproject.org On 17/04/2013 07:50, "Yang Zhang" wrote: > From: Yang Zhang The whole series: Acked-by: Keir Fraser > 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. > > Changes from v1 to v2: > * Allocate posted interrupt vector dynamically. > * Use vlapic_set_vector() to sync pir to irr. > * Refine vlapic_set_irq() and call it to deliver virtual interrupt. > * Rebase on top of Xen. > > Yang Zhang (5): > VMX: Detect posted interrupt capability > VMX: Turn on posted interrupt bit in vmcs > VMX: Add posted interrupt supporting > Call vlapic_set_irq() to delivery virtual interrupt > VMX: Use posted interrupt to deliver virutal interrupt > > xen/arch/x86/hvm/vioapic.c | 3 +- > xen/arch/x86/hvm/vlapic.c | 38 +++++--------- > xen/arch/x86/hvm/vmsi.c | 3 +- > xen/arch/x86/hvm/vmx/vmcs.c | 18 ++++++- > xen/arch/x86/hvm/vmx/vmx.c | 70 > ++++++++++++++++++++++++ > xen/include/asm-x86/bitops.h | 10 ++++ > xen/include/asm-x86/hvm/hvm.h | 2 + > xen/include/asm-x86/hvm/vlapic.h | 20 +++++++- > xen/include/asm-x86/hvm/vmx/vmcs.h | 13 +++++ > xen/include/asm-x86/hvm/vmx/vmx.h | 27 +++++++++ > xen/include/asm-x86/mach-default/irq_vectors.h | 3 +- > 11 files changed, 175 insertions(+), 32 deletions(-) >