summaryrefslogtreecommitdiffstats
path: root/crypto/cryptd.c
diff options
context:
space:
mode:
authorTakuya Yoshikawa <yoshikawa.takuya@oss.ntt.co.jp>2012-05-20 06:15:07 +0200
committerAvi Kivity <avi@redhat.com>2012-06-05 15:29:49 +0200
commitc1a7b32a14138f908df52d7c53b5ce3415ec6b50 (patch)
tree6f61d847e217212de98c8bdc9563ef09e25019e1 /crypto/cryptd.c
parentKVM: Separate out dirty_bitmap allocation code as kvm_kvzalloc() (diff)
downloadlinux-c1a7b32a14138f908df52d7c53b5ce3415ec6b50.tar.xz
linux-c1a7b32a14138f908df52d7c53b5ce3415ec6b50.zip
KVM: Avoid wasting pages for small lpage_info arrays
lpage_info is created for each large level even when the memory slot is not for RAM. This means that when we add one slot for a PCI device, we end up allocating at least KVM_NR_PAGE_SIZES - 1 pages by vmalloc(). To make things worse, there is an increasing number of devices which would result in more pages being wasted this way. This patch mitigates this problem by using kvm_kvzalloc(). Signed-off-by: Takuya Yoshikawa <yoshikawa.takuya@oss.ntt.co.jp> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'crypto/cryptd.c')
0 files changed, 0 insertions, 0 deletions