From: "Jan Beulich" Subject: Re: [RFC PATCH V2 13/14] Infrastructure for manipulating 3-level event channel pages Date: Mon, 21 Jan 2013 16:50:36 +0000 Message-ID: <50FD7FEC02000078000B804F@nat28.tlf.novell.com> References: <1358778654-29559-1-git-send-email-wei.liu2@citrix.com> <1358778654-29559-14-git-send-email-wei.liu2@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1358778654-29559-14-git-send-email-wei.liu2@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: Wei Liu Cc: xen-devel@lists.xen.org, david.vrabel@citrix.com, ian.campbell@citrix.com List-Id: xen-devel@lists.xenproject.org >>> On 21.01.13 at 15:30, Wei Liu wrote: > + evtchn_pending = xzalloc_array(xen_pfn_t, r.nr_pages); > + evtchn_mask = xzalloc_array(xen_pfn_t, r.nr_pages); > + l2sel_mfns = xzalloc_array(xen_pfn_t, r.nr_vcpus); > + l2sel_offsets = xzalloc_array(xen_pfn_t, r.nr_vcpus); While the former two are okay, the latter two aren't since this can easily amount to an allocation of more than a page. This needs to be broken up. Jan