Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
x86/tdx: Add command line option to disable TDX guest filter support
Add a kernel command line option to disable device filter support for TDX guest platform. It is a debug feature. When the device filer is disabled it's possible to load all kinds of drivers. These drivers don't know how to use ioremap_host_shared to get a shared mapping for MMIO. When trying to do MMIO on a non shared mapping KVM gets an error, but it cannot inject an exception so it ends up with a cryptic and hard to debug KVM error on the host with the guest being killed. Instead if the device filter is overridden, force all ioremaps to shared. This works because the command line parsing is before any ioremaps. The drawback is that some structures that shouldn't really be shared will be made shared too, mainly BIOS data structures that get mapped. Reviewed-by: Andi Kleen <ak@linux.intel.com> Signed-off-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
- Loading branch information
Kuppuswamy Sathyanarayanan
committed
Jun 23, 2022
1 parent
bbac5eb
commit f0270b8
Showing
6 changed files
with
40 additions
and
3 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
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
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