diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/kvm/mmu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c index c94c43289f53..363004699012 100644 --- a/arch/x86/kvm/mmu.c +++ b/arch/x86/kvm/mmu.c | |||
@@ -2393,8 +2393,8 @@ static int mmu_alloc_direct_roots(struct kvm_vcpu *vcpu) | |||
2393 | ++sp->root_count; | 2393 | ++sp->root_count; |
2394 | spin_unlock(&vcpu->kvm->mmu_lock); | 2394 | spin_unlock(&vcpu->kvm->mmu_lock); |
2395 | vcpu->arch.mmu.pae_root[i] = root | PT_PRESENT_MASK; | 2395 | vcpu->arch.mmu.pae_root[i] = root | PT_PRESENT_MASK; |
2396 | vcpu->arch.mmu.root_hpa = __pa(vcpu->arch.mmu.pae_root); | ||
2397 | } | 2396 | } |
2397 | vcpu->arch.mmu.root_hpa = __pa(vcpu->arch.mmu.pae_root); | ||
2398 | } else | 2398 | } else |
2399 | BUG(); | 2399 | BUG(); |
2400 | 2400 | ||
@@ -2466,8 +2466,8 @@ static int mmu_alloc_shadow_roots(struct kvm_vcpu *vcpu) | |||
2466 | spin_unlock(&vcpu->kvm->mmu_lock); | 2466 | spin_unlock(&vcpu->kvm->mmu_lock); |
2467 | 2467 | ||
2468 | vcpu->arch.mmu.pae_root[i] = root | pm_mask; | 2468 | vcpu->arch.mmu.pae_root[i] = root | pm_mask; |
2469 | vcpu->arch.mmu.root_hpa = __pa(vcpu->arch.mmu.pae_root); | ||
2470 | } | 2469 | } |
2470 | vcpu->arch.mmu.root_hpa = __pa(vcpu->arch.mmu.pae_root); | ||
2471 | 2471 | ||
2472 | /* | 2472 | /* |
2473 | * If we shadow a 32 bit page table with a long mode page | 2473 | * If we shadow a 32 bit page table with a long mode page |