Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 93173
b: refs/heads/master
c: 5f0abab
h: refs/heads/master
i:
  93171: dbf200a
v: v3
  • Loading branch information
Isaku Yamahata authored and Ingo Molnar committed Apr 24, 2008
1 parent b440ddb commit 459a48c
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 5 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: 20e71f2edb5991de8f2a70902b4aa5982f67c69c
refs/heads/master: 5f0ababbf49f12330effab932a18055a50f4c0a1
2 changes: 1 addition & 1 deletion trunk/drivers/xen/grant-table.c
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ static int gnttab_map(unsigned int start_idx, unsigned int end_idx)

if (shared == NULL) {
struct vm_struct *area;
area = alloc_vm_area(PAGE_SIZE * max_nr_grant_frames());
area = xen_alloc_vm_area(PAGE_SIZE * max_nr_grant_frames());
BUG_ON(area == NULL);
shared = area->addr;
}
Expand Down
6 changes: 3 additions & 3 deletions trunk/drivers/xen/xenbus/xenbus_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ int xenbus_map_ring_valloc(struct xenbus_device *dev, int gnt_ref, void **vaddr)

*vaddr = NULL;

area = alloc_vm_area(PAGE_SIZE);
area = xen_alloc_vm_area(PAGE_SIZE);
if (!area)
return -ENOMEM;

Expand All @@ -409,7 +409,7 @@ int xenbus_map_ring_valloc(struct xenbus_device *dev, int gnt_ref, void **vaddr)
BUG();

if (op.status != GNTST_okay) {
free_vm_area(area);
xen_free_vm_area(area);
xenbus_dev_fatal(dev, op.status,
"mapping in shared page %d from domain %d",
gnt_ref, dev->otherend_id);
Expand Down Expand Up @@ -508,7 +508,7 @@ int xenbus_unmap_ring_vfree(struct xenbus_device *dev, void *vaddr)
BUG();

if (op.status == GNTST_okay)
free_vm_area(area);
xen_free_vm_area(area);
else
xenbus_dev_error(dev, op.status,
"unmapping page at handle %d error %d",
Expand Down
7 changes: 7 additions & 0 deletions trunk/include/asm-x86/xen/grant_table.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#ifndef __XEN_GRANT_TABLE_H
#define __XEN_GRANT_TABLE_H

#define xen_alloc_vm_area(size) alloc_vm_area(size)
#define xen_free_vm_area(area) free_vm_area(area)

#endif /* __XEN_GRANT_TABLE_H */
1 change: 1 addition & 0 deletions trunk/include/xen/grant_table.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@

#include <asm/xen/hypervisor.h>
#include <xen/interface/grant_table.h>
#include <asm/xen/grant_table.h>

/* NR_GRANT_FRAMES must be less than or equal to that configured in Xen */
#define NR_GRANT_FRAMES 4
Expand Down

0 comments on commit 459a48c

Please sign in to comment.