From patchwork Thu Jan 22 18:46:44 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefano Stabellini X-Patchwork-Id: 431940 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 9351314028E for ; Fri, 23 Jan 2015 05:59:16 +1100 (AEDT) Received: from localhost ([::1]:55515 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YEMyI-0003xL-Un for incoming@patchwork.ozlabs.org; Thu, 22 Jan 2015 13:59:14 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60859) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YEMy3-0003VT-7r for qemu-devel@nongnu.org; Thu, 22 Jan 2015 13:59:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YEMxy-0005gd-BA for qemu-devel@nongnu.org; Thu, 22 Jan 2015 13:58:59 -0500 Received: from smtp.citrix.com ([66.165.176.89]:53959) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YEMxy-0005fZ-7U for qemu-devel@nongnu.org; Thu, 22 Jan 2015 13:58:54 -0500 X-IronPort-AV: E=Sophos;i="5.09,450,1418083200"; d="scan'208";a="219763587" Received: from ukmail1.uk.xensource.com (10.80.16.128) by smtprelay.citrix.com (10.13.107.79) with Microsoft SMTP Server id 14.3.210.2; Thu, 22 Jan 2015 13:58:50 -0500 Received: from kaball.uk.xensource.com ([10.80.2.59]) by ukmail1.uk.xensource.com with esmtp (Exim 4.69) (envelope-from ) id 1YEMmP-00056w-Jg; Thu, 22 Jan 2015 18:46:57 +0000 Date: Thu, 22 Jan 2015 18:46:44 +0000 From: Stefano Stabellini X-X-Sender: sstabellini@kaball.uk.xensource.com To: Message-ID: User-Agent: Alpine 2.02 (DEB 1266 2009-07-14) MIME-Version: 1.0 X-DLP: MIA2 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 66.165.176.89 Cc: xen-devel@lists.xensource.com, Ian Campbell , Paul Durrant , Stefano Stabellini Subject: [Qemu-devel] [PATCH] fix QEMU build on Xen/ARM X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org xen_get_vmport_regs_pfn should take a xen_pfn_t argument, not an unsigned long argument (in fact xen_pfn_t is defined as uint64_t on ARM). Also use xc_hvm_param_get instead of the deprecated xc_get_hvm_param. Signed-off-by: Stefano Stabellini diff --git a/include/hw/xen/xen_common.h b/include/hw/xen/xen_common.h index 519696f..355fbac 100644 --- a/include/hw/xen/xen_common.h +++ b/include/hw/xen/xen_common.h @@ -168,14 +168,16 @@ void xen_shutdown_fatal_error(const char *fmt, ...) GCC_FMT_ATTR(1, 2); #ifdef HVM_PARAM_VMPORT_REGS_PFN static inline int xen_get_vmport_regs_pfn(XenXC xc, domid_t dom, - unsigned long *vmport_regs_pfn) + xen_pfn_t *vmport_regs_pfn) { - return xc_get_hvm_param(xc, dom, HVM_PARAM_VMPORT_REGS_PFN, - vmport_regs_pfn); + uint64_t value; + return xc_hvm_param_get(xc, dom, HVM_PARAM_VMPORT_REGS_PFN, + &value); + *vmport_regs_pfn = (xen_pfn_t) value; } #else static inline int xen_get_vmport_regs_pfn(XenXC xc, domid_t dom, - unsigned long *vmport_regs_pfn) + xen_pfn_t *vmport_regs_pfn) { return -ENOSYS; }