KVM: move alloc_apic_access_page() outside of non-preemptable region
authorMarcelo Tosatti <marcelo@kvack.org>
Thu, 14 Feb 2008 23:21:43 +0000 (21:21 -0200)
committerAvi Kivity <avi@qumranet.com>
Tue, 4 Mar 2008 13:19:46 +0000 (15:19 +0200)
commit5e4a0b3c1b899bb0ba28bde6edf95c5ddeb48b5c
tree616190ac85c14ba58d738612d9465221193cb38a
parenta2938c807024ba30191e3bd593430c0659d75717
KVM: move alloc_apic_access_page() outside of non-preemptable region

alloc_apic_access_page() can sleep, while vmx_vcpu_setup is called
inside a non preemptable region. Move it after put_cpu().

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
arch/x86/kvm/vmx.c