|
@@ -1876,15 +1876,6 @@ void kvm_arch_free_memslot(struct kvm *kvm, struct kvm_memory_slot *free,
|
|
|
int kvm_arch_create_memslot(struct kvm *kvm, struct kvm_memory_slot *slot,
|
|
|
unsigned long npages)
|
|
|
{
|
|
|
- /*
|
|
|
- * Readonly memslots are not incoherent with the caches by definition,
|
|
|
- * but in practice, they are used mostly to emulate ROMs or NOR flashes
|
|
|
- * that the guest may consider devices and hence map as uncached.
|
|
|
- * To prevent incoherency issues in these cases, tag all readonly
|
|
|
- * regions as incoherent.
|
|
|
- */
|
|
|
- if (slot->flags & KVM_MEM_READONLY)
|
|
|
- slot->flags |= KVM_MEMSLOT_INCOHERENT;
|
|
|
return 0;
|
|
|
}
|
|
|
|