Hi Avi,
Considering your comments,I refined the patch, and use kvm->memslots to
caculate the nr_mmu_pagas every time.   
Patch [1/3] Move kvm_vcpu_iotcl_get_dirty_log implementation into arch,
and still keep the interface in common.
Patch [2/3] Move kvm_mmu init and exit functionality to arch. 
Patch [3/3] Add the hook kvm_arch_set_memory_region.  In this patch,
introduce a function kvm_caculate_mmu_pages to compute mmu pages in
total, once memory region changes.

Xiantao

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
kvm-devel mailing list
kvm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-devel

Reply via email to