qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] e1000 emulation and mmio_exists counter
@ 2016-03-14 17:02 alexnln
  0 siblings, 0 replies; only message in thread
From: alexnln @ 2016-03-14 17:02 UTC (permalink / raw)
  To: qemu-devel

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-03-14 17:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-14 17:02 [Qemu-devel] e1000 emulation and mmio_exists counter alexnln

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).