From: Takuya Yoshikawa Date: Mon, 1 Nov 2010 05:36:09 +0000 (+0900) Subject: KVM: use kmalloc() for small dirty bitmaps X-Git-Tag: v2.6.38-rc1~244^2~113 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6f9e5c1702319e048a90e06e31b957fbbcecbe07;p=pandora-kernel.git KVM: use kmalloc() for small dirty bitmaps Currently we are using vmalloc() for all dirty bitmaps even if they are small enough, say less than K bytes. We use kmalloc() if dirty bitmap size is less than or equal to PAGE_SIZE so that we can avoid vmalloc area usage for VGA. This will also make the logging start/stop faster. Signed-off-by: Takuya Yoshikawa Signed-off-by: Marcelo Tosatti --- Reading git-diff-tree failed