Skip to contentSkip to conversation

arm/tools: pass correct p2m array to popphysmap in alloc_magic_pages

PATCH In review Ian Campbell 2 participants 4 messages Aug 3, 2012 – Aug 9, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm/tools: pass correct p2m array to popphysmap in alloc_magic_pages

---
 tools/libxc/xc_dom_arm.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
tools/libxc/xc_dom_arm.c +1 -1
index aac63e5..b743a6c 100644
@@ -60,7 +60,7 @@ static int alloc_magic_pages(struct xc_dom_image *dom)
 
     rc = xc_domain_populate_physmap_exact(
             dom->xch, dom->guest_domid, NR_MAGIC_PAGES,
-            0, 0, &p2m[i]);
+            0, 0, p2m);
     if ( rc < 0 )
         return rc;
 
Signature · 1 line
1.7.9.1
Acked-by on v1 1/1
#1 lore raw
Quoted 1 line · Ian Campbell
Quoted 20 lines
---
 tools/libxc/xc_dom_arm.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
tools/libxc/xc_dom_arm.c +1 -1
index aac63e5..b743a6c 100644
@@ -60,7 +60,7 @@ static int alloc_magic_pages(struct xc_dom_image *dom)
 
     rc = xc_domain_populate_physmap_exact(
             dom->xch, dom->guest_domid, NR_MAGIC_PAGES,
-            0, 0, &p2m[i]);
+            0, 0, p2m);
     if ( rc < 0 )
         return rc;
 
Signature · 1 line
1.7.9.1
#2 lore raw
Quoted 5 lines · Stefano Stabellini
Quoted 1 line · Ian Campbell

I may end up folding this into your original patch in my branch.

Quoted 21 lines
Quoted 21 lines
---
 tools/libxc/xc_dom_arm.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
tools/libxc/xc_dom_arm.c +1 -1
index aac63e5..b743a6c 100644
@@ -60,7 +60,7 @@ static int alloc_magic_pages(struct xc_dom_image *dom)
 
     rc = xc_domain_populate_physmap_exact(
             dom->xch, dom->guest_domid, NR_MAGIC_PAGES,
-            0, 0, &p2m[i]);
+            0, 0, p2m);
     if ( rc < 0 )
         return rc;
 
Signature · 1 line
1.7.9.1