projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
arm/arm64: KVM: Introduce stage2_unmap_vm
[deliverable/linux.git]
/
arch
/
arm
/
kvm
/
arm.c
diff --git
a/arch/arm/kvm/arm.c
b/arch/arm/kvm/arm.c
index 4043769583e7fc4e4a68311ff7703b984b1e4d83..da87c07d8577f9ce9e0bf8a73bb3b6823947ae3e 100644
(file)
--- 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,
if (ret)
return ret;
+ /*
+ * Ensure a rebooted VM will fault in RAM pages and detect if the
+ * guest MMU is turned off and flush the caches as needed.
+ */
+ if (vcpu->arch.has_run_once)
+ stage2_unmap_vm(vcpu->kvm);
+
vcpu_reset_hcr(vcpu);
/*
This page took
0.025373 seconds
and
5
git commands to generate.