Re: [patch 03/10] KVM: MMU: do not write-protect large mappings

2008-09-20 Thread Marcelo Tosatti
On Fri, Sep 19, 2008 at 05:29:28PM -0700, Avi Kivity wrote: > Marcelo Tosatti wrote: >> There is not much point in write protecting large mappings. This >> can only happen when a page is shadowed during the window between >> is_largepage_backed and mmu_lock acquision. Zap the entry instead, so >> t

Re: [patch 03/10] KVM: MMU: do not write-protect large mappings

2008-09-19 Thread Avi Kivity
Marcelo Tosatti wrote: There is not much point in write protecting large mappings. This can only happen when a page is shadowed during the window between is_largepage_backed and mmu_lock acquision. Zap the entry instead, so the next pagefault will find a shadowed page via is_largepage_backed and

[patch 03/10] KVM: MMU: do not write-protect large mappings

2008-09-18 Thread Marcelo Tosatti
There is not much point in write protecting large mappings. This can only happen when a page is shadowed during the window between is_largepage_backed and mmu_lock acquision. Zap the entry instead, so the next pagefault will find a shadowed page via is_largepage_backed and fallback to 4k translatio