qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] e1000 emulation and mmio_exists counter


From: alexnln
Subject: [Qemu-devel] e1000 emulation and mmio_exists counter
Date: Mon, 14 Mar 2016 19:02:57 +0200

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 via email to

[Prev in Thread] Current Thread [Next in Thread]