From mboxrd@z Thu Jan 1 00:00:00 1970 From: George Dunlap Subject: Re: [PATCH v7 10/15] x86/altp2m: add remaining support routines. Date: Thu, 23 Jul 2015 17:08:44 +0100 Message-ID: <55B1118C.80907@citrix.com> References: <1437606081-6964-1-git-send-email-edmund.h.white@intel.com> <1437606081-6964-11-git-send-email-edmund.h.white@intel.com> <55B0D896020000780009472B@prv-mh.provo.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: "Sahita, Ravi" , Jan Beulich Cc: Tim Deegan , Wei Liu , George Dunlap , Andrew Cooper , Ian Jackson , "White, Edmund H" , "xen-devel@lists.xen.org" , "Nakajima, Jun" , "tlengyel@novetta.com" , Daniel De Graaf List-Id: xen-devel@lists.xenproject.org On 07/23/2015 03:51 PM, Sahita, Ravi wrote: >>> +int p2m_destroy_altp2m_by_id(struct domain *d, unsigned int idx) { >>> + struct p2m_domain *p2m; >>> + int rc = -EINVAL; >>> + >>> + if ( !idx || idx > MAX_ALTP2M ) >> >> >= (and then also elsewhere further down)? >> > > Right. [snip] > Just wanted to make sure these are also ok to do post 4.6 Well the off-by-one errors certainly need to be fixed for 4.6. If this was the only thing holding it up, the committer could fix it up on check-in, or we could take a fix-up patch afterwards. -George