linux_old1/arch/arm64/kvm/hyp
Dave Martin a7e0ac295d arm64: KVM: Obey RES0/1 reserved bits when setting CPTR_EL2
Some bits in CPTR are defined as RES1 in the architecture.  Setting
these bits to zero may unintentionally enable future architecture
extensions, allowing guests to use them without supervision by the host.

This would be bad: for forwards compatibility, this patch makes
sure the affected bits are always written with 1, not 0.

This patch only addresses CPTR_EL2.  Initialisation of other system
registers may still need review.

Reviewed-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Dave Martin <Dave.Martin@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
2016-01-24 21:55:58 +00:00
..
Makefile arm64: KVM: HYP mode entry points 2015-12-14 11:30:42 +00:00
debug-sr.c arm64: KVM: Remove weak attributes 2015-12-14 11:30:44 +00:00
entry.S arm64: KVM: Turn system register numbers to an enum 2015-12-14 11:30:43 +00:00
fpsimd.S arm64: KVM: Implement fpsimd save/restore 2015-12-14 11:30:41 +00:00
hyp-entry.S arm64: KVM: Remove weak attributes 2015-12-14 11:30:44 +00:00
hyp.h arm64: KVM: Add panic handling 2015-12-14 11:30:42 +00:00
switch.c arm64: KVM: Obey RES0/1 reserved bits when setting CPTR_EL2 2016-01-24 21:55:58 +00:00
sysreg-sr.c arm64: KVM: Turn system register numbers to an enum 2015-12-14 11:30:43 +00:00
timer-sr.c arm64: KVM: Implement timer save/restore 2015-12-14 11:30:39 +00:00
tlb.c arm64: KVM: Remove weak attributes 2015-12-14 11:30:44 +00:00
vgic-v2-sr.c arm64: KVM: Implement vgic-v2 save/restore 2015-12-14 11:30:38 +00:00
vgic-v3-sr.c arm64: KVM: Remove weak attributes 2015-12-14 11:30:44 +00:00