From: "Jan Beulich" Subject: Re: [RFC v2 11/15] vmx: Add a global wake-up vector for VT-d Posted-Interrupts Date: Fri, 12 Jun 2015 11:44:20 +0100 Message-ID: <557AD4240200007800084260@mail.emea.novell.com> References: <1431076038-7497-1-git-send-email-feng.wu@intel.com> <1431076038-7497-12-git-send-email-feng.wu@intel.com> <5577205A0200007800082BFB@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: 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: Feng Wu Cc: Kevin Tian , "keir@xen.org" , "george.dunlap@eu.citrix.com" , "andrew.cooper3@citrix.com" , "xen-devel@lists.xen.org" , Yang Z Zhang List-Id: xen-devel@lists.xenproject.org >>> On 12.06.15 at 11:40, wrote: >> From: xen-devel-bounces@lists.xen.org >> [mailto:xen-devel-bounces@lists.xen.org] On Behalf Of Jan Beulich >> Sent: Tuesday, June 09, 2015 11:20 PM >> >>> On 08.05.15 at 11:07, wrote: >> > +{ >> > + struct vcpu *v; >> > + unsigned int cpu = smp_processor_id(); >> > + >> > + spin_lock(&per_cpu(blocked_vcpu_lock, cpu)); >> > + list_for_each_entry(v, &per_cpu(blocked_vcpu, cpu), >> > + blocked_vcpu_list) { >> >> How long do you think such a list can grow? > > It depends on how many vCPU is current blocked on this specific pCPU. > I am not sure how long it can grow. > > The basic idea here is that, when notification wakeup event happens, > we need to find a way to find the right vCPU, and then wakeup it, do > you have any better idea for this? Not immediately, or else I would have spelled it out. But the list perhaps growing to hundreds entries is something that needs to be taken into consideration. Jan