KVM: SVM: Don't use kmap_atomic in nested_svm_map
authorJoerg Roedel <joerg.roedel@amd.com>
Fri, 19 Feb 2010 15:23:00 +0000 (16:23 +0100)
committerAvi Kivity <avi@redhat.com>
Sun, 25 Apr 2010 09:34:07 +0000 (12:34 +0300)
commit7597f129d8b6799da7a264e6d6f7401668d3a36d
treea24e84b9e7b86fb1e74b2e63a61386a09d1a1c42
parentad91f8ffbb18413e79f9f976a55b4e11d02e6a6d
KVM: SVM: Don't use kmap_atomic in nested_svm_map

Use of kmap_atomic disables preemption but if we run in
shadow-shadow mode the vmrun emulation executes kvm_set_cr3
which might sleep or fault. So use kmap instead for
nested_svm_map.

Cc: stable@kernel.org
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/svm.c