diff options
| author | Nikunj A Dadhania <[email protected]> | 2025-01-06 12:46:29 +0000 |
|---|---|---|
| committer | Borislav Petkov (AMD) <[email protected]> | 2025-01-07 20:26:20 +0000 |
| commit | 0a2a98f691f2c57db5bb321e68787cb1de29c7dd (patch) | |
| tree | a02baa90e3deeecec269f96d2b925c0a8cf9203c /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | |
| parent | x86/sev: Prevent RDTSC/RDTSCP interception for Secure TSC enabled guests (diff) | |
| download | kernel-0a2a98f691f2c57db5bb321e68787cb1de29c7dd.tar.gz kernel-0a2a98f691f2c57db5bb321e68787cb1de29c7dd.zip | |
x86/sev: Mark the TSC in a secure TSC guest as reliable
In SNP guest environment with Secure TSC enabled, unlike other clock sources
(such as HPET, ACPI timer, APIC, etc), the RDTSC instruction is handled
without causing a VM exit, resulting in minimal overhead and jitters. Even
when the host CPU's TSC is tampered with, the Secure TSC enabled guest keeps
on ticking forward. Hence, mark Secure TSC as the only reliable clock source,
bypassing unstable calibration.
[ bp: Massage. ]
Signed-off-by: Nikunj A Dadhania <[email protected]>
Signed-off-by: Borislav Petkov (AMD) <[email protected]>
Reviewed-by: Tom Lendacky <[email protected]>
Tested-by: Peter Gonda <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions
