KVM: MMU: handle large host sptes on invlpg/resync
[linux-2.6.git] / arch / x86 / kvm / mmu.c
index d50ebac6a07faf174b7680365b859994c5996dff..83f11c7474a1d74ef996ca7245078e1b6dda7051 100644 (file)
@@ -1007,7 +1007,7 @@ static int __mmu_unsync_walk(struct kvm_mmu_page *sp,
        for_each_unsync_children(sp->unsync_child_bitmap, i) {
                u64 ent = sp->spt[i];
 
-               if (is_shadow_present_pte(ent)) {
+               if (is_shadow_present_pte(ent) && !is_large_pte(ent)) {
                        struct kvm_mmu_page *child;
                        child = page_header(ent & PT64_BASE_ADDR_MASK);