From: Yang Zhang Subject: [PATCH 0/2] KVM: Add posted interrupt supporting Date: Thu, 13 Dec 2012 15:29:38 +0800 Message-ID: <1355383780-1367-1-git-send-email-yang.z.zhang@intel.com> Cc: gleb@redhat.com, haitao.shan@intel.com, xiantao.zhang@intel.com, jun.nakajima@intel.com, h.peter.anvin@intel.com, Yang Zhang To: kvm@vger.kernel.org Return-path: Received: from mga03.intel.com ([143.182.124.21]:26579 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750819Ab2LMHeJ (ORCPT ); Thu, 13 Dec 2012 02:34:09 -0500 Sender: kvm-owner@vger.kernel.org List-ID: From: Yang Zhang Posted Interrupt allows APIC interrupts to inject directly to guest VMM's involvement. When deliverying an virtual interrupt, VMM needn't to send an IPI to kick down target vcpu. Instead, send a notification event to the PCPU and hardware will inject the interrupt to guest without vmexit. In this patch, we reserved a global vector as notification event vector. Also, 'ack interrupt on vmexit' is required by posted interrupt, we need to enable it firstly. Yang Zhang (2): x86: Enable ack interrupt on vmexit x86, apicv: Add Posted Interrupt supporting arch/x86/include/asm/entry_arch.h | 1 + arch/x86/include/asm/hw_irq.h | 1 + arch/x86/include/asm/irq.h | 1 + arch/x86/include/asm/irq_vectors.h | 1 + arch/x86/include/asm/kvm_host.h | 3 + arch/x86/include/asm/vmx.h | 4 + arch/x86/kernel/entry_64.S | 2 + arch/x86/kernel/irq.c | 25 ++++++ arch/x86/kernel/irqinit.c | 2 + arch/x86/kvm/lapic.c | 16 +++- arch/x86/kvm/lapic.h | 1 + arch/x86/kvm/vmx.c | 153 +++++++++++++++++++++++++++++++++--- 12 files changed, 194 insertions(+), 16 deletions(-)