From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cooper Subject: Re: [PATCH v5 11/17] vt-d: Add API to update IRTE when VT-d PI is used Date: Wed, 12 Aug 2015 18:41:06 +0100 Message-ID: <55CB8532.5010507@citrix.com> References: <1439346938-31824-1-git-send-email-feng.wu@intel.com> <1439346938-31824-12-git-send-email-feng.wu@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1439346938-31824-12-git-send-email-feng.wu@intel.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: Feng Wu , xen-devel@lists.xen.org Cc: Yang Zhang , Kevin Tian , Keir Fraser , Jan Beulich List-Id: xen-devel@lists.xenproject.org On 12/08/15 03:35, Feng Wu wrote: > + GET_IREMAP_ENTRY(ir_ctrl->iremap_maddr, remap_index, iremap_entries, p); > + > + old_ire = new_ire = *p; > + > + /* Setup/Update interrupt remapping table entry. */ > + setup_posted_irte(&new_ire, pi_desc, gvec); > + ret = cmpxchg16b(p, &old_ire, &new_ire); > + > + ASSERT(ret == *(__uint128_t *)&old_ire); You have still not addressed my issues from earlier series. This ASSERT() is buggy until you have a clear, detailed description of why it is claimed to be safe in this instance. ~Andrew