diff options
Diffstat (limited to 'arch/x86/kvm/mmu.c')
-rw-r--r-- | arch/x86/kvm/mmu.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c index d443a421ca3e..5f97dbd24291 100644 --- a/arch/x86/kvm/mmu.c +++ b/arch/x86/kvm/mmu.c | |||
@@ -1347,10 +1347,10 @@ static void kvm_mmu_put_page(struct kvm_mmu_page *sp, u64 *parent_pte) | |||
1347 | static void kvm_mmu_reset_last_pte_updated(struct kvm *kvm) | 1347 | static void kvm_mmu_reset_last_pte_updated(struct kvm *kvm) |
1348 | { | 1348 | { |
1349 | int i; | 1349 | int i; |
1350 | struct kvm_vcpu *vcpu; | ||
1350 | 1351 | ||
1351 | for (i = 0; i < KVM_MAX_VCPUS; ++i) | 1352 | kvm_for_each_vcpu(i, vcpu, kvm) |
1352 | if (kvm->vcpus[i]) | 1353 | vcpu->arch.last_pte_updated = NULL; |
1353 | kvm->vcpus[i]->arch.last_pte_updated = NULL; | ||
1354 | } | 1354 | } |
1355 | 1355 | ||
1356 | static void kvm_mmu_unlink_parents(struct kvm *kvm, struct kvm_mmu_page *sp) | 1356 | static void kvm_mmu_unlink_parents(struct kvm *kvm, struct kvm_mmu_page *sp) |