summaryrefslogtreecommitdiff
path: root/xen-hvm.c
diff options
context:
space:
mode:
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>2013-12-18 19:17:32 +0000
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>2014-07-07 10:37:40 +0000
commit643f59322432d77165329dfabe2d040d7e30dae8 (patch)
tree768ec853126b43325b43f4dfa05ffa69a94961d0 /xen-hvm.c
parent4aba9eb138e5d68c400de0b116f15217d7a92d3a (diff)
xen: build on ARM
Collection of fixes to build QEMU with Xen support on ARM: - use xenstore_read_fe_uint64 to retrieve the page-ref (xenfb); - use xen_pfn_t instead of unsigned long in xenfb; - unsigned long/xenpfn_t in xen_remove_from_physmap; - in xen-mapcache.c use HOST_LONG_BITS to check for QEMU's address space size. Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'xen-hvm.c')
-rw-r--r--xen-hvm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xen-hvm.c b/xen-hvm.c
index bafdf1283f..c928b36a45 100644
--- a/xen-hvm.c
+++ b/xen-hvm.c
@@ -390,7 +390,7 @@ static int xen_remove_from_physmap(XenIOState *state,
start_addr >>= TARGET_PAGE_BITS;
phys_offset >>= TARGET_PAGE_BITS;
for (i = 0; i < size; i++) {
- unsigned long idx = start_addr + i;
+ xen_pfn_t idx = start_addr + i;
xen_pfn_t gpfn = phys_offset + i;
rc = xc_domain_add_to_physmap(xen_xc, xen_domid, XENMAPSPACE_gmfn, idx, gpfn);