Hi
Here are 2 small self-explanatory patches related to clearing TDX private
pages.
Patch 1 is a minor tidy-up.
In patch 2, by skipping the clearing step, shutdown time can improve by
up to 40%.
Changes in V2 (as requested by Dave):
x86/tdx: Eliminate duplicate code in tdx_clear_page()
Rename reset_tdx_pages() to tdx_quirk_reset_paddr()
Call tdx_quirk_reset_paddr() directly
x86/tdx: Skip clearing reclaimed pages unless X86_BUG_TDX_PW_MCE is present
Improve the comment
Adrian Hunter (2):
x86/tdx: Eliminate duplicate code in tdx_clear_page()
x86/tdx: Skip clearing reclaimed pages unless X86_BUG_TDX_PW_MCE is present
arch/x86/include/asm/tdx.h | 2 ++
arch/x86/kvm/vmx/tdx.c | 25 +++----------------------
arch/x86/virt/vmx/tdx/tdx.c | 13 +++++++++++--
3 files changed, 16 insertions(+), 24 deletions(-)
Regards
Adrian