[patch 13/13] KVM: MMU: ignore multiroot when unsyncing global pages

Marcelo Tosatti
2008-09-06T19:27:55Z

[-- Attachment #1: kvm-oos-global-share --]
[-- Type: text/plain, Size: 556 bytes --]

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);

--