From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54342) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YTxMd-00028t-RX for qemu-devel@nongnu.org; Fri, 06 Mar 2015 13:52:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YTxMa-000834-Kk for qemu-devel@nongnu.org; Fri, 06 Mar 2015 13:52:47 -0500 Received: from mx1.redhat.com ([209.132.183.28]:34073) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YTxMa-00082e-D7 for qemu-devel@nongnu.org; Fri, 06 Mar 2015 13:52:44 -0500 From: Andrew Jones Date: Fri, 6 Mar 2015 13:52:27 -0500 Message-Id: <1425667953-3566-1-git-send-email-drjones@redhat.com> In-Reply-To: <1425667780-3449-1-git-send-email-drjones@redhat.com> References: <1425667780-3449-1-git-send-email-drjones@redhat.com> Subject: [Qemu-devel] [RFC PATCH 0/6] flush/invalidate on entry/exit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: kvmarm@lists.cs.columbia.edu, qemu-devel@nongnu.org, ard.biesheuvel@linaro.org, christoffer.dall@linaro.org, marc.zyngier@arm.com, peter.maydell@linaro.org Cc: pbonzini@redhat.com, lersek@redhat.com, agraf@suse.de, catalin.marinas@arm.com 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(-) -- 1.8.3.1