public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] kvm: add a memslot flag for incoherent memory regions
@ 2014-11-17 14:58 Ard Biesheuvel
  2014-11-17 14:58 ` [PATCH 2/3] arm, arm64: KVM: allow forced dcache flush on page faults Ard Biesheuvel
  2014-11-17 14:58 ` [PATCH 3/3] arm, arm64: KVM: handle potential incoherency of readonly memslots Ard Biesheuvel
  0 siblings, 2 replies; 24+ messages in thread
From: Ard Biesheuvel @ 2014-11-17 14:58 UTC (permalink / raw)
  To: kvmarm, christoffer.dall, marc.zyngier, lersek, drjones, wei
  Cc: kvm, Ard Biesheuvel

Memory regions may be incoherent with the caches, typically when the
guest has mapped a host system RAM backed memory region as uncached.
Add a flag KVM_MEMSLOT_INCOHERENT so that we can tag these memslots
and handle them appropriately when mapping them.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
---
 include/linux/kvm_host.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h
index a6059bdf7b03..e4d8f705fecd 100644
--- a/include/linux/kvm_host.h
+++ b/include/linux/kvm_host.h
@@ -43,6 +43,7 @@
  * include/linux/kvm_h.
  */
 #define KVM_MEMSLOT_INVALID	(1UL << 16)
+#define KVM_MEMSLOT_INCOHERENT	(1UL << 17)
 
 /* Two fragments for cross MMIO pages. */
 #define KVM_MAX_MMIO_FRAGMENTS	2
-- 
1.8.3.2


^ permalink raw reply related	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2014-11-22 12:27 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-17 14:58 [PATCH 1/3] kvm: add a memslot flag for incoherent memory regions Ard Biesheuvel
2014-11-17 14:58 ` [PATCH 2/3] arm, arm64: KVM: allow forced dcache flush on page faults Ard Biesheuvel
2014-11-17 14:58 ` [PATCH 3/3] arm, arm64: KVM: handle potential incoherency of readonly memslots Ard Biesheuvel
2014-11-17 15:29   ` Paolo Bonzini
2014-11-17 15:39     ` Marc Zyngier
2014-11-17 16:03       ` Paolo Bonzini
2014-11-17 15:49     ` Laszlo Ersek
2014-11-19 23:32       ` Mario Smarduch
2014-11-20  8:08         ` Laszlo Ersek
2014-11-20 18:35           ` Mario Smarduch
2014-11-20 18:40             ` Peter Maydell
2014-11-20 19:15               ` Mario Smarduch
2014-11-20 19:49               ` Jon Masters
2014-11-20 20:10                 ` Peter Maydell
2014-11-20 21:13                   ` Laszlo Ersek
2014-11-20 21:59                     ` Peter Maydell
2014-11-21 11:19         ` Christoffer Dall
2014-11-22  1:50           ` Mario Smarduch
2014-11-22 10:18             ` Christoffer Dall
2014-11-22 10:26               ` Laszlo Ersek
2014-11-22 12:27             ` Peter Maydell
2014-11-19  8:51   ` Ard Biesheuvel
2014-11-19 11:02     ` Paolo Bonzini
2014-11-19 11:03     ` Paolo Bonzini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox