]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: PPC: Allocate vcpu struct using vmalloc
authorAlexander Graf <agraf@suse.de>
Fri, 19 Feb 2010 11:24:33 +0000 (12:24 +0100)
committerAvi Kivity <avi@redhat.com>
Sun, 25 Apr 2010 09:38:04 +0000 (12:38 +0300)
commitde4a9b575275ddb5b1ee1d6e8008d274a27acc35
tree34235b63019986c9d6e49452ef289c6432d59417
parent0d151a56e325bfa48d718ab8d8bb867e40d77a8d
KVM: PPC: Allocate vcpu struct using vmalloc

We used to use get_free_pages to allocate our vcpu struct. Unfortunately
that call failed on me several times after my machine had a big enough
uptime, as memory became too fragmented by then.

Fortunately, we don't need it to be page aligned any more! We can just
vmalloc it and everything's great.

Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/powerpc/kvm/book3s.c