From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Vrabel Subject: Re: [PATCH 5/6] libxl: allow a generation ID to be specified at domain creation Date: Tue, 3 Jun 2014 15:14:40 +0100 Message-ID: <538DD850.6030509@citrix.com> References: <1401801340-6196-1-git-send-email-david.vrabel@citrix.com> <1401801340-6196-6-git-send-email-david.vrabel@citrix.com> <538DCD6A.90800@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" 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 1WrpUG-00032I-2e for xen-devel@lists.xenproject.org; Tue, 03 Jun 2014 14:14:48 +0000 In-Reply-To: <538DCD6A.90800@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: Andrew Cooper Cc: xen-devel@lists.xenproject.org, Ian Jackson , Ian Campbell , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org On 03/06/14 14:28, Andrew Cooper wrote: > On 03/06/14 14:15, David Vrabel wrote: > >> + /* >> + * Update the ID in guest memory (if available). >> + */ >> + xc_get_hvm_param(ctx->xch, domid, HVM_PARAM_VM_GENERATION_ID_ADDR, &paddr); > > This will break 32bit toolstack builds, because xc_get_hvm_param() takes > a pointer to an unsigned long pointer rather than a uint64_t pointer. Well that's rather foolish of it. I've fixed up the libxc functions to take the correct uint32_t index and uint64_t value parameters. David ps. please trim your replies.