From: Jiaqing Du <jiaqing@gmail.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] Question on cpu_interrupt()
Date: Thu, 29 Apr 2010 18:22:24 +0200 [thread overview]
Message-ID: <z2g6d8082041004290922ob022478bke1d1b99277da714e@mail.gmail.com> (raw)
Hi,
I am trying to inject NMIs to a guest running in QEMU by using
cpu_interrupt(). I notice that QEMU slows down significantly when NMIs
are being injected.
The injected NMIs per second is around 10. QEMU is pined to one core.
A computation intensive application runs in the guest. When no NMIs
are being injected, the physical CPU utilization is 100%; while NMIs
are injected by calling cpu_interrupt(), the physical CPU utilization
rate drops to around 30%. As far as I know from reading the code,
cpu_interrupt() unchains the translation cache. So when the current TB
is executed over, QEMU code is executed to handle the interrupt. I
also notice that cpu_interrupt() is called very frequently normally.
Why QEMU's performance drops so much when NMIs are being injected?
Please CC me your reply.
Thanks,
Jiaqing
reply other threads:[~2010-04-29 16:22 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=z2g6d8082041004290922ob022478bke1d1b99277da714e@mail.gmail.com \
--to=jiaqing@gmail.com \
--cc=qemu-devel@nongnu.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;
as well as URLs for NNTP newsgroup(s).