Skip to contentSkip to conversation

e1000 emulation and mmio_exists counter

Qemu-devel alexnln 1 participant 1 message Mar 14, 2016

lore
Share & tools
lore

alexnln

author
#0 lore 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