From: "Jan Beulich" Subject: Re: [PATCH 3/7] Nested VMX: Force check ISR when L2 is running Date: Mon, 12 Aug 2013 07:47:55 +0100 Message-ID: <5208A13B02000078000EB027@nat28.tlf.novell.com> References: <1376038175-18571-1-git-send-email-yang.z.zhang@intel.com> <1376038175-18571-4-git-send-email-yang.z.zhang@intel.com> <5204F8BE02000078000EAB3A@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1V8oNQ-0006Qj-QJ for xen-devel@lists.xenproject.org; Mon, 12 Aug 2013 09:25:25 +0000 In-Reply-To: Content-Disposition: inline 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 Z Zhang Cc: xen-devel , "keir.xen@gmail.com" List-Id: xen-devel@lists.xenproject.org >>> On 11.08.13 at 04:49, "Zhang, Yang Z" wrote: > Jan Beulich wrote on 2013-08-09: >>>>> On 09.08.13 at 10:49, Yang Zhang wrote: >>> From: Yang Zhang >>> >>> If L2 is running, external interrupt is allowed to notify CPU only >>> when it has higher priority than current in servicing interrupt. >> >> That's always this way, not just for nested HVM. Hence there must >> either be some piece missing from this explanation, or the check is >> being inserted in the wrong place. > How about change the comments like this: > External interrupt is allowed to notify CPU only when it has higher priority > than current in servicing interrupt. With APIC-v, the priority comparing is > done by hardware and hardware will inject the interrupt to VCPU when it > recognizes an interrupt. Currently, there is no virtual APIC-v feature > available for L1, so when L2 is running, we still need to compare interrupt > priority with ISR in hypervisor instead hardware. Yes, that would make things quite a bit more clear. Jan