Since global pages are not linked in terms of TLB flushing to any root.

Index: kvm/arch/x86/kvm/mmu.c
===================================================================
--- kvm.orig/arch/x86/kvm/mmu.c
+++ kvm/arch/x86/kvm/mmu.c
@@ -1429,7 +1429,7 @@ static int mmu_need_write_protect(struct
                        return 1;
                if (shadow->role.level != PT_PAGE_TABLE_LEVEL)
                        return 1;
-               if (shadow->root_gfn == -1)
+               if (shadow->root_gfn == -1 && !kvm_page_global(shadow))
                        return 1;
                if (!kvm_page_unsync(shadow))
                        return kvm_unsync_page(vcpu, shadow);

-- 

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to