mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
xen/arm: Trap cache and TCM lockdown registers
Some cp15 c9/c10/c11 encodings are used for:
- cache control
- TCM control
- branch predictor control
All of them are implementation defined. For now inject an undefined exception
if the guest wants try to access it.
This is CVE-2014-2915 / XSA-93.
Signed-off-by: Julien Grall <julien.grall@linaro.org>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
This commit is contained in:
1 parent
cda12fa0ce
commit
11faafd9d9
1 file changed
+1
-1
@@ -82,7 +82,7 @@ void __cpuinit init_traps(void)
|
||||
|
||||
/* Setup hypervisor traps */
|
||||
WRITE_SYSREG(HCR_PTW|HCR_BSU_INNER|HCR_AMO|HCR_IMO|HCR_VM|HCR_TWI|HCR_TSC|
|
||||
HCR_TAC|HCR_SWIO, HCR_EL2);
|
||||
HCR_TAC|HCR_SWIO|HCR_TIDCP, HCR_EL2);
|
||||
isb();
|
||||
}
|
||||
|
||||
|
||||