diff options
Diffstat (limited to 'arch/x86/kvm/vmx.c')
-rw-r--r-- | arch/x86/kvm/vmx.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index 046a91b5a4ba..025bf4011abc 100644 --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kvm/vmx.c | |||
@@ -2010,9 +2010,7 @@ static int alloc_apic_access_page(struct kvm *kvm) | |||
2010 | if (r) | 2010 | if (r) |
2011 | goto out; | 2011 | goto out; |
2012 | 2012 | ||
2013 | down_read(¤t->mm->mmap_sem); | ||
2014 | kvm->arch.apic_access_page = gfn_to_page(kvm, 0xfee00); | 2013 | kvm->arch.apic_access_page = gfn_to_page(kvm, 0xfee00); |
2015 | up_read(¤t->mm->mmap_sem); | ||
2016 | out: | 2014 | out: |
2017 | up_write(&kvm->slots_lock); | 2015 | up_write(&kvm->slots_lock); |
2018 | return r; | 2016 | return r; |
@@ -2034,10 +2032,8 @@ static int alloc_identity_pagetable(struct kvm *kvm) | |||
2034 | if (r) | 2032 | if (r) |
2035 | goto out; | 2033 | goto out; |
2036 | 2034 | ||
2037 | down_read(¤t->mm->mmap_sem); | ||
2038 | kvm->arch.ept_identity_pagetable = gfn_to_page(kvm, | 2035 | kvm->arch.ept_identity_pagetable = gfn_to_page(kvm, |
2039 | VMX_EPT_IDENTITY_PAGETABLE_ADDR >> PAGE_SHIFT); | 2036 | VMX_EPT_IDENTITY_PAGETABLE_ADDR >> PAGE_SHIFT); |
2040 | up_read(¤t->mm->mmap_sem); | ||
2041 | out: | 2037 | out: |
2042 | up_write(&kvm->slots_lock); | 2038 | up_write(&kvm->slots_lock); |
2043 | return r; | 2039 | return r; |