Skip to content

RFC kvm add ioeventfd pf capability

Michael S. Tsirkin kvm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest3 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3vmx: allow ioeventfd for EPT violationsarch/x86/kvm/vmx.c+5 -010 replies
2/3svm: allow ioeventfd for NPT page faultsarch/x86/kvm/svm.c+5 -00 replies
3/3kvm: add KVM_CAP_IOEVENTFD_PF capabilityDocumentation/virtual/kvm/api.txt arch/x86/kvm/x86.c include/uapi/linux/kvm.h+9 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH RFC 0/3] kvm add ioeventfd pf capability

One of the reasons MMIO is slower than port IO is because it requires a page table lookup.
For normal memory accesses, this is solved by using the TLB cache - but MMIO entries are either not present or reserved and so are never cached.

To fix, allow installing an ioeventfd on top of a read only memory region, which allows the CPU to cache the translations.

Warning: svm patch is untested.

Michael S. Tsirkin (3):
vmx: allow ioeventfd for EPT violations
svm: allow ioeventfd for NPT page faults
kvm: add KVM_CAP_IOEVENTFD_PF capability

 include/uapi/linux/kvm.h          | 1 +
 arch/x86/kvm/svm.c                | 5 +++++
 arch/x86/kvm/vmx.c                | 5 +++++
 arch/x86/kvm/x86.c                | 1 +
 Documentation/virtual/kvm/api.txt | 7 +++++++
 5 files changed, 19 insertions(+)
Signature · 1 line
MST