[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] Fix for VGA memory allocation on qemu


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: "Jiang, Yunhong" <yunhong.jiang@xxxxxxxxx>
  • Date: Fri, 12 May 2006 14:11:28 +0800
  • Delivery-date: Thu, 11 May 2006 23:12:14 -0700
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: AcZ1iuezly8vOiBDQkeAhjo4+UFgsw==
  • Thread-topic: [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>

Attachment: move.patch
Description: move.patch

Attachment: memory_allocation.patch
Description: memory_allocation.patch

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.