projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd1b4a7
)
x86/hap: make hap_track_dirty_vram use non-contiguous memory for temporary map
author
Roger Pau Monné
<roger.pau@citrix.com>
Fri, 15 May 2015 08:07:50 +0000
(10:07 +0200)
committer
Jan Beulich
<jbeulich@suse.com>
Fri, 15 May 2015 08:07:50 +0000
(10:07 +0200)
Just like it's done for shadow_track_dirty_vram allocate the temporary
buffer using non-contiguous memory.
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Tim Deegan <tim@xen.org>
xen/arch/x86/mm/hap/hap.c
patch
|
blob
|
history
diff --git
a/xen/arch/x86/mm/hap/hap.c
b/xen/arch/x86/mm/hap/hap.c
index c28a6e3a50ad8b9338b0989bb973d0d591f915a5..cea7990fe958f1946cbf9d0df29e6b8b5accd2dd 100644
(file)
--- a/
xen/arch/x86/mm/hap/hap.c
+++ b/
xen/arch/x86/mm/hap/hap.c
@@
-87,7
+87,7
@@
int hap_track_dirty_vram(struct domain *d,
}
rc = -ENOMEM;
- dirty_bitmap =
xzalloc_bytes
(size);
+ dirty_bitmap =
vzalloc
(size);
if ( !dirty_bitmap )
goto out;
@@
-174,7
+174,7
@@
int hap_track_dirty_vram(struct domain *d,
p2m_ram_logdirty, p2m_ram_rw);
}
out:
-
x
free(dirty_bitmap);
+
v
free(dirty_bitmap);
return rc;
}