diff options
Diffstat (limited to 'arch/x86/kvm/mmu.c')
-rw-r--r-- | arch/x86/kvm/mmu.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c index 1249c12e1d5c..28be35c6ff1d 100644 --- a/arch/x86/kvm/mmu.c +++ b/arch/x86/kvm/mmu.c | |||
@@ -2705,7 +2705,8 @@ EXPORT_SYMBOL_GPL(kvm_mmu_unprotect_page_virt); | |||
2705 | 2705 | ||
2706 | void __kvm_mmu_free_some_pages(struct kvm_vcpu *vcpu) | 2706 | void __kvm_mmu_free_some_pages(struct kvm_vcpu *vcpu) |
2707 | { | 2707 | { |
2708 | while (vcpu->kvm->arch.n_free_mmu_pages < KVM_REFILL_PAGES) { | 2708 | while (vcpu->kvm->arch.n_free_mmu_pages < KVM_REFILL_PAGES && |
2709 | !list_empty(&vcpu->kvm->arch.active_mmu_pages)) { | ||
2709 | struct kvm_mmu_page *sp; | 2710 | struct kvm_mmu_page *sp; |
2710 | 2711 | ||
2711 | sp = container_of(vcpu->kvm->arch.active_mmu_pages.prev, | 2712 | sp = container_of(vcpu->kvm->arch.active_mmu_pages.prev, |