From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yang Zhang Subject: [PATCH 0/7] Nested VMX: APIC-v related bug fixing Date: Fri, 9 Aug 2013 16:49:28 +0800 Message-ID: <1376038175-18571-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.xensource.com Cc: Yang Zhang , keir.xen@gmail.com, JBeulich@suse.com List-Id: xen-devel@lists.xenproject.org From: Yang Zhang The following patches fix the issue that fail to boot L2 guest on APIC-v available machine. The main problem is that with APIC-v, virtual interrupt inject L1 is totally through APIC-v. But if virtual interrupt is arrived when L2 is running, L1 will detect interrupt through vmexit with reason external interrupt. If this happens, we should update RVI/SVI to make APIC-v working accordingly. Yang Zhang (7): Nested VMX: Introduce interrupt source supporting Nested VMX: Allow to ack irq even virtual intr delivery is enabled Nested VMX: Force check ISR when L2 is running Nested VMX: Add interface to update vPPR Nested VMX: Check whether interrupt is blocked by TPR Nested VMX: Update APIC-v(RVI/SVI) when vmexit to L1 Nested VMX: Clear APIC-v control bit in vmcs02 xen/arch/x86/hvm/irq.c | 2 +- xen/arch/x86/hvm/vlapic.c | 16 +++++++++++-- xen/arch/x86/hvm/vmx/intr.c | 9 ++++++- xen/arch/x86/hvm/vmx/vmx.c | 14 +++++++----- xen/arch/x86/hvm/vmx/vvmx.c | 40 ++++++++++++++++++++++++++++++++++++ xen/include/asm-x86/hvm/vlapic.h | 3 +- xen/include/asm-x86/hvm/vmx/vmx.h | 2 +- xen/include/asm-x86/hvm/vmx/vvmx.h | 1 + 8 files changed, 73 insertions(+), 14 deletions(-)