public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Avi Kivity <avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
To: Izik Eidus <izike-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: [PATCH 1/3] add support for dynamicly allocation of mmu	pages.
Date: Sun, 19 Aug 2007 11:14:53 +0300	[thread overview]
Message-ID: <46C7FBFD.6030800@qumranet.com> (raw)
In-Reply-To: <1187467612.28221.50.camel-wV29XY6ncz+I84jL4+POOYeT0m0igiSA0E9HWUfgJXw@public.gmane.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/

  parent reply	other threads:[~2007-08-19  8:14 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-18 19:51 [PATCH 0/3] add support for dynamicly allocation of mmu pages Izik Eidus
     [not found] ` <1187466871.28221.39.camel@izike-desktop.qumranet.com>
     [not found]   ` <1187466871.28221.39.camel-wV29XY6ncz+I84jL4+POOYeT0m0igiSA0E9HWUfgJXw@public.gmane.org>
2007-08-18 20:06     ` [PATCH 1/3] " Izik Eidus
     [not found]       ` <1187467612.28221.50.camel-wV29XY6ncz+I84jL4+POOYeT0m0igiSA0E9HWUfgJXw@public.gmane.org>
2007-08-19  8:14         ` Avi Kivity [this message]
     [not found] ` <1187467003.28221.42.camel@izike-desktop.qumranet.com>
     [not found]   ` <1187467003.28221.42.camel-wV29XY6ncz+I84jL4+POOYeT0m0igiSA0E9HWUfgJXw@public.gmane.org>
2007-08-18 20:08     ` [PATCH 2/3] " Izik Eidus
     [not found]       ` <1187467694.28221.52.camel-wV29XY6ncz+I84jL4+POOYeT0m0igiSA0E9HWUfgJXw@public.gmane.org>
2007-08-19  8:19         ` Avi Kivity
     [not found] ` <1187467063.28221.44.camel@izike-desktop.qumranet.com>
     [not found]   ` <1187467063.28221.44.camel-wV29XY6ncz+I84jL4+POOYeT0m0igiSA0E9HWUfgJXw@public.gmane.org>
2007-08-18 20:09     ` [PATCH 3/3] " Izik Eidus
     [not found]       ` <1187467798.28221.55.camel-wV29XY6ncz+I84jL4+POOYeT0m0igiSA0E9HWUfgJXw@public.gmane.org>
2007-08-19  8:22         ` Avi Kivity
     [not found] ` <1187467150.28221.47.camel@izike-desktop.qumranet.com>
     [not found]   ` <1187467150.28221.47.camel-wV29XY6ncz+I84jL4+POOYeT0m0igiSA0E9HWUfgJXw@public.gmane.org>
2007-08-18 20:11     ` [PATCH 0/3] " Izik Eidus
     [not found]       ` <1187467867.28221.57.camel-wV29XY6ncz+I84jL4+POOYeT0m0igiSA0E9HWUfgJXw@public.gmane.org>
2007-08-18 20:35         ` [PATCH 0/3] add support for dynamicly allocation ofmmu pages Dor Laor
     [not found]           ` <64F9B87B6B770947A9F8391472E032160D46464F-yEcIvxbTEBqsx+V+t5oei8rau4O3wl8o3fe8/T/H7NteoWH0uzbU5w@public.gmane.org>
2007-08-19  8:09             ` Avi Kivity
     [not found]               ` <46C7FACA.3020706-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-08-19  8:25                 ` [PATCH 0/3] add support for dynamically " Dor Laor

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=46C7FBFD.6030800@qumranet.com \
    --to=avi-atkuwr5tajbwk0htik3j/w@public.gmane.org \
    --cc=izike-atKUWr5tajBWk0Htik3J/w@public.gmane.org \
    --cc=kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox