]> rtime.felk.cvut.cz Git - jailhouse.git/commit
x86: Block write access to MTRR registers
authorJan Kiszka <jan.kiszka@siemens.com>
Fri, 3 Apr 2015 09:06:54 +0000 (11:06 +0200)
committerJan Kiszka <jan.kiszka@siemens.com>
Fri, 10 Apr 2015 06:59:31 +0000 (08:59 +0200)
commite8c40f62906b5b2f1ff1cc2f2c0ec8a0790a0ca3
treeeef87f0864229ca0a1e8cad93e32b6ea165ea762
parentfe8fac80d74cd592f9ad3a99be521dc8b7771d80
x86: Block write access to MTRR registers

Linux does not try to rewrite them on CPU hotplug if they are identical
to other CPUs' registers, and our non-root cells have no business in
touching them as well. This effectively freezes MTRRs after handover
ensures consistent states for both the hypervisor and all cells across
all CPUs.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
hypervisor/arch/x86/svm.c
hypervisor/arch/x86/vmx.c