author | Jan Kiszka <jan.kiszka@siemens.com> | |
Wed, 1 Nov 2017 15:56:45 +0000 (16:56 +0100) | ||
committer | Jan Kiszka <jan.kiszka@siemens.com> | |
Wed, 1 Nov 2017 15:56:45 +0000 (16:56 +0100) | ||
commit | 3bbbe099e6fde23878addad71f7160d3170367d6 | |
tree | 09f02974c3c5ad85a26e901bbab54c6f20025193 | tree | snapshot (tar.xz tar.gz zip) |
parent | e330e2082bbcebb079dd8b1cf14a4c7bc5e191da | commit | diff |
x86: Fix arch_cpu_restore for PCID enabled systems
Reorder reloading of cr3 and cr4 in case the latter enables PCID (which
Jailhouse does not use) and cr3 should be fully evaluated under that
feature.
Fixes a protection fault when disabling Jailhouse on PCID-enabled
systems (since kernel 4.14).
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Reorder reloading of cr3 and cr4 in case the latter enables PCID (which
Jailhouse does not use) and cr3 should be fully evaluated under that
feature.
Fixes a protection fault when disabling Jailhouse on PCID-enabled
systems (since kernel 4.14).
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
hypervisor/arch/x86/setup.c | diff | blob | history |