aboutsummaryrefslogtreecommitdiff
path: root/sys/xen
diff options
context:
space:
mode:
authorJeff Roberson <jeff@FreeBSD.org>2013-08-07 06:21:20 +0000
committerJeff Roberson <jeff@FreeBSD.org>2013-08-07 06:21:20 +0000
commit5df87b21d3fc592f112c1721d9c2d533d4411ae4 (patch)
tree950bad07f0aeeeae78036d82b9aa11ae998c3654 /sys/xen
parente7b969bbeeb19c7cb6873b87b28cf58f515c9d2a (diff)
downloadsrc-5df87b21d3fc592f112c1721d9c2d533d4411ae4.tar.gz
src-5df87b21d3fc592f112c1721d9c2d533d4411ae4.zip
Notes
Diffstat (limited to 'sys/xen')
-rw-r--r--sys/xen/gnttab.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/xen/gnttab.c b/sys/xen/gnttab.c
index 4ece182c31ac..d8eb381740f2 100644
--- a/sys/xen/gnttab.c
+++ b/sys/xen/gnttab.c
@@ -527,8 +527,7 @@ gnttab_map(unsigned int start_idx, unsigned int end_idx)
if (shared == NULL) {
vm_offset_t area;
- area = kmem_alloc_nofault(kernel_map,
- PAGE_SIZE * max_nr_grant_frames());
+ area = kva_alloc(PAGE_SIZE * max_nr_grant_frames());
KASSERT(area, ("can't allocate VM space for grant table"));
shared = (grant_entry_t *)area;
}
@@ -590,8 +589,7 @@ gnttab_map(unsigned int start_idx, unsigned int end_idx)
if (shared == NULL) {
vm_offset_t area;
- area = kmem_alloc_nofault(kernel_map,
- PAGE_SIZE * max_nr_grant_frames());
+ area = kva_alloc(PAGE_SIZE * max_nr_grant_frames());
KASSERT(area, ("can't allocate VM space for grant table"));
shared = (grant_entry_t *)area;
}