From mboxrd@z Thu Jan 1 00:00:00 1970 From: Keir Fraser Subject: Re: [PATCH 2/4] VMX: Turn on posted interrupt bit in vmcs Date: Tue, 09 Apr 2013 09:38:08 +0100 Message-ID: References: <5163EC0702000078000CBA0E@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <5163EC0702000078000CBA0E@nat28.tlf.novell.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: Jan Beulich , Yang Zhang Cc: xiantao.zhang@intel.com, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On 09/04/2013 09:23, "Jan Beulich" wrote: >>>> On 09.04.13 at 08:01, Yang Zhang wrote: >> +static void posted_interrupt_handler(struct cpu_user_regs *regs) >> +{ >> + ack_APIC_irq(); >> + perfc_incr(ipis); >> + this_cpu(irq_count)++; >> +} > > If I'm not mistaken, there's no further code being added to this > interrupt handler in the subsequent patches. What's the point > for the separate interrupt then? I.e. is there any reason not to > reuse event_check_interrupt() and EVENT_CHECK_VECTOR? The new POSTED_INTERRUPT_VECTOR has special behaviour when delivered in vmx non-root mode, so it has to be distinct from the EVENT_CHECK_VECTOR. Still, it could share event_check_interrupt() -- there is no need at all for posted_interrupt_handler() to exist. -- Keir > Jan >