From: Avi Kivity <avi@redhat.com>
To: Takuya Yoshikawa <takuya.yoshikawa@gmail.com>
Cc: mtosatti@redhat.com, kvm@vger.kernel.org, yoshikawa.takuya@oss.ntt.co.jp
Subject: Re: [PATCH 2/2 v2] KVM: Avoid wasting pages for small lpage_info arrays
Date: Sun, 20 May 2012 17:08:45 +0300 [thread overview]
Message-ID: <4FB8FAED.20309@redhat.com> (raw)
In-Reply-To: <20120520131507.e4e14532f99266deb311e6a3@gmail.com>
On 05/20/2012 07:15 AM, Takuya Yoshikawa wrote:
> From: Takuya Yoshikawa <yoshikawa.takuya@oss.ntt.co.jp>
>
> lpage_info is created for each large level even when the memory slot is
> not for RAM. This means that when we add one slot for a PCI device, we
> end up allocating at least KVM_NR_PAGE_SIZES - 1 pages by vmalloc().
>
> To make things worse, there is an increasing number of devices which
> would result in more pages being wasted this way.
>
> This patch mitigates this problem by using kvm_kvzalloc().
>
Thanks, applied to 'queue'.
--
error compiling committee.c: too many arguments to function
prev parent reply other threads:[~2012-05-20 14:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-20 4:13 [PATCH 1/2] KVM: Separate out dirty_bitmap allocation code as kvm_kvzalloc() Takuya Yoshikawa
2012-05-20 4:15 ` [PATCH 2/2 v2] KVM: Avoid wasting pages for small lpage_info arrays Takuya Yoshikawa
2012-05-20 14:08 ` Avi Kivity [this message]
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=4FB8FAED.20309@redhat.com \
--to=avi@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=mtosatti@redhat.com \
--cc=takuya.yoshikawa@gmail.com \
--cc=yoshikawa.takuya@oss.ntt.co.jp \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.