Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 356929
b: refs/heads/master
c: 07d0c94
h: refs/heads/master
i:
  356927: f9f9290
v: v3
  • Loading branch information
Ian Campbell authored and Konrad Rzeszutek Wilk committed Feb 20, 2013
1 parent d714be5 commit 3fda2f3
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: dacd45f4e793e46e8299c9a580e400866ffe0770
refs/heads/master: 07d0c943663f82d9682856c0a7db7145a6c911d6
8 changes: 5 additions & 3 deletions trunk/arch/arm/xen/enlighten.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,16 @@ static int map_foreign_page(unsigned long lpfn, unsigned long fgmfn,
};
xen_ulong_t idx = fgmfn;
xen_pfn_t gpfn = lpfn;
int err = 0;

set_xen_guest_handle(xatp.idxs, &idx);
set_xen_guest_handle(xatp.gpfns, &gpfn);
set_xen_guest_handle(xatp.errs, &err);

rc = HYPERVISOR_memory_op(XENMEM_add_to_physmap_range, &xatp);
if (rc) {
pr_warn("Failed to map pfn to mfn rc:%d pfn:%lx mfn:%lx\n",
rc, lpfn, fgmfn);
if (rc || err) {
pr_warn("Failed to map pfn to mfn rc:%d:%d pfn:%lx mfn:%lx\n",
rc, err, lpfn, fgmfn);
return 1;
}
return 0;
Expand Down
6 changes: 6 additions & 0 deletions trunk/include/xen/interface/memory.h
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ DEFINE_GUEST_HANDLE_STRUCT(xen_add_to_physmap);

#define XENMEM_add_to_physmap_range 23
struct xen_add_to_physmap_range {
/* IN */
/* Which domain to change the mapping for. */
domid_t domid;
uint16_t space; /* => enum phys_map_space */
Expand All @@ -203,6 +204,11 @@ struct xen_add_to_physmap_range {

/* GPFN in domid where the source mapping page should appear. */
GUEST_HANDLE(xen_pfn_t) gpfns;

/* OUT */

/* Per index error code. */
GUEST_HANDLE(int) errs;
};
DEFINE_GUEST_HANDLE_STRUCT(xen_add_to_physmap_range);

Expand Down

0 comments on commit 3fda2f3

Please sign in to comment.