From mboxrd@z Thu Jan 1 00:00:00 1970 From: Boris Ostrovsky Subject: Re: [PATCH 1/2] x86/xen: fix memory setup for PVH dom0 Date: Mon, 02 Jun 2014 13:28:40 -0400 Message-ID: <538CB448.2070009@oracle.com> References: <1401728983-25382-1-git-send-email-david.vrabel@citrix.com> <1401728983-25382-2-git-send-email-david.vrabel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WrW1I-0006Uy-3o for xen-devel@lists.xenproject.org; Mon, 02 Jun 2014 17:27:36 +0000 In-Reply-To: <1401728983-25382-2-git-send-email-david.vrabel@citrix.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: David Vrabel Cc: xen-devel@lists.xenproject.org List-Id: xen-devel@lists.xenproject.org On 06/02/2014 01:09 PM, David Vrabel wrote: > /* > + * Machine specific memory setup for auto-translated guests. > + */ > +char * __init xen_auto_xlated_memory_setup(void) > +{ > + static struct e820entry map[E820MAX] __initdata; > + > + struct xen_memory_map memmap; > + int i; > + int rc; > + > + memmap.nr_entries = E820MAX; > + set_xen_guest_handle(memmap.buffer, map); > + > + rc = HYPERVISOR_memory_op(XENMEM_memory_map, &memmap); > + BUG_ON(rc); Do we want to know what the error was? -boris