]> rtime.felk.cvut.cz Git - jailhouse.git/commit
x86: Bring host CR0 into well-defined state during setup
authorJan Kiszka <jan.kiszka@siemens.com>
Mon, 16 Mar 2015 08:21:58 +0000 (09:21 +0100)
committerJan Kiszka <jan.kiszka@siemens.com>
Fri, 20 Mar 2015 13:08:11 +0000 (14:08 +0100)
commit7e24ac197d19b00316a1ee9adee252493c4cdef8
tree4e9989c27e2b9ce4da49dc292a4e62b7488b25af
parent9f20699e6808379a2b472273ee3f4174f9c994dd
x86: Bring host CR0 into well-defined state during setup

Avoid any uncertainty about the state of CR0 left behind by Linux: check
for unexpectedly set reserved bits or required-1 bits, and otherwise set
our own state.

CC: Valentine Sinitsyn <valentine.sinitsyn@gmail.com>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
hypervisor/arch/x86/include/asm/percpu.h
hypervisor/arch/x86/include/asm/vcpu.h
hypervisor/arch/x86/setup.c
hypervisor/arch/x86/svm.c
hypervisor/arch/x86/vmx.c