Izik Eidus wrote:
> simply change kvm.h to work with the new lists and with blocks of 1MB
> please note that the KVM_MMU_PAGES_DIVIDER is the magic, it control on
> how much % memory will be allocated to the mmu pages,
> KVM_MMU_PAGES_DIVIDER = 100 mean 1%
> KVM_MMU_PAGES_DIVIDER = 50 mean 2%
>   

Instead of a divider, a fraction is easier to use.  For example:

   mmu_pages = ((u64)nr_pages * KVM_MMU_PAGES_FRAC) >> 16;

To get 1%, set KVM_MMU_PAGES_FRAC to (65536 / 100).

>       struct list_head active_mmu_pages;
>       int n_free_mmu_pages;
> -     struct hlist_head mmu_page_hash[KVM_NUM_MMU_PAGES];
> +     int n_mmu_page_hash_blocks;
> +     struct list_head mmu_page_hash_blocks;
>       struct kvm_vcpu *vcpus[KVM_MAX_VCPUS];
>       int memory_config_version;
>       int busy;
>   

Nothing works after applying this patch, right?  Each patch should be 
self contained, and everything should compile and work after applying it.


-- 
error compiling committee.c: too many arguments to function


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
kvm-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/kvm-devel

Reply via email to