diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/kvm/mmu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c index d3cd102aee26..3ac51153bc47 100644 --- a/arch/x86/kvm/mmu.c +++ b/arch/x86/kvm/mmu.c | |||
@@ -1629,7 +1629,7 @@ static int kvm_mmu_unprotect_page(struct kvm *kvm, gfn_t gfn) | |||
1629 | bucket = &kvm->arch.mmu_page_hash[index]; | 1629 | bucket = &kvm->arch.mmu_page_hash[index]; |
1630 | restart: | 1630 | restart: |
1631 | hlist_for_each_entry_safe(sp, node, n, bucket, hash_link) | 1631 | hlist_for_each_entry_safe(sp, node, n, bucket, hash_link) |
1632 | if (sp->gfn == gfn && !sp->role.direct) { | 1632 | if (sp->gfn == gfn && !sp->role.direct && !sp->role.invalid) { |
1633 | pgprintk("%s: gfn %lx role %x\n", __func__, gfn, | 1633 | pgprintk("%s: gfn %lx role %x\n", __func__, gfn, |
1634 | sp->role.word); | 1634 | sp->role.word); |
1635 | r = 1; | 1635 | r = 1; |