[Android-virt] [PATCH 2/4] ARM: KVM: Upgrade barriers and TLB operations to inner-shareable domain.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On a SMP host, the barriers should be upgraded to the inner
shareable domain, so that the effect of the barrier can be
observed on other CPUs, in case where the virtual CPU is
migrated from a physical CPU to another.

For the same reasons, TLB operations must also be broadcast
across the inner shareable domain.

These features shouldn't have any effect on UP hosts.

Signed-off-by: Marc Zyngier <marc.zyngier at arm.com>
---
 arch/arm/include/asm/kvm_arm.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/arch/arm/include/asm/kvm_arm.h b/arch/arm/include/asm/kvm_arm.h
index 0b21e52..29f3a36 100644
--- a/arch/arm/include/asm/kvm_arm.h
+++ b/arch/arm/include/asm/kvm_arm.h
@@ -37,6 +37,7 @@
 #define HCR_TWI		(1 << 13)
 #define HCR_DC		(1 << 12)
 #define HCR_BSU		(3 << 10)
+#define HCR_BSU_IS	(1 << 10)
 #define HCR_FB		(1 << 9)
 #define HCR_VA		(1 << 8)
 #define HCR_VI		(1 << 7)
@@ -47,7 +48,7 @@
 #define HCR_PTW		(1 << 2)
 #define HCR_SWIO	(1 << 1)
 #define HCR_VM		1
-#define HCR_GUEST_MASK (HCR_TSC | HCR_TWI | HCR_VM | \
+#define HCR_GUEST_MASK (HCR_TSC | HCR_TWI | HCR_VM | HCR_BSU_IS | HCR_FB | \
 			HCR_AMO | HCR_IMO | HCR_FMO | HCR_SWIO)
 #define HCR_VIRT_EXCP_MASK (HCR_VA | HCR_VI | HCR_VF)
 
-- 
1.7.7.1





[Index of Archives]     [Linux KVM]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux