From: Stefan Hajnoczi <stefanha@gmail.com>
To: Amos Kong <akong@redhat.com>
Cc: stefanha@redhat.com, kvm@vger.kernel.org, gleb@redhat.com,
qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] kvm: exclude ioeventfd from counting kvm_io_range limit
Date: Mon, 27 May 2013 13:33:16 +0200 [thread overview]
Message-ID: <20130527113316.GA22343@stefanha-thinkpad.redhat.com> (raw)
In-Reply-To: <1369435455-15885-1-git-send-email-akong@redhat.com>
On Sat, May 25, 2013 at 06:44:15AM +0800, Amos Kong wrote:
> We can easily reach the 1000 limit by start VM with a couple
> hundred I/O devices (multifunction=on). The hardcode limit
> already been adjusted 3 times (6 ~ 200 ~ 300 ~ 1000).
>
> In userspace, we already have maximum file descriptor to
> limit ioeventfd count. But kvm_io_bus devices also are used
> for pit, pic, ioapic, coalesced_mmio. They couldn't be limited
> by maximum file descriptor.
>
> Currently only ioeventfds take too much kvm_io_bus devices,
> so just exclude it from counting kvm_io_range limit.
>
> Also fixed one indent issue in kvm_host.h
>
> Signed-off-by: Amos Kong <akong@redhat.com>
> ---
> include/linux/kvm_host.h | 3 ++-
> virt/kvm/eventfd.c | 2 ++
> virt/kvm/kvm_main.c | 3 ++-
> 3 files changed, 6 insertions(+), 2 deletions(-)
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
next prev parent reply other threads:[~2013-05-27 11:33 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-24 22:44 [Qemu-devel] [PATCH] kvm: exclude ioeventfd from counting kvm_io_range limit Amos Kong
2013-05-27 11:33 ` Stefan Hajnoczi [this message]
2013-06-04 8:49 ` Gleb Natapov
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=20130527113316.GA22343@stefanha-thinkpad.redhat.com \
--to=stefanha@gmail.com \
--cc=akong@redhat.com \
--cc=gleb@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@redhat.com \
/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;
as well as URLs for NNTP newsgroup(s).