Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
x86/tdx: Skip WBINVD instruction for TDX guest
Drivers/code-paths that use wbinvd instruction are already disabled for TDX guest platforms. Following are the list of drivers that use wbinvd instruction and are enabled for TDX guests. drivers/acpi/sleep.c drivers/acpi/acpica/hwsleep.c Since cache is always coherent in TDX guests, making wbinvd as noop should not cause any issues. This behavior is the same as KVM guest. So skip its usage for TDX the guests. Also, hwsleep shouldn't happen for TDX guest because the TDX BIOS won't enable it, but it's better to disable it anyways Signed-off-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
- Loading branch information
Kuppuswamy Sathyanarayanan
committed
May 13, 2021
1 parent
cfbf8e1
commit 96c781481b4771fb0fb4cc62072a6b1b50a0cea2
Showing
2 changed files
with
32 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters