From: Mukesh Rathor Subject: Re: [PATCH 10/18] PVH xen: interrupt/event-channel delivery to PVH Date: Thu, 11 Jul 2013 17:29:27 -0700 Message-ID: <20130711172927.26cc45fd@mantra.us.oracle.com> References: <1372118507-16864-1-git-send-email-mukesh.rathor@oracle.com> <1372118507-16864-11-git-send-email-mukesh.rathor@oracle.com> <20130625142954.GH28113@phenom.dumpdata.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20130625142954.GH28113@phenom.dumpdata.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: Konrad Rzeszutek Wilk Cc: Xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Tue, 25 Jun 2013 10:29:54 -0400 Konrad Rzeszutek Wilk wrote: > On Mon, Jun 24, 2013 at 05:01:39PM -0700, Mukesh Rathor wrote: > > PVH uses HVMIRQ_callback_vector for interrupt delivery. Also, change > > hvm_vcpu_has_pending_irq() as PVH doesn't use vlapic emulation. > > Please explain why it can't use the normal "if .." in the > hvm_vcpu_has_pending_irq. > > I figured it is b/c the guest boots in an HVM container so the > event mechanism is offline until it gets enabled. And that means > no HVM type interrupts (so emulated timer interrupts say) should > interrupt it until the event mechanism (or rather the callback > vector) is in place. > What you say is true, I can put that in git commit. The function handles hvm which can either be callback or vlapic. For PVH we know vlapic is never used, so we can just shortcut that. thanks mukesh