From: "Jan Beulich" Subject: Re: [PATCH v2 3/5] VMX: Add posted interrupt supporting Date: Wed, 17 Apr 2013 14:15:54 +0100 Message-ID: <516EBCAA02000078000CE22A@nat28.tlf.novell.com> References: <1366181462-3537-1-git-send-email-yang.z.zhang@intel.com> <1366181462-3537-4-git-send-email-yang.z.zhang@intel.com> <516E840F02000078000CDE9B@nat28.tlf.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: Yang Z Zhang Cc: "keir.xen@gmail.com" , Xiantao Zhang , Jun Nakajima , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org >>> On 17.04.13 at 14:40, "Zhang, Yang Z" wrote: > Jan Beulich wrote on 2013-04-17: >>>>> On 17.04.13 at 08:51, Yang Zhang wrote: >>> + val[group] = pi_get_pir(&v->arch.hvm_vmx.pi_desc, group); >> >> Which will require adjustments to the types underlying this call. > What do you mean? Do you suggest pass pir[group] instead pi_desc? Not necessarily. pir[] will need to become an array of unsigned long too, and pi_get_pir() will need to return an unsigned long. And the definitions should, no matter that we don't support 32-bit anymore, not depend on u64 == unsigned long. >>> + >>> + for_each_set_bit(i, val, MAX_VECTOR) >> >> I'd also favor you not adding new uses of this redundant and > Is there better way to iterate the setting bit? No, the iterator is fine. MAX_VECTORS is what I dislike (and what should go away). Jan