From: alexnln <alex.nlnnfn@gmail.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] e1000 emulation and mmio_exists counter
Date: Mon, 14 Mar 2016 19:02:57 +0200 [thread overview]
Message-ID: <20160314190257.de92aaddb8dce2f3bb1eda61@gmail.com> (raw)
Hi list,
I am testing e1000 emulation with qemu 2.5. Command line:
-netdev tap,fd=21,id=hostnet0 \
-device e1000,netdev=hostnet0,id=net0,mac=$MAC1,bus=pci.0,addr=0x4
AFAIU, e1000 is emulated in qemu (userspace) and each i/o should cause
vmexit to userspace. And each exit to userspace should increment
mmio_exits counter (/sys/kernel/debug/kvm/mmio_exits).
As I see in kvm code,
kvm_mmu_page_fault() in arch/x86/kvm/mmu.c, case for EMULATE_USER_EXIT.
http://lxr.free-electrons.com/source/arch/x86/kvm/mmu.c#L4391
However, when I run load I see that mmio_exits counter is almost constant.
What am I missing here?
Thank you
reply other threads:[~2016-03-14 17:03 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=20160314190257.de92aaddb8dce2f3bb1eda61@gmail.com \
--to=alex.nlnnfn@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).