Skip to content

RFC flush/invalidate on entry/exit

Andrew Jones kvmarm qemu-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest6 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6kvm: promote KVM_MEMSLOT_INCOHERENT to uapiarch/arm/kvm/mmu.c include/linux/kvm_host.h include/uapi/linux/kvm.h+8 -30 replies
2/6KVM: Introduce incoherent cache maintenance APIinclude/linux/kvm_host.h virt/kvm/kvm_main.c+58 -10 replies
3/6KVM: ARM: change __coherent_cache_guest_page interfacearch/arm/include/asm/kvm_mmu.h arch/arm/kvm/mmu.c arch/arm64/include/asm/kvm_mmu.h+7 -100 replies
4/6KVM: ARM: extend __coherent_cache_guest_pagearch/arm/include/asm/kvm_mmu.h arch/arm/kvm/mmu.c arch/arm64/include/asm/kvm_mmu.h+11 -50 replies
5/6KVM: ARM: implement kvm_*_incoherent_memory_regionsarch/arm/include/uapi/asm/kvm.h arch/arm/kvm/arm.c arch/arm/kvm/mmu.c +1 more+60 -00 replies
6/6KVM: ARM: no need for kvm_arch_flush_incoherentarch/arm/kvm/mmu.c+6 -00 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [RFC PATCH 0/6] flush/invalidate on entry/exit

Userspace flags memory regions as incoherent and kvm flushes/ invalidates those regions on entry/exit from userspace.

Result before patch 6/6: restores coherency, waaaaay toooo sloooooow Result with patch 6/6: fast again - well, we removed the code...

Andrew Jones (6):
kvm: promote KVM_MEMSLOT_INCOHERENT to uapi
KVM: Introduce incoherent cache maintenance API
KVM: ARM: change __coherent_cache_guest_page interface
KVM: ARM: extend __coherent_cache_guest_page
KVM: ARM: implement kvm_*_incoherent_memory_regions
KVM: ARM: no need for kvm_arch_flush_incoherent

 arch/arm/include/asm/kvm_mmu.h    | 12 +++----
 arch/arm/include/uapi/asm/kvm.h   |  1 +
 arch/arm/kvm/arm.c                |  4 +++
 arch/arm/kvm/mmu.c                | 72 +++++++++++++++++++++++++++++++++++++--
 arch/arm64/include/asm/kvm_mmu.h  | 12 ++++---
 arch/arm64/include/uapi/asm/kvm.h |  1 +
 include/linux/kvm_host.h          | 15 +++++++-
 include/uapi/linux/kvm.h          |  1 +
 virt/kvm/kvm_main.c               | 45 +++++++++++++++++++++++-
 9 files changed, 147 insertions(+), 16 deletions(-)
Signature · 1 line
1.8.3.1