diff options
Diffstat (limited to 'arch/arm/kvm/arm.c')
-rw-r--r-- | arch/arm/kvm/arm.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/kvm/arm.c b/arch/arm/kvm/arm.c index 4043769583e7..da87c07d8577 100644 --- a/arch/arm/kvm/arm.c +++ b/arch/arm/kvm/arm.c | |||
@@ -701,6 +701,13 @@ static int kvm_arch_vcpu_ioctl_vcpu_init(struct kvm_vcpu *vcpu, | |||
701 | if (ret) | 701 | if (ret) |
702 | return ret; | 702 | return ret; |
703 | 703 | ||
704 | /* | ||
705 | * Ensure a rebooted VM will fault in RAM pages and detect if the | ||
706 | * guest MMU is turned off and flush the caches as needed. | ||
707 | */ | ||
708 | if (vcpu->arch.has_run_once) | ||
709 | stage2_unmap_vm(vcpu->kvm); | ||
710 | |||
704 | vcpu_reset_hcr(vcpu); | 711 | vcpu_reset_hcr(vcpu); |
705 | 712 | ||
706 | /* | 713 | /* |