From: Christoph Egger Subject: [PATCH 08/13] Nested Virtualization: interrupts (generic part) Date: Fri, 12 Nov 2010 19:43:23 +0100 Message-ID: <201011121943.23725.Christoph.Egger@amd.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Boundary-00=_LrY3M53N+a+EpL3" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --Boundary-00=_LrY3M53N+a+EpL3 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline -- ---to satisfy European Law for business letters: Advanced Micro Devices GmbH Einsteinring 24, 85609 Dornach b. Muenchen Geschaeftsfuehrer: Alberto Bozzo, Andrew Bowd Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen Registergericht Muenchen, HRB Nr. 43632 --Boundary-00=_LrY3M53N+a+EpL3 Content-Type: text/x-diff; charset="iso 8859-15"; name="xen_nh08_interrupts.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="xen_nh08_interrupts.diff" Content-Description: xen_nh08_interrupts.diff # HG changeset patch # User cegger # Date 1289574168 -3600 Handle interrupts (generic part) Signed-off-by: Christoph Egger diff -r dbe1e6d5b5b0 -r 54dd43df686b xen/arch/x86/hvm/hvm.c --- a/xen/arch/x86/hvm/hvm.c +++ b/xen/arch/x86/hvm/hvm.c @@ -2301,6 +2301,14 @@ enum hvm_intblk hvm_interrupt_blocked(st ASSERT(v == current); + if ( nestedhvm_enabled(v->domain) ) { + enum hvm_intblk intr; + + intr = nhvm_interrupt_blocked(v); + if ( intr != hvm_intblk_none ) + return intr; + } + if ( (intack.source != hvm_intsrc_nmi) && !(guest_cpu_user_regs()->eflags & X86_EFLAGS_IF) ) return hvm_intblk_rflags_ie; --Boundary-00=_LrY3M53N+a+EpL3 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --Boundary-00=_LrY3M53N+a+EpL3--