Re: [PATCH 4/4] KVM: MMU: cleanup update_pte, pte_prefetch and sync_page functions

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Marcelo Tosatti
Date: Tuesday, November 16, 2010 - 1:52 pm

On Fri, Nov 12, 2010 at 06:35:38PM +0800, Xiao Guangrong wrote:

This makes the code more complicated and error prone IMO, because there
are specialities of 


For example, the update path should always go through mmu_set_spte to
update last_pte_updated, last_pte_gfn.

Also the callbacks make it harder to read the code. Maybe the
unification works if you use common functions for common parts.

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 3/4] KVM: MMU: notrap it if gpte's reserved is set, Xiao Guangrong, (Fri Nov 12, 3:34 am)
Re: [PATCH 4/4] KVM: MMU: cleanup update_pte, pte_prefetch ..., Marcelo Tosatti, (Tue Nov 16, 1:52 pm)