|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH] Fix for VGA memory allocation on qemu
These two patches fix some problems for currently VGA memory allocation:
1) When creating device model, the vga memory is allocated through
xc_domain_memory_increase_reservation(), however, when switch to use
linear framebuffer, we didn't free that memory, and re-allocate the vga
memory through set_mm_mapping(), that caused memory leak. Now it is
changed to just using qemu_malloc when create device model, and free
that memory when switch to linear framebuffer.
2) After unset_vram_mapping(), the old memory pointer should be
unmapped; after set_vram_mapping(), the old memory should be freed.
The first patch is move.patch, which just move the
set/unset_vram_mapping into cirrus_vga.c, no logic changes.
The memory_allocation.patch depends on move.patch and fixes the above
two issues.
Signed-off-by: Yunhong Jiang <yunhong.jiang@xxxxxxxxx>
move.patch
Description: move.patch
memory_allocation.patch
Description: memory_allocation.patch
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-devel] [PATCH] Fix for VGA memory allocation on qemu,
Jiang, Yunhong <=
|
|
|
|
|