diff options
author | Joerg Roedel <[email protected]> | 2020-10-28 17:46:58 +0100 |
---|---|---|
committer | Borislav Petkov <[email protected]> | 2020-10-29 18:09:59 +0100 |
commit | c9f09539e16e281f92a27760fdfae71e8af036f6 (patch) | |
tree | 6e0eb9706062025102be18c76c366f339ce909ff /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 86ce43f7dde81562f58b24b426cef068bd9f7595 (diff) |
x86/head/64: Check SEV encryption before switching to kernel page-table
When SEV is enabled, the kernel requests the C-bit position again from
the hypervisor to build its own page-table. Since the hypervisor is an
untrusted source, the C-bit position needs to be verified before the
kernel page-table is used.
Call sev_verify_cbit() before writing the CR3.
[ bp: Massage. ]
Signed-off-by: Joerg Roedel <[email protected]>
Signed-off-by: Borislav Petkov <[email protected]>
Reviewed-by: Tom Lendacky <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions