Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
x86/tdx/paravirt: Move wrmsrl outside PARAVIRT_XXL
For performance optimizations it is useful to directly replace wrmsrl with an paravirtual operation when running in TDX. Currently MSR writes can be only patched when in full PARAVIRT_XXL mode, which includes many heavy changes and is only needed for old school Xen PV guests. Move wrmsrl out of PARAVIRT_XXL into the normal PARAVIRT support. Only do this for wrmsrl because that's the only case currently needed for performance optimization. It doesn't make a lot of difference for the code, since the msr write was already out of line for tracing, and the paravirt infrastructure takes care of directly patching in the alternative functions. One drawback is that these MSR writes will now go through patched code, which can confuse some debugging tools, but that's already fairly common in the kernel and shouldn't make a big difference. Signed-off-by: Andi Kleen <ak@linux.intel.com> Signed-off-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
- Loading branch information
Andi Kleen
authored and
Kuppuswamy Sathyanarayanan
committed
Sep 2, 2021
1 parent
1fe89e7
commit 9b0f5e6
Showing
4 changed files
with
24 additions
and
20 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