From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: [PATCH 1/3] add support for dynamicly allocation of mmu pages. Date: Sun, 19 Aug 2007 11:14:53 +0300 Message-ID: <46C7FBFD.6030800@qumranet.com> References: <1187466696.28221.36.camel@izike-desktop.qumranet.com> <1187466871.28221.39.camel@izike-desktop.qumranet.com> <1187467612.28221.50.camel@izike-desktop.qumranet.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org To: Izik Eidus Return-path: In-Reply-To: <1187467612.28221.50.camel-wV29XY6ncz+I84jL4+POOYeT0m0igiSA0E9HWUfgJXw@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org 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/