aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/vmx.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kvm/vmx.c')
-rw-r--r--arch/x86/kvm/vmx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c
index f2df03c12f16..8e1462880d1f 100644
--- a/arch/x86/kvm/vmx.c
+++ b/arch/x86/kvm/vmx.c
@@ -1433,7 +1433,7 @@ static int init_rmode_tss(struct kvm *kvm)
1433 int ret = 0; 1433 int ret = 0;
1434 int r; 1434 int r;
1435 1435
1436 down_read(&current->mm->mmap_sem); 1436 down_read(&kvm->slots_lock);
1437 r = kvm_clear_guest_page(kvm, fn, 0, PAGE_SIZE); 1437 r = kvm_clear_guest_page(kvm, fn, 0, PAGE_SIZE);
1438 if (r < 0) 1438 if (r < 0)
1439 goto out; 1439 goto out;
@@ -1456,7 +1456,7 @@ static int init_rmode_tss(struct kvm *kvm)
1456 1456
1457 ret = 1; 1457 ret = 1;
1458out: 1458out:
1459 up_read(&current->mm->mmap_sem); 1459 up_read(&kvm->slots_lock);
1460 return ret; 1460 return ret;
1461} 1461}
1462 1462