[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [RFC PATCH 6/6] KVM: ARM: no need for kvm_arch_flush_incohe
From: |
Andrew Jones |
Subject: |
[Qemu-devel] [RFC PATCH 6/6] KVM: ARM: no need for kvm_arch_flush_incoherent |
Date: |
Fri, 6 Mar 2015 13:52:33 -0500 |
kvm_arch_flush_incoherent makes things too slow, and we don't
need it. Userspace can flush for us, as the necessary cache
maintenance instruction is not (necessarily) privileged.
Signed-off-by: Andrew Jones <address@hidden>
---
arch/arm/kvm/mmu.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/arch/arm/kvm/mmu.c b/arch/arm/kvm/mmu.c
index 2f45db9cd436a..b2d87587a9d79 100644
--- a/arch/arm/kvm/mmu.c
+++ b/arch/arm/kvm/mmu.c
@@ -1822,6 +1822,11 @@ int kvm_arch_create_memslot(struct kvm *kvm, struct
kvm_memory_slot *slot,
void kvm_arch_flush_incoherent(struct kvm *kvm, struct kvm_memory_slot *slot)
{
+ /*
+ * We no longer need this function, now that userspace does the
+ * flushing.
+ */
+#if 0
if (slot->flags & KVM_MEM_READONLY) {
/*
* Readonly memory shouldn't be changing, and we do a
@@ -1840,6 +1845,7 @@ void kvm_arch_flush_incoherent(struct kvm *kvm, struct
kvm_memory_slot *slot)
*/
coherent_cache_memslot(slot, true);
+#endif
}
void kvm_arch_invalidate_incoherent(struct kvm *kvm, struct kvm_memory_slot
*slot)
--
1.8.3.1
- [Qemu-devel] the arm cache coherency cluster, Andrew Jones, 2015/03/06
- [Qemu-devel] [RFC PATCH 0/6] flush/invalidate on entry/exit, Andrew Jones, 2015/03/06
- [Qemu-devel] [RFC PATCH 2/6] KVM: Introduce incoherent cache maintenance API, Andrew Jones, 2015/03/06
- [Qemu-devel] [RFC PATCH 3/6] KVM: ARM: change __coherent_cache_guest_page interface, Andrew Jones, 2015/03/06
- [Qemu-devel] [RFC PATCH 5/6] KVM: ARM: implement kvm_*_incoherent_memory_regions, Andrew Jones, 2015/03/06
- [Qemu-devel] [RFC PATCH 4/6] KVM: ARM: extend __coherent_cache_guest_page, Andrew Jones, 2015/03/06
- [Qemu-devel] [RFC PATCH 6/6] KVM: ARM: no need for kvm_arch_flush_incoherent,
Andrew Jones <=
- [Qemu-devel] [RFC PATCH 1/6] kvm: promote KVM_MEMSLOT_INCOHERENT to uapi, Andrew Jones, 2015/03/06
- [Qemu-devel] [RFC PATCH 0/6] support KVM_MEM_INCOHERENT, Andrew Jones, 2015/03/06
- [Qemu-devel] [RFC PATCH 2/6] HACK: linux header update, Andrew Jones, 2015/03/06
- [Qemu-devel] [PATCH 3/6] kvm-all: put kvm_mem_flags to more work, Andrew Jones, 2015/03/06
- [Qemu-devel] [RFC PATCH 4/6] kvm-all: set KVM_MEM_INCOHERENT, Andrew Jones, 2015/03/06
- [Qemu-devel] [RFC PATCH 1/6] memory: add incoherent cache flag, Andrew Jones, 2015/03/06
- [Qemu-devel] [RFC PATCH 5/6] vga: flag vram as incoherent, Andrew Jones, 2015/03/06
- [Qemu-devel] [RFC/WIP PATCH 6/6] memory: add clear_cache_to_poc, Andrew Jones, 2015/03/06
- Re: [Qemu-devel] the arm cache coherency cluster, Andrew Jones, 2015/03/18