diff options
author | Gleb Natapov <gleb@redhat.com> | 2009-06-09 08:56:29 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2009-09-10 01:32:52 -0400 |
commit | 988a2cae6a3c0dea6df59808a935a9a697bfc28c (patch) | |
tree | c1118d86c5d6f24fe738c608917b0affb311f26d /arch/x86/kvm/mmu.c | |
parent | 73880c80aa9c8dc353cd0ad26579023213cd5314 (diff) |
KVM: Use macro to iterate over vcpus.
[christian: remove unused variables on s390]
Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
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) |