From: "Jan Beulich" Subject: Re: Using IRQ_GUEST|IRQ_PER_CPU to signal "delivery to current vcpu"? Date: Tue, 10 Nov 2015 04:28:47 -0700 Message-ID: <5641E2FF02000078000B3550@prv-mh.provo.novell.com> References: <1447152499.9407.25.camel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1447152499.9407.25.camel@citrix.com> 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: Ian Campbell Cc: Andrew Cooper , Stefano Stabellini , xen-devel List-Id: xen-devel@lists.xenproject.org >>> On 10.11.15 at 11:48, wrote: > So, I was considering using a new bit in the common desc->status bit. Upon > checking xen/irq.h I found there was already IRQ_PER_CPU which appears to > be completely unused in the current code base (it looks to have been used > by IA64 and PPC, but never by x86 and not currently used AFAICT by ARM, x86 > or common code.) > > It seems like IRQ_GUEST|IRQ_PER_CPU is a pretty good fit for the semantics > I want, but I think it would be confusing to define it as meaning such only > on ARM and having either common code or other architectures ascribe a > different meaning (other than "meaningless on this arch") to it. > > I think the other possible use case of this scenario (routing a PPI to a > specific guest) seems rather unlikely (since it would imply pinning in > various odd ways). I think that use case can also be dealt with by the > context switching code which can reroute the interrupt as needed (i.e. > unmask only when the relevant vcpu is running). > > Any thoughts? Sounds reasonable. Jan