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)
commit032c3407310c7612db55ab7e1335a21dc2b4690d
tree34235b63019986c9d6e49452ef289c6432d59417
parent964b6411af10fbddc827fdd3887c49f7f5d2bfd3
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