[RFC PATCH 4/6] kvm-all: set KVM_MEM_INCOHERENT

Andrew Jones
2015-03-06T18:47:43Z

kvm-all.c | 3 +++
1 file changed, 3 insertions(+)

diff --git a/kvm-all.c b/kvm-all.c
index 507fa7204e062..924b4a0bec21c 100644
--- a/kvm-all.c
+++ b/kvm-all.c
@@ -305,6 +305,9 @@ static int kvm_mem_flags(MemoryRegion *mr)
if (readonly && kvm_readonly_mem_allowed) {
flags |= KVM_MEM_READONLY;
}
+ if (memory_region_has_incoherent_cache(mr)) {
+ flags |= KVM_MEM_INCOHERENT;
+ }
return flags;
}

--
1.8.3.1