KVM: MMU: Don't allocate gfns page for direct mmu pages
[deliverable/linux.git] / arch / x86 / kvm / paging_tmpl.h
index 167f53357eefd521caba5b2275792be766721c78..2ee7060a80a5de8acd33fb8e454b729d5f1efa25 100644 (file)
@@ -582,6 +582,9 @@ static int FNAME(sync_page)(struct kvm_vcpu *vcpu, struct kvm_mmu_page *sp)
 
        offset = nr_present = 0;
 
+       /* direct kvm_mmu_page can not be unsync. */
+       BUG_ON(sp->role.direct);
+
        if (PTTYPE == 32)
                offset = sp->role.quadrant << PT64_LEVEL_BITS;
 
This page took 0.025112 seconds and 5 git commands to generate.