commit | 8facbbff071ff2b19268d3732e31badc60471e21 | [log] [tgz] |
---|---|---|
author | Avi Kivity <avi@redhat.com> | Tue May 04 12:58:32 2010 +0300 |
committer | Avi Kivity <avi@redhat.com> | Wed May 19 11:36:35 2010 +0300 |
tree | 1779b2bb158c8e1bf99560fb3fd16647e3e371f7 | |
parent | cafd66595d92591e4bd25c3904e004fc6f897e2d [diff] |
KVM: MMU: Don't read pdptrs with mmu spinlock held in mmu_alloc_roots On svm, kvm_read_pdptr() may require reading guest memory, which can sleep. Push the spinlock into mmu_alloc_roots(), and only take it after we've read the pdptr. Tested-by: Joerg Roedel <joerg.roedel@amd.com> Signed-off-by: Avi Kivity <avi@redhat.com>